Microservices architecture
An architecture style that develops one application as a suite of small services running in independent processes.
Structure and behavior
Follow the arrows step by step.
Example of independent deployments and data ownership. Interservice calls and distributed data consistency introduce additional concerns.
Expected benefits
Supports resilience, high scalability, independent deployments, and rapid evolution.
Trade-offs
Retries and breakers improve reliability but can increase tail latency; tune timeouts and fail-fast behavior.
Simply splitting the application is not enough: design, deployment, and operations require a fundamental change in thinking.
Operations and adoption guide
Synthesis, distinct from items backed by source excerpts. Validate before applying in production.
When to use
Fits services that need independent scaling and rapid change, such as e-commerce catalogs, carts, and orders, large media streaming, and data or ML pipelines.
Scenario
A Korean e-commerce platform handling tens of millions of monthly requests separates its catalog, inventory, ordering, payments, and shipment tracking into independent services. At peak only orders and payments scale horizontally. Each service has a separate data store and API contract for canary releases without downtime. Services communicate with REST and events. The requirement is to isolate ordering failures rather than impacting the whole shop.
Placement principles
- Split services by business capability and bounded context and provide a separate storage boundary per service
- Put API gateways and message brokers at communication boundaries and forbid direct access to another service’s DB
- Use a CDN for static UI and assets, external stores for sessions and cache, and queues and workers for asynchronous jobs
- Place discovery, configuration, secrets, and observability in a shared platform layer
- Standardize deployments on container images and externalize per-environment settings.
On premises
Reuse container images and orchestration templates. Integrate existing CI/CD, private registries, and monitoring. Plan network, storage, and node capacity directly, and use GitOps and a single operations console for consistency.
Cloud
Use managed Kubernetes, databases, queues and brokers, API gateways, autoscaling, and multi-AZ or regional failover. Evaluate cost and performance trade-offs at the same time.
Kubernetes
Standardize per-service Deployment or StatefulSet, HPA and VPA, Ingress and Gateway, ConfigMaps and Secrets, network policies, RBAC, Helm or Kustomize, GitOps, canary and rolling deployments, and shared mesh and observability tools.
Incident response
Typical issues include propagated service latency, cascades, retry storms, exhausted DB connections, message backlogs, deployment regressions, and node or zone failure. Contain propagation with timeouts, breakers, retry caps, load shedding, and bulkheads. Use telemetry, logs, and traces to narrow hypotheses, then isolate the service, roll back or pause the canary, reroute traffic, adjust capacity or queues, and fail over by zone or region if needed.
Evidence by criterion (14 total)
Evidence availability at the time of research. Assess source accuracy and currency separately.
Definition and overviewEvidence available
An architecture style that develops one application as a suite of small services running in independent processes.
an approach to developing a single application as a suite of small servicesProblem addressedEvidence available
Service-level failure isolation reduces single points of failure and allows independent scaling.
remove single points of failure (SPOFs) by ensuring issues in one service don't crash or affect other parts of an application.Key components and resourcesEvidence available
A set of small, autonomous services.
A microservices architecture consists of a collection of small, autonomous services.Data and asset placementEvidence available
Each service owns its technology stack, database, and data-management model.
Have their own technology stack, inclusive of the database and data management model.Typical use casesEvidence available
Separate services for a product catalog, shopping cart, or order processing are e-commerce examples.
ecommerce: Platforms use microservices to manage product catalogs, shopping carts, and order processing independentlyExample scenarioEvidence available
A retail sales reporting pipeline can split each preparation stage into a separate microservice.
in a reporting system for a company’s retail store sales, each step of the data preparation processWhen to avoid and caveatsEvidence available
Simply splitting the application is not enough: design, deployment, and operations require a fundamental change in thinking.
Building a successful microservices architecture requires a fundamental shift in mindset.On premises: development, deployment, and operationsEvidence available
Reuse the same container images and orchestration templates on premises.
same container images and orchestration templates work across cloud and on-premises environmentsCloud: development, deployment, and operationsEvidence available
Consider multi-zone deployment within a region and failover for high availability in the cloud.
if you require high availability, you might deploy to multiple availability zones in a regionKubernetes: development, deployment, and operationsEvidence available
A Kubernetes-based platform handles scheduling, orchestration, deployment, and canary releases for the services.
ACK handles scheduling, orchestration, deployment, and canary releases for microservice applicationsIncident responseEvidence available
Failures can arise from service interactions, so contain cascades and coordinate the response across services.
failures in a microservice system often result from an interaction between servicesBenefitsEvidence available
Supports resilience, high scalability, independent deployments, and rapid evolution.
resilient, highly scalable, independently deployable, and able to evolve quicklyDrawbacks and trade-offsEvidence available
Retries and breakers improve reliability but can increase tail latency; tune timeouts and fail-fast behavior.
Retries and circuit breakers improve reliability but can increase tail latency; prefer fail-fast with tuned timeoutsRepresentative tools and technologiesEvidence available
REST APIs, event streaming, and message brokers are representative communication technologies.
Communicate with one another over a combination of representational state transfer (REST) APIs, event streaming and message brokers.Additional references (24)
- Microservices Guide ↗
- Microservices Architecture Style - Azure Architecture Center | Microsoft Learn ↗
- What Are Microservices? | IBM ↗
- Monolithic vs. Microservices Architecture | IBM ↗
- Microservices Architecture Explained. Overview & Use Cases | Hazelcast ↗
- What Is Microservices Architecture? | Google Cloud ↗
- What are Microservices? - Azure DevOps | Microsoft Learn ↗
- What are microservices? ↗
- Explore workload management in a multi-cluster environment with GitOps - Azure Arc | Microsoft Learn ↗
- How to Run Kubernetes Across On-Premises and Public Cloud: Four Hybrid Architecture Models and the Seven Layers to Standardize ↗
- Reference Architecture: GKE Enterprise hybrid environment - part 2 - Dec '24 - Google Docs ↗
- Deploy Containerized Apps with AKS Hybrid and Edge by Using GitOps - Azure Architecture Center | Microsoft Learn ↗
- Scenarios for Container Service for Kubernetes (ACK)-Container Service for Kubernetes(ACK)-阿里云帮助中心 ↗
- Advanced Azure Kubernetes Service (AKS) Microservices Architecture - Azure Architecture Center | Microsoft Learn ↗
- Tanzu for Kubernetes Operations on VxRail ↗
- README_HYBRID.md at master · ibm-cloud-architecture/refarch-cloudnative-devops-kubernetes ↗
- Google SRE - Troubleshooting Methodology: A Learning Path ↗
- Resilient Microservices: A Systematic Review of Recovery Patterns, Strategies, and Evaluation Frameworks ↗
- 2.20 Error handling and resilience patterns — Software Engineering Guide ↗
- Failure Mitigation for Microservices: An Intro to Aperture ↗
- Interservice communication in microservices - Azure Architecture Center | Microsoft Learn ↗
- Recommendations for handling transient faults - Microsoft Azure Well-Architected Framework | Microsoft Learn ↗
- Design for Self-Healing - Azure Architecture Center | Microsoft Learn ↗
- Google SRE - Cascading Failures: Reducing System Outage ↗