Skip to content

cqrs capability

cqrs adds CQRS scaffolding to your Go service with a command/query bus and separated read and write models.

  • Command/query bus
  • Handler interfaces
  • Separation of read and write models

Use cqrs when read and write patterns diverge significantly — complex query needs that don’t fit your write model, or performance optimization that requires separate read stores. Pairs naturally with ddd for domain-driven design.

Terminal window
verikt new my-service --language go --cap cqrs
# or add to an existing service:
verikt add cqrs

ddd

DDD building blocks that pair naturally with CQRS.

event-bus

Domain events to propagate write model changes to read models.

repository

Repository pattern for the write side of CQRS.