Microservices Architecture
Subject: Computer and Technology noun /ˈmaɪ.kroʊˌsɜːr.vɪ.sɪz ˈɑːr.kɪˌtɛk.tʃər/ 1 definition
- software-architecture
- distributed-systems
- cloud-computing
- system-design
-
Definition (noun)
Entry #242 · UpdatedMicroservices Architecture is a distributed software design pattern that decomposes an application into a suite of small, autonomous services modeled around distinct business capabilities. Each service runs in its own process, manages its own dedicated data store, and communicates with other services across a network using lightweight protocols such as HTTP, gRPC, or asynchronous messaging. By enforcing strict service boundaries and loose coupling—unlike a tightly integrated monolith—this approach enables engineering teams to build, deploy, scale, and isolate failures in individual components independently.
Common Forms
API Gateway-Fronted (Synchronous): Services expose REST or gRPC endpoints behind an API gateway that handles request routing, authentication, and rate limiting for external clients.
Event-Driven (Choreographed): Services publish and consume domain events asynchronously through message brokers such as Apache Kafka or RabbitMQ, eliminating tight point-to-point dependencies.
Orchestrated (Saga-Based): A central coordinator directs multi-service workflows and compensating rollback steps, maintaining eventual consistency across distributed databases without two-phase locks.
Serverless (Function-Based): Individual service capabilities execute as ephemeral, event-triggered functions on managed Function-as-a-Service (FaaS) platforms that scale automatically with demand.
Example
An e-commerce platform decomposes its checkout pipeline into dedicated Order, Payment, and Inventory microservices—each backed by its own PostgreSQL or Redis store—communicating over gRPC and Kafka events. During a holiday flash sale, engineers scale only the Order and Inventory containers from four to forty replicas to absorb traffic surges while leaving the Payment service untouched and fault-isolated.