Case study
Code is privateProblem
Agent workflows need to react to business events the moment they happen. Cron schedules and manual scripts can't do that — they poll, they miss, and when they fail mid-run there's no retry story, just a rerun and hope.
What it does
A shared event backbone: domain events (a quote created, an incident opened) are published to SQS, Lambda consumers fan out to the right agent workflow, and failures land in dead-letter queues with alerting instead of vanishing. The agentic selling product and the incident triage agent both run on it.
Architecture
- 01Domain event published
- 02SQS queue (per consumer)
- 03Lambda consumer invokes agent workflow
- 04Result events emitted downstream
- 05Failures → DLQ + alert
Stack
- MessagingAWS SQS with dead-letter queues
- ComputeLambda consumers
- Infra as codeTerraform
- ObservabilityDatadog monitoring + alerting
Outcomes
- One backbone powers multiple agentic products (selling, triage)
- Per-event retries and DLQs replaced the crash-and-rerun cycle
- Currently hardening: monitoring, alerting, and error-handling depth
Code is private — happy to walk through it.