Glossary termSoftware architecture

Microservices

Also known as: Microservice architecture

Architectural style that builds an application as a suite of small, independently deployable services, each running its own process and owning its data.

A microservices architecture breaks an application into many small services, each responsible for a single business capability, such as user accounts, payments or search. Each service runs as its own process and usually manages its own database, communicating with other services over the network, typically through HTTP APIs or message queues. Teams can build, deploy and scale each service independently, in whatever language suits it. The approach contrasts with a monolithic architecture, in which all functionality lives in a single deployable application.

The style grew out of service-oriented architecture and the experience of large web companies in the late 2000s and early 2010s. The term gained wide currency after James Lewis and Martin Fowler published an influential article describing its characteristics in 2014. Its rise coincided with containers, Kubernetes and automated deployment pipelines, which made running hundreds of small services practical. The idea also reflects Conway's law: organizations often align service boundaries with team boundaries so that each team owns a service from end to end.

Microservices bring real costs alongside their benefits. A function call becomes a network request that can fail or slow down, so systems need retries, timeouts, observability tooling and often a service mesh to manage traffic between services. Keeping data consistent across separate databases is hard, and debugging a request that passes through many services requires distributed tracing. Several organizations have publicly moved some systems back to monoliths after finding that the overhead outweighed the gains. A common recommendation is to start with a well-structured monolith and split it only when scale or team size demands.

Key points

  • Microservices split an application into small services that are developed, deployed and scaled independently.
  • James Lewis and Martin Fowler's 2014 article helped define and popularize the style.
  • Containers, orchestration platforms and automated pipelines made operating many small services practical.
  • Network failures, data consistency and distributed debugging are significant costs of the approach.

Related entries

Glossary term

Monolithic Architecture

ProgrammingDevOps

Software design in which an application's components are built, deployed and run together as a single unit rather than as separate services.

Technology

Kubernetes

DevOpsFOSS

Open-source system for automating deployment, scaling and management of containerized applications across clusters of machines.

Glossary term

Container

DevOpsProgramming

Lightweight, isolated package that bundles an application with its dependencies and configuration so it runs consistently across environments.

Glossary term

Infrastructure layer that manages communication between microservices, handling routing, encryption, retries and telemetry outside application code.

Glossary term

Conway's Law

ProgrammingIdeas and Culture

Observation that organizations design systems whose structure mirrors their own communication structure, formulated by Melvin Conway in the late 1960s.

Glossary term

Degree to which a system's internal state can be inferred from its outputs, and the practices and tools that make software systems understandable.

Glossary term

API

Programming

Defined set of rules and interfaces through which one piece of software can request services or data from another without knowing its internals.

Glossary term

DevOps

DevOpsIdeas and Culture

Set of cultural practices and tools that unites software development and IT operations to deliver changes faster and more reliably.

Referenced by

Other entries that discuss or point to Microservices.