Microservice is an architectural pattern, or we could say a system design pattern. It is based on Service Oriented Architecture. Service Oriented architecture

Source: Introduction to Microservices Architecture vs SOA vs Monolithic