Skip to content
sync ai agents

Synchronous vs asynchronous agents

Updated November 2026

Agents should wait for each other when the work is short and the caller can stay connected until the reply arrives. They should work asynchronously when a job may run for minutes or longer, when connections may drop, or when a person has to approve a step. A synchronous call holds the caller until the reply comes back. A background task returns a handle at once, and the caller later polls, streams updates or receives a webhook.

At a glance

Synchronousasynchronous
What it isSynchronous calls are one of the interaction modes the A2A specification supports, next to streaming and push notifications.Background tasks match A2A's "Async First" principle, which is designed for potentially very long-running tasks and human-in-the-loop interactions.
How results arriveSynchronous calls can end in a direct Message, which A2A uses when the agent can respond immediately.Background tasks come back as a Task, which A2A uses when the agent needs to perform a long-running operation. The client can then periodically poll the server for updates.
Connections and timeoutsSynchronous calls tie up a connection for the whole operation, and the MCP Tasks page says many clients and intermediaries impose timeouts that make this impractical beyond a few seconds.Background tasks in MCP give the caller a durable handle. According to the MCP Tasks overview, a client that disconnects or restarts can resume polling with the same ID.
What the caller seesSynchronous calls hand back a result when the run finishes. In the OpenAI Agents SDK runner, once the model output counts as final, the loop ends and we return the result, in the SDK's words.Background tasks report lifecycle changes. In A2A streaming, a TaskStatusUpdateEvent communicates changes such as working to input-required or completed, and it also provides intermediate messages from the agent.
Framework supportSynchronous calls in the OpenAI Agents SDK use Runner.run_sync(), a sync method that runs .run() under the hood.Background-style runs appear in CrewAI, which can kickoff a crew asynchronously in a non-blocking manner, and in Agno, where background=True starts a detached asynchronous task.
Failure and reconnectingSynchronous calls need a time limit. In the OpenAI Agents SDK, ModelTimeoutError is raised when a model-call attempt exceeds ModelSettings.timeout.A client's SSE connection to an A2A stream can break prematurely, and the A2A streaming guide covers that case under resubscription. While the task is still active, the client can attempt to reconnect using the SubscribeToTask RPC method.

How does each one coordinate agents?

With a synchronous call, the calling agent sends a request and waits for the reply before taking its next step, so the caller owns the wait and any timeout. The OpenAI Agents SDK runner runs a loop that calls the model for the current agent with the current input. When the model requests a handoff, the runner will update the current agent and input and run the loop again. If the run goes past its turn limit, the SDK will raise a MaxTurnsExceeded exception.

With a background task, the receiving agent hands back an identifier and keeps working. In A2A, operations return immediately, and processing continues in the background when a Task is returned. The client then follows the task through polling, streaming or push notifications, per the A2A specification. After a push notification arrives, the client typically uses GetTask with the taskId to fetch the complete, updated Task. MCP's Tasks extension has the server return a task handle in place of the final result, and the client polls for completion. There the client calls tasks/get with the taskId and receives the current status, plus the final result or error once the task reaches a terminal state. MCP also notes that polling is the default, and clients can rely on notifications instead when a server supports them.

When should you choose synchronous calls?

When should you choose background tasks?

Can you use them together?

Yes. In both protocols the receiving side picks the shape for each request. An A2A response can be a new Task or a Message, depending on whether the work is long-running. In MCP Tasks, the server decides per-request whether to create a task, and clients handle whichever result shape arrives. When an MCP task completes, its result field holds what the original request would have returned synchronously. A caller written for both shapes can therefore treat quick lookups and slow jobs through one interface.

One workable split is a synchronous call for the first acknowledgement and a task handle for everything after it. Reacting to completed work by publishing events is covered under event-driven coordination.

What should you watch out for?

What else should you know?

Which sources does this page use?

Where can you go deeper?