Process Flow - Event sourcing pattern
Command Received
Create Event
Append Event to Kafka Topic
Event Stored
Update State by Replaying Events
Respond to Query or Next Command
The event sourcing pattern stores all changes as events in Kafka, then rebuilds state by replaying these events.