Using event sourcing and CQRS in a distributed system
The order management system that we described earlier is built with a series of commands and events. Events are a series of states that come in and are generated by the system. Events are immutable. This means that when an event is generated, the event will not be changed and will remain as it is. The immutable nature of events can be used to implement a consistent database. A series of events can also be used to analyze the system in the case of failure. Event sourcing can be used with the CQRS pattern, which allows systems to perform much faster. In this section, we will learn about building applications with event sourcing and the CQRS design pattern.
Using events to communicate among services
Events are immutable where the event does not get changed later. Events don't follow the CRUD principles. Instead, the event source system stores all the events in the event store. In simple words, event sourcing means keeping...