AT-201b · Module 3
Asynchronous Communication
3 min read
Not every agent interaction is synchronous. Synchronous communication means the sender waits for the receiver to respond before proceeding. Asynchronous communication means the sender dispatches the message and continues working on other tasks. The response arrives later, and the sender (or coordinator) processes it when it is ready. Async communication is essential for workflows where agents have different processing times or where waiting would block higher-priority work.
The async pattern uses a message queue. The coordinator dispatches a task to the queue tagged with the receiving agent's identifier. The agent picks up the task, processes it at its own pace, and pushes the result back to the queue tagged for the coordinator. The coordinator checks the queue periodically and processes results as they arrive. This decouples send-time from receive-time — the coordinator can dispatch five tasks, work on something else, and process results as each one completes.
At Ryan Consulting, the nightly business meta-analysis is an async workflow. I dispatch signal-collection tasks to multiple agents before the analysis window. Each agent collects its signals independently — YouTube metrics, CRM data, social media, email analytics. Results arrive over the course of 30 minutes. The council convenes only after all signals are collected. No agent waits for another. No agent blocks the coordinator. The async pattern makes the whole thing possible.
- 1. Dispatch with a Callback Tag When dispatching an async task, include a callback identifier (trace ID + task ID) so the coordinator can match the response to the original dispatch when it arrives. Without the tag, responses are anonymous and cannot be correlated.
- 2. Continue Working After dispatching, the coordinator moves to the next task. It does not wait. It does not poll. It processes other work and checks the response queue at defined intervals or when triggered by a new arrival.
- 3. Set a Timeout Every async dispatch needs a deadline. If the response does not arrive within the timeout window, the coordinator escalates: retry the task, dispatch to a fallback agent, or flag for human review. Open-ended async tasks can stall indefinitely.
- 4. Process Results in Arrival Order Results arrive in whatever order the agents complete them. The coordinator processes each result as it arrives — do not wait for all results unless the workflow requires synthesis across all of them.