Skip to content
D2 templates

CQRS + Event Sourcing (D2)

Separate command and query paths with a projector.

Template previewD2
Rendering…

Make it your own.

client -> command_api: commands
client -> query_api: queries
command_api -> write_db: persist
command_api -> bus: events
bus -> projector
projector -> read_db: update view
query_api -> read_db: read
write_db.shape: cylinder
read_db.shape: cylinder
bus.shape: queue