Client & WebhooksNext.js / External
Produces commands & external webhooks.
Command Ingestion APINode.js / Go
Validates commands & emits domain events.
Event Broker (Kafka)Apache Kafka
Durable partitioned topics with replay.
Billing ConsumerWorker Group A
Processes payment & invoice events.
Analytics ConsumerWorker Group B
Builds real-time CQRS read projections.
Notification ConsumerWorker Group C
Dispatches emails, SMS & Slack alerts.
Dead-Letter QueueKafka DLQ + Retry
Captures poison-pill failed messages.
Read Projection StorePostgreSQL / ClickHouse
Materialized query views for fast reads.