Core Idea

Synchronous communication is an interaction pattern where a caller sends a request and blocks execution, waiting for a response before proceeding—creating temporal coupling between caller and receiver.

Definition

Synchronous communication is an interaction pattern where a caller sends a request and blocks execution, waiting for a response before proceeding. Both parties must be available simultaneously—the caller cannot continue until the receiver returns a result. This creates a direct dependency on receiver availability and response time.

Underpins REST APIs, gRPC, database queries, and traditional function calls.

Key Characteristics

  • Blocking operation: Caller suspends execution and waits, unable to perform other work
  • Temporal coupling: Both parties must be available simultaneously—receiver unavailability means caller failure
  • Additive latency: Response time equals the sum of all service latencies in the call chain
  • Strong consistency: Immediate feedback enables atomic-like behavior from the caller’s perspective
  • Simpler mental model: Request-response flows are easier to understand and debug
  • Error propagation: Downstream failures immediately propagate back as exceptions

Example

Payment processing: An e-commerce checkout calls a payment gateway and waits for confirmation before completing the order—immediate consistency required.

Why It Matters

Service A’s response time becomes A’s latency plus B’s latency plus network overhead. If B is slow or unavailable, A degrades immediately. This cascades—any single failure can propagate throughout the call chain.

Correct choice when immediate feedback is essential: validating user input, checking balances, retrieving data to render a page. For background operations where eventual consistency is acceptable, Asynchronous-Communication is preferred.

Sources

AI Assistance

This content was drafted with assistance from AI tools for research, organization, and initial content generation. All final content has been reviewed, fact-checked, and edited by the author to ensure accuracy and alignment with the author’s intentions and perspective.