In my latest post, I have described how Event Sourcing can be a better architectural choice then CRUD, especially when it is necessary to capture intent, purpose, or reason. I have also shown that by integrating the CQRS pattern with Event Sourcing, we can achieve a performant read model, as this pattern allows us to separate the Read Model from the Write Model, making them independently scalable.
In the following post, we will show how to apply those principles when designing the Write Model of an IoT analysis platform. For the sake of simplicity, we will focus on implementing one single write functionality — Connecting a new device to the platform.
Why NestJS?
NestJS is a progressive Node.js framework for building efficient, reliable, and scalable server-side applications — Using modern JavaScript, built with Typescript, combining elements of OOP, FP, and FRP and is heavily inspired by Angular framework.

#nestjs #nodejs #event-sourcing #iot #domain-driven-design

Event Sourcing with NestJS
54.70 GEEK