Event Sourcing
Get a brief overview of event sourcing and understand the difference between event streaming and event sourcing.
Event sourcing is a pattern of recording each change to an aggregate into an append-only stream. To reconstruct an aggregate’s final state, we must read events sequentially and apply them to the aggregate. This contrasts with the direct updates made by a create, read, update, and delete (CRUD) system. In that system, the changed state of the record is stored in a database that overwrites the prior version of the same aggregate.
If we increase the price of a product, the following two tables show how that change might be recorded:
Get hands-on with 1400+ tech skills courses.