docs: add event sourcing architecture diagram

This commit is contained in:
Ilkka Seppälä
2025-02-28 14:11:31 +02:00
parent 609bf8e4d1
commit a10c392425
2 changed files with 4 additions and 0 deletions
+4
View File
@@ -41,6 +41,10 @@ In plain words
> The Event Sourcing pattern defines an approach to handling operations on data that's driven by a sequence of events, each of which is recorded in an append-only store. Application code sends a series of events that imperatively describe each action that has occurred on the data to the event store, where they're persisted. Each event represents a set of changes to the data (such as AddedItemToOrder).
Architecture diagram
![Event Sourcing Architecture Diagram](./etc/event-sourcing-architecture-diagram.png)
## Programmatic Example of Event Sourcing Pattern in Java
In the programmatic example we transfer some money between bank accounts.
Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB