Core Idea

Granularity integrators are architectural forces that favor larger, more integrated services over fine-grained decomposition.

Definition

Granularity integrators are architectural forces that favor larger, more integrated services over fine-grained decomposition. These forces represent constraints, dependencies, or quality attributes that benefit from keeping components together within a unified service boundary. When integrator forces are strong, they create pressure to consolidate services or resist splitting existing components.

Service sizing emerges from analyzing competing forces within each architectural context. Integrators oppose Granularity-Disintegrators—forces favoring smaller, focused services.

Key Characteristics

  • Database transactions (ACID): Need for atomic, consistent operations across data entities pushes toward shared databases and larger service boundaries
  • Workflow management: Complex multi-step business processes requiring state coordination benefit from centralized control in a single service
  • Shared code dependencies: Significant shared functionality creates coupling that justifies keeping services together rather than duplicating logic
  • Performance and latency concerns: Each service boundary adds network hops and serialization overhead; consolidation reduces inter-service communication costs
  • Operational overhead: Managing deployments, monitoring, and inter-service communication requires resources that may exceed business value for very small services

Why It Matters

Integrators enable evidence-based decisions about when not to decompose services, preventing the over-engineering trap of excessive microservices. Distributed systems introduce challenges—network latency, fault tolerance, data consistency—that don’t exist in monoliths. Integrators identify when these challenges outweigh decomposition benefits.

Different contexts prioritize different integrators: financial systems emphasize ACID transactions; e-commerce balances transaction needs with scalability. Right granularity emerges from analyzing competing forces, not from universal rules.

Sources

Note

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.