Core Idea

Interservice Communication Pattern is a data access strategy in distributed architectures where services obtain data they don’t own by directly requesting it from the owning service at runtime, rather than duplicating the data locally.

Definition

Interservice Communication Pattern is a data access strategy where services obtain data they don’t own by directly requesting it from the owning service at runtime. Services “ask” for data rather than “store” copies of data owned by other bounded contexts, preserving single-source-of-truth semantics while introducing runtime dependencies.

Key Characteristics

  • Data ownership enforcement: Each service owns its domain data exclusively; consumers cannot directly access another service’s database
  • Request-based access: Consumers make API calls (REST, gRPC, messaging) to data owners, treating the owning service as the authoritative source
  • Strong consistency at read time: Data retrieved is current as of the request moment, avoiding stale data issues inherent in replication patterns
  • Runtime coupling trade-off: Consumer services depend on owner service availability and response time, creating dynamic coupling that affects reliability and performance
  • Network overhead: Every data access incurs network latency, serialization costs, and potential failures
  • Scalability implications: Data-owning services become bottlenecks if frequently queried by many consumers

Why It Matters

This pattern is essential for maintaining clear data ownership in distributed architectures—ensuring each domain has a single source of truth. It is most appropriate when strong consistency is required and data changes frequently.

However, runtime dependencies impact availability, latency, and scalability. If the owning service is unavailable, all dependent services fail. High-traffic scenarios can overload data-owning services—necessitating migration to alternatives like Column-Schema-Replication-Pattern or Replicated-Caching-Pattern.

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.