Skip to main content
Legia

Apps & Software

What are Microservices?

Also called microservices architecture, fine-grained services.

Short definition

Microservices is an architecture that breaks a large application into small services, each handling one business function, running separately, and communicating with one another through APIs.

How it works

Instead of one large application containing every function, known as a monolith, the system is split into, for example, an order service, an inventory service, a payment service, and a notification service. Each service has its own code and often its own database, can be released without waiting for the others, and can be scaled on its own when its load rises. These services usually run in containers and are managed by an orchestrator such as Kubernetes.

When it makes sense

Microservices suit large systems worked on by several teams at once, or systems where some functions handle far more load than others. At that scale, separating services reduces the risk that one small change breaks the entire application.

The price you pay

More services mean more things to monitor, secure, and connect. Errors can happen between services, not just inside them, so tracing them is harder. Data spread across several databases is also harder to keep consistent, for example when one order must reduce stock and record a payment at the same time. For an internal application at a mid-sized company with one small team, a well-organized monolith is usually faster to build and less costly to maintain. Many systems start as a monolith and only split out specific services once the need is proven.

Related Legia service Web Application Development Service portals, document archives, and CMS dashboards with role-based login, built in stages with source code that belongs to you.

Resources