What is the difference between a microservice and an API?
Microservices is an approach to building an application that breaks its functionality into modular components. APIs are part of an application that communicates with other applications.
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction: What is the difference between a microservice and an API?
### Input: 
### Response: Microservices is an approach to building an application that breaks its functionality into modular components. APIs are part of an application that communicates with other applications.