What Are Microservices?
I first wrote this post in Turkish in 2017. This English version is a translation, with the parts that have aged updated.
A microservice is a small, independently deployable service built around a single business capability: payments, search, notifications, user profiles. Each one owns its own code, its own data and its own release cycle, and talks to the others over the network through well-defined APIs or events.
You will sometimes see microservices defined by size, such as “under 1,000 lines of code”. That is not a useful rule. What matters is that a service has one clear responsibility and can be changed and deployed without coordinating with every other team.
Why microservices appeared
Many enterprise systems were built as large monoliths, often in a Service Oriented Architecture (SOA) style, with every component living in one codebase and one deployable unit. SOA brought real strengths, including manageability, maintainability and interoperability, but as integration needs kept growing, these monoliths grew with them, often without much planning. At that size the downsides become hard to ignore:
- Every component has to use the same framework and the same programming language.
- A change in one component means redeploying and restarting the whole application.
- Versioning gets harder and harder.
- Because components depend on each other, a change in one can break another.
- Continuous delivery becomes difficult to practise.
Microservices grew out of this. Instead of keeping every component in one place, each component becomes its own service, free to use whatever language or framework suits it, and still part of one product.

Microservices focus on the complexity and management overhead that comes with a monolith that keeps growing without a plan. They are not a replacement for SOA; you can think of them as a more fine-grained, independently deployable take on the same service-oriented idea.
Benefits
- Services can be written in different languages and frameworks.
- Each service can change independently and is easier to test and build on its own.
- Continuous delivery becomes practical, and deployments get smaller and faster.
- Each service can be scaled independently, only where the load actually is.
- Each codebase stays small and focused, so maintenance is easier.
- Versioning is simpler, because each service has its own release cycle.
- The architecture does not have to be designed perfectly up front; it can evolve with the product.
- New team members can get productive in one service without learning the whole system.
- Teams can own services end to end, from code to production.
A note that has aged: the original post said microservices are stateless. A better way to put it today is that a service should not keep important state in its own memory. State belongs in the service’s own datastore (a database, a cache, a queue), so any instance can serve any request and instances can be added or removed freely.
Costs
Microservices have real costs too:
- Duplication. Services that work with the same concepts end up repeating some models and code.
- Operational overhead. Many services on many machines need deployment pipelines, monitoring, logging and tracing for each of them.
- Distributed data. Each service owns its data, so a business operation that spans several services can no longer rely on one database transaction.
Tooling has made most of these manageable. DevOps practices, containers and orchestration (Docker and Kubernetes), and observability tools such as Prometheus, Grafana and distributed tracing handle much of the operational side. The original post suggested distributed transaction managers for the data problem; today the more common approach is to avoid distributed transactions altogether and use patterns such as the saga (a sequence of local transactions with compensating steps) and eventual consistency through events.
An example of the supporting capabilities a microservice can depend on:

With this many services, setting up servers by hand is not an option. Infrastructure as Code (IaC) solves this: infrastructure is described in code (for example with Terraform) and created automatically, so services can be deployed onto it quickly and repeatably. One of the nicest properties of a microservice architecture is being able to ship a specific set of features to a specific set of servers at any moment.
Companies known for running microservice architectures include Netflix, Spotify and Amazon.
A 2026 note: when a monolith is the better choice
Microservices are a way to scale teams and deployments, not a goal in themselves. For a small team or a young product, a well-structured monolith, often called a modular monolith with clear internal boundaries, is usually faster to build and much easier to run. You can extract services later, once a boundary is clear and there is a real reason (independent scaling, independent releases, separate team ownership).
A monolith can also go very far. Today I work on a monolith at Etraveli Group that handles 5.4 billion searches a day. Whether a system is fast and reliable depends far more on its design, its data access patterns and its operational discipline than on how many deployable units it is split into.
Further reading
- A talk on microservices (video)
- Sources of the original post (in Turkish): medium.com, gokhan-gokalp.com