Should microservices be dependent on each other?
- Should microservices know about each other?
- Should microservices be independent?
- Is microservices platform dependent?
- Can one microservice use another microservice?
Should microservices know about each other?
I would generally advise against having microservices do synchronous communication with each other, the big issue is coupling, it means the services are now coupled to each other, if one of them fails the second is now fully or partially disfunctional.
Should microservices be independent?
In many explanations of microservices, a microservice is described as a service that can be operated independently of each other. However, they cannot form a complete app without depending on each other. A backend service still needs a database and a frontend interface is just an empty box without data.
Is microservices platform dependent?
Advantages of microservices Eliminate vendor or technology lock-in: Microservices provide the flexibility to try out a new technology stack on an individual service as needed. There won't be as many dependency concerns and rolling back changes becomes much easier. With less code in play, there is more flexibility.
Can one microservice use another microservice?
One microservice can easily expose a REST endpoint for other microservices to call it. Integration via RESTful endpoints is typically implemented when a microservice needs to call another and receive an immediate (synchronous) response.
Related Questions
-
Anonymous2 weeks ago
Expert answer2 weeks ago -
Anonymous2 weeks ago
Expert answer2 weeks ago -
Anonymous2 weeks ago
Expert answer2 weeks ago -
Anonymous2 weeks ago
Expert answer2 weeks ago -
Anonymous2 weeks ago
Expert answer2 weeks ago -
Anonymous2 weeks ago
Expert answer2 weeks ago -
Anonymous2 weeks ago
Expert answer2 weeks ago