Agent in the Loop: Architecture for Highload Data Pipeline Recovery
summary
Architecture that isolates a quarantined flow from the hot path and runs AI by reference not in-context, built with AWS Bedrock, Agent Core/Gateway and LangChain Deep Agents, detects signature-clustered bad batches from Kafka, samples a few records, generates repair code in a sandboxed Interpreter, validates fixes, writes parquet/Delta fixes to S3 and replays via deterministic workers. Tested on a cluster with hundreds of nodes (~4,000 cores, pipelines with 1k–15k pods, 8–10MB messages); cascade unfolds in ~50s and manual recovery takes 8–10 hours; pipeline cuts alert→action time ~2x and costs quoted ≈ $0.60/month.
AI-written summary · about
chapters (10)
- 0:00Introduction to AI agents
- 3:32Real case study overview
- 9:10AI agent in production
- 13:56Deep Agents framework choice
- 14:40Architecture design principles
- 16:28Agent Core infrastructure
- 17:30Agent workflow and repair cycle
- 22:36Human review and deadletter handling
- 22:59Real-world impact metrics
- 26:17Q&A session begins
