Event Sourcing #676
Labels
backend
Backend related tasks/issues
enhancement
New feature or request
frontend
Frontend related tasks/issues
Main
Main issues have sub-issues, breaking them to smaller tasks
Milestone
Event Sourcing
Event Sourcing is a pattern where changes to the application state are stored as a sequence of events. Instead of storing the current state, you store the history of events that led to the current state.
Things that we need to consider:
event_id
,aggregate_metadata
,event_type
,timestamp
, etc).Implementation in Clean Architecture:
Infrastructure Layer:
Implement the event store (e.g., a PostgreSQL table for events).
Provide repositories for reading/writing events.
Application Layer:
Implement event handlers and command handlers that produce events.
Use a message bus or event dispatcher to publish events.
Presentation Layer:
Expose APIs or interfaces to query the current state (read models) or replay events for debugging.
The text was updated successfully, but these errors were encountered: