What is microservices architecture?
A microservices architecture builds an application from small services that each own one business capability, run as separate processes and talk over the network. It trades the simplicity of one program for independence between parts.
How does it differ from a monolith?
A monolith is one deployable application containing all features, sharing one process and usually one database. Microservices split those features into separate services: orders, payments, catalogue, notifications, each with its own code base, deployment and data. A change to the catalogue can ship without touching payments, and a busy service can be scaled on its own.
What are the benefits?
Independence. Teams deploy their service on their own schedule, choose suitable languages and libraries, and scale parts according to their load. A failure in one service can be contained so the rest keeps working: if recommendations are down, the shop still sells. Large organisations with many teams gain the most, because the architecture mirrors how they already work.
What are the costs people underestimate?
Distribution. Calls that used to be function calls now cross a network, can fail, time out or arrive twice. Transactions spanning services need patterns such as sagas instead of one database commit. Debugging requires tracing across services. Each service needs its own deployment pipeline, monitoring and security updates. For a small team, these costs often outweigh the benefits, and a well-structured monolith remains the better choice.
| Concern | Monolith | Microservices |
|---|---|---|
| Deployment | One unit | Many independent units |
| Scaling | Whole application | Per service |
| Data consistency | One database transaction | Per service, eventual across services |
| Debugging | Stack traces in one process | Distributed tracing needed |
| Team size it suits | Small to medium | Several teams |
How do services communicate?
Synchronously or through messages. Synchronous calls over HTTP or gRPC suit requests that need an immediate answer, such as checking stock. Asynchronous messages through a broker such as Kafka, RabbitMQ or NATS suit events other services react to, such as an order being placed. Messaging decouples services in time, so a slow consumer does not slow the producer. Set timeouts, retries with backoff and circuit breakers on every synchronous call.
Who owns the data?
Each service owns its data and exposes it only through its API or events. Sharing one database between services couples them tightly again and defeats the purpose. Services that need another's data subscribe to its events and keep their own copy in the shape they need. This duplication is deliberate.
Why is observability essential here?
Because a single user request may touch ten services. Without trace IDs passed between them and collected centrally, finding which one was slow is guesswork. Plan metrics, structured logs and tracing from the first service, as described in Observability explained.
How do microservices run on dedicated servers?
Usually as containers, on Docker Compose for small setups or on a Kubernetes cluster for larger ones. Dedicated machines give each node plenty of cores and memory, so many services share a few powerful hosts with no hypervisor overhead. Service-to-service traffic between machines should be encrypted, with a WireGuard mesh or a service mesh with mutual TLS, since we do not sell a private network. A three node cluster of ESSENTIAL-L machines, at $106.20 each per month, runs dozens of services with room for brokers and databases.
kubectl create deployment catalogue --image=registry.example.org/shop/catalogue:4.2.0 --replicas=3 kubectl set resources deployment catalogue --requests=cpu=250m,memory=256Mi --limits=memory=512Mi kubectl expose deployment catalogue --port=8080
How should I start?
With a modular monolith, and split out services only where independence pays: a part that changes much more often than the rest, needs very different scaling, or belongs to a separate team. Our pages on Apache Kafka clusters, RabbitMQ servers and Kubernetes and Docker cover the building blocks.
Machines for container and service hosts
| Model | Processor | Cores | Memory | Drives | Port | Per month |
|---|---|---|---|---|---|---|
| ESSENTIAL-M | AMD Ryzen 9 9900X | 12 | 64 GB | 2x 512 GB SSD NVMe | 1 Gbps unmetered | $70.80 |
| ESSENTIAL-L | AMD Ryzen 9 9950X | 16 | 128 GB | 2x 960 GB SSD NVMe | 1 Gbps unmetered | $106.20 |
| ESSENTIAL-XL | AMD EPYC TURIN 9455 | 48 | 128 GB | 2x 1.92 TB SSD NVMe | 1 Gbps unmetered | $212.40 |
| BUSINESS-3 2026 | AMD EPYC 4465P | 12 | 64 GB | 2x 960 GB SSD NVMe | 3 Gbps unmetered | $184.20 |
| ENTERPRISE-a3 2026 | AMD EPYC TURIN 9355 | 32 | 128 GB | 2x 1.92 TB SSD NVMe | 5 Gbps unmetered | $481.80 |
Related pages
Kubernetes and Docker
Docker builds and runs containers; Kubernetes schedules them across machines. What each does, where Compose is enough, and running both on dedicated servers.
Read moreObservability explained
Metrics, logs and traces working together so you can explain a problem you did not predict, with instrumentation tips, sampling and storage sizing.
Read moreApache Kafka clusters
Run Apache Kafka in KRaft mode on bare metal: controllers and brokers, log directories on many drives, replication settings, page cache and retention sizing.
Read moreRabbitMQ servers
Run RabbitMQ brokers on bare metal: quorum queues and streams, the ports a node uses, memory and disk alarms, three-node clusters over WireGuard.
Read moreQuestions and answers
What is a microservices architecture?
An application built from small, independently deployed services that each own one capability and communicate over the network.
Are microservices better than a monolith?
Not by default. They help several teams work independently but add distributed-system costs that small teams may not need.
Should microservices share a database?
No. Each service should own its data and share it through APIs or events, or the services become tightly coupled.
How do microservices communicate?
Through synchronous calls over HTTP or gRPC, and asynchronous events through brokers such as Kafka, RabbitMQ or NATS.
Can I run microservices on dedicated servers?
Yes, as containers on Docker Compose or Kubernetes, with traffic between machines encrypted by WireGuard or mutual TLS.