This abstract gave the difference between a Microservice and an API as:
A microservice exposes it's interface, what it can do, by means of an API. The API is the list of all endpoints that a microservice respond when it receives a command/query. The microservice contains the API and other internal+hidden things that it uses to respond to client's requests.
I've worked with Modules & Microservices in Java, but is there a better way to distinctively describe the differences between a Module & a Microservice?
Based on my experience several Modules were imported as part of a Microservice project. Is a Microservice a module of some kind with additional capabilities of exposing RESTful Endpoints? What distinctively differentiates a Module from a Microservice or vice-a-versa?
Is there more we can discuss about the topic in question to clarify the potential confusion?
I have added some visual aid for further clarity:
Please refute if you may, and also provide reliable references in relation to your experience with microservices and modules.
The difference between a module and a microservice is one of packaging. Modules are programming level constructs which package and encapsulate a piece of software for reuse by other software via inclusion in a deployment (designed for in-process execution). A microservice is a deployment of a piece of software for use by other software, separated by a wire protocol.
Microservices provides an API (REST or No Rest).
Microservice code could be written in a way that some bigger project could use it as a module.
When we choose it to be a microservice rather than module:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With