Anonymous Asked in Cars &Transportation · 2 weeks ago

Should microservices be dependent on each other?

It just means that the communication between microservices should be done only by propagating data asynchronously, but try not to depend on other internal microservices as part of the initial service's HTTP request/response operation. 13 апр. 2022 г.


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

Relevance
Write us your question, the answer will be received in 24 hours