What are Microservices?
Microservices are an information technology architectural pattern in which complex application software is composed of independent processes. These communicate with one another through language-independent programming interfaces. The services are largely decoupled and each take on one small task, which enables a modular structure of the software.
There is no clear boundary for when one speaks of a microservice architecture. It is not only a software technique but also a way of working in the development of large programming projects. The guiding principle is Ken Thompson's Unix philosophy "Do one thing and do it well": each service concentrates on one task and performs it well.
Distinction: Microservices and Service-Oriented Architecture
A microservice architecture is often understood as a further development of service-oriented architecture (SOA). There, too, small services play a role, but they are embedded in a larger overall system and are less independent than is expected of microservices. Since both terms are fuzzy, the transitions are fluid.
Example
An order application is divided into separate services for customer data, inventory checking, and invoicing. Each service can be adapted independently and provides its functions through an interface.
Related terms
- API (application programming interface) – communication path between the services.
- Process orchestration – coordinates services in a process flow.
- Workflow engine – executes workflows and calls services.
- Business-IT alignment – coordination between business and IT.