Grokking Microservices Design Patterns
Vote
0% completed
Use Cases and System Design Examples
You now know how event sourcing works and what it costs. The last question is where to use it. This lesson lists the domains where the pattern is worth its cost, the domains where it is not, and two example designs.
When the Pattern Fits
Event sourcing is worth its cost when the history itself has business value.
Money movement is the strongest fit. A ledger (a record of every money movement, in order) is event sourcing by definition. Wallets, payments, and account balances all need one. Banks already work this way, so the model matches the domain.
Audit-heavy domains come next
.....
.....
.....
Like the course? Get enrolled and start learning!