Skip to content
IT glossary
ArchitectureUpdated December 3, 2026

Microservices

Микросервисы

This way of building an application splits it into services that can be released independently. Each service handles a part of the business, such as orders or payments, and communicates with the others through agreed interfaces.

Also known as: микросервисная архитектура

What makes a service a microservice?

Think of an online store. The catalog team should be able to change how it searches products without asking the checkout team to ship a new version. Microservices make that possible by separating the application into deployable services with distinct responsibilities. There is no rule about how many endpoints or lines of code a service should have. The useful test is whether it owns a coherent capability and can change without forcing its neighbors to change at the same time.

A modular monolith can have equally clear internal boundaries, but its modules ship together as one application. Splitting them into separate processes adds a new constraint: what used to be a function call can now time out or fail after the remote service has already done the work.

How the pieces fit together

A service can make a synchronous request over HTTP or gRPC when it needs an answer to proceed. It can also publish an event through a message broker when other services can react later. Synchronous calls make the dependency immediate: if checkout waits on inventory, an inventory outage can block checkout. Messaging removes that wait from the request path, but consumers must account for late or duplicate messages.

A service normally controls writes to the data it owns. Other services use its API or maintain their own views from published events instead of querying its private tables. This boundary lets the owner change its schema without breaking other services. It does not require a separate database server for every service; separate schemas with appropriate access controls can share a cluster.

Example: paying for an order

The order service records a new order as Pending payment. Once the charge succeeds, the payment service publishes PaymentSucceeded. The order service consumes the event and marks the order as Paid. If the broker delivers the event twice, processing the second copy should not trigger another shipment. The payment can be recorded as successful while the order still says Pending payment; assuming the event is processed successfully, the records converge. This is eventual consistency, and the order page needs to handle the temporary pending state honestly.

When the split pays off

Independent deployment is valuable when several teams need different release schedules. Separate services also let you scale a busy catalog without scaling checkout along with it. In return, you have more deployments, network failures, and cross-service debugging to manage. Metrics, logs, and distributed traces help you follow a request across services. Containers alone do not make a system a microservices architecture: if every release still requires a coordinated rollout or teams depend on one another's private tables, you have the operational costs of a distributed system without release independence.

How it comes up in interviews

In a system design interview, explain why a boundary is worth adding before naming tools. Identify which service owns each piece of data, what the user sees when a dependency times out, and which operations can safely be retried. For a small team still figuring out the product, a modular monolith can be a better starting point: it preserves internal boundaries without introducing network failures between modules.