Event-Driven AI Agents: Queues, Crashes and Duplicates
After a crash, my toy agent wrote two replies to the same ticket. The agent was fine.
Video #238 ยท Enterprise architecture and AI agents
Steps in the video
Files
- compare.py (23 lines)
- consumer.py (31 lines)
- log.py (28 lines)
Tested with
Python 3.12.15
What this does not show
One consumer and one faked crash in one process; Redis was not run and consumer groups were not built; the duplicate check works only because the reply is stored next to the log; SQLite is for one machine.
Sources
Learning IT by Example.