Public project · case study
Aegis ResponseNet
A distributed AI operations platform that makes commands, events, audit history, and recovery paths explicit.
Repository link forthcoming.
The problem
Operational systems cannot assume that every downstream participant is available, fast, or correct. A command may be retried, an event may arrive twice, and an external action may need a compensating step rather than a rollback. The platform was designed around that reality.
Architecture
The command side accepts idempotent REST requests and records state changes before publishing domain events through an outbox. Kafka carries those events to independently scalable projections, dashboards, and workers. Read models serve query traffic without coupling it to command-path latency.
For operations that span services, a saga tracks progress and emits compensating actions when a later step cannot complete. gRPC is used for reservation-like internal calls, GraphQL supports read-heavy views, and WebSocket updates keep operators aware of long-running state changes.
Reliability decisions
- Idempotency keys protect command retries from creating duplicate work.
- Dead-letter queues preserve failed events for inspection and controlled reprocessing.
- Circuit breakers bound the blast radius of unstable dependencies.
- Hash-chained audit records make state transitions explainable after the fact.
- OpenTelemetry traces, structured logs, and Prometheus metrics make a single request traceable across the system.
What I would measure
The useful question is not only whether a command succeeded. It is whether it was processed once, whether projections converged, how long compensations took, and whether operators can explain the final state. That led to dashboards for queue lag, retry rates, error classes, and reconciliation delay.
Takeaway
Distributed reliability comes from explicitly modelling the unhappy path. CQRS, an outbox, and sagas are useful because they make delivery, compensation, and observability first-class concerns rather than hidden implementation details.