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

APIOrdersInventoryPaymentsPOST /ordersreserve stock (sync)okcharge (sync)ok201 created
A synchronous chain: latency adds up and any failure fails the request.

Asynchronous flow

APIOrdersBrokerInventory / EmailPOST /orderspublish OrderPlaced202 accepteddeliver when readyStockReserved event
An asynchronous flow: the user gets a fast response; work completes in the background.

Availability multiplies down a chain

1 dependency99.9% → ≈43 min/month down3 in a chain99.7% → ≈130 min10 in a chain99.0% → ≈7.2 h
Expected monthly downtime of a request that needs every 99.9%-available dependency in a chain to succeed.

Side by side

Synchronous (REST/gRPC)Asynchronous (queues/events)
Caller waits?YesNo
Coupling in timeBoth must be upDecoupled via broker
LatencySum of the chainFast acknowledgement, work later
ConsistencyImmediateEventual
Failure handlingTimeouts, retries, circuit breakersRetries, DLQs, idempotent consumers
Best forQueries, decisions needed nowSide 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 confirmed

gRPC 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.

More Architecture articles