Synchronous vs Asynchronous Communication Between Services
Compare synchronous REST/gRPC calls with asynchronous messaging and events: coupling, latency, failure handling, timeouts, retries, sagas and when to use eac...
Published November 27, 2026
Once a system has more than one service, every interaction between them is either synchronous (the caller waits for an answer) or asynchronous (the caller hands off a message and moves on). That choice determines how failures spread, how latency adds up and how tightly services are coupled. Most robust systems use both deliberately.
The concept
Synchronous communication, typically REST over HTTP or gRPC, is simple and intuitive: call, wait, get a result or an error. It is the right tool when the caller genuinely needs the answer to continue, such as checking stock before confirming an order or fetching a user profile to render a page. The cost is temporal coupling: if the callee is slow or down, so is the caller, and a chain of synchronous calls multiplies latency and failure probability.
Asynchronous communication uses a message broker or event stream. The caller publishes a command or event and continues; consumers process it when they can. Producers and consumers no longer need to be available at the same time, traffic spikes are buffered in the queue, and new consumers can be added without changing the producer. The cost is eventual consistency, harder debugging and the need for idempotency and dead-letter handling.
Synchronous chain
Asynchronous flow
Availability multiplies down a chain
Side by side
| Synchronous (REST/gRPC) | Asynchronous (queues/events) | |
|---|---|---|
| Caller waits? | Yes | No |
| Coupling in time | Both must be up | Decoupled via broker |
| Latency | Sum of the chain | Fast acknowledgement, work later |
| Consistency | Immediate | Eventual |
| Failure handling | Timeouts, retries, circuit breakers | Retries, DLQs, idempotent consumers |
| Best for | Queries, decisions needed now | Side effects, workflows, integration |
Practical examples
Resilient synchronous call
Always set timeouts, retry only idempotent requests with backoff, and fail fast with a circuit breaker.
import httpx, tenacity
@tenacity.retry(stop=tenacity.stop_after_attempt(3),
wait=tenacity.wait_exponential_jitter(initial=0.1, max=1),
retry=tenacity.retry_if_exception_type(httpx.TransportError))
def get_stock(sku: str) -> int:
r = httpx.get(f"http://inventory/stock/{sku}", timeout=httpx.Timeout(0.5, connect=0.2))
r.raise_for_status()
return r.json()["available"]A saga instead of a distributed transaction
Each step publishes an event; failures trigger compensating actions.
OrderPlaced → Inventory reserves stock → StockReserved
StockReserved → Payments charges card → PaymentSucceeded | PaymentFailed
PaymentFailed → Inventory releases stock (compensation)
PaymentSucceeded → Orders marks order confirmedgRPC for low-latency internal calls
Typed contracts and HTTP/2 multiplexing.
syntax = "proto3";
service Inventory {
rpc GetStock (GetStockRequest) returns (GetStockReply);
}
message GetStockRequest { string sku = 1; }
message GetStockReply { int32 available = 1; }Common mistakes
- Long synchronous call chains across many services for a single user request.
- No timeouts on HTTP clients, so one slow dependency exhausts every thread.
- Retrying non-idempotent operations, causing double charges.
- Using queues for queries that need an answer now, then polling for the result.
- No dead-letter queue, so poison messages block a consumer forever.
Key takeaways
- Use synchronous calls when the caller needs the answer to proceed.
- Use asynchronous messaging for side effects, workflows and integration.
- Synchronous chains multiply latency and failure; keep them short.
- Make both styles resilient: timeouts and circuit breakers, idempotency and DLQs.
FAQ
Is gRPC better than REST?
For internal service-to-service calls, gRPC offers typed contracts, smaller payloads and streaming. REST is simpler for public APIs and browser clients.
What is a circuit breaker?
A wrapper that stops calling a failing dependency for a cool-down period after repeated failures, returning an error or fallback immediately instead of piling up waiting requests.
How do users see results of async work?
Return 202 Accepted with a status resource to poll, push updates over WebSockets or server-sent events, or notify by email.