Event Sourcing + CQRS
Command side writes events; read side projects them into query models.
Rendering…
Make it your own.
flowchart LR
U[User] --> API[API]
API --> CMD{Command handler}
CMD --> ES[(Event store)]
ES --> P1[Projector: orders read model]
ES --> P2[Projector: analytics]
ES --> P3[Projector: search index]
P1 --> DB[(Read DB)]
P2 --> WH[(Warehouse)]
P3 --> IDX[(Search index)]
U2[User] --> Q[Query API]
Q --> DB
Q --> IDX