Should microservices share common code?
- Should microservices share code repositories?
- How do you use common code in microservices?
- Should microservices talk to each other directly?
- Why microservices should not share database?
Should microservices share code repositories?
A particular team needs to take the ownership and governance of the library and its code repository. One of the main limitations of this approach is that the Microservices should share the same programming language and platform to reuse the libraries effectively.
How do you use common code in microservices?
Sharing Code Between Microservices1Sharing common code between our microservices while keeping our code DRY.2Avoiding coupling through shared-libs which eliminates the advantages of separating development process.3Enable simple changes and sync to the code we share between our microservices.How to Share and Sync Code Between Microservices - DZone
Should microservices talk to each other directly?
If possible, never depend on synchronous communication (request/response) between multiple microservices, not even for queries. The goal of each microservice is to be autonomous and available to the client consumer, even if the other services that are part of the end-to-end application are down or unhealthy.
Why microservices should not share database?
Microservices with shared databases can't easily scale. Changes related to the database could impact multiple services. Besides, microservices won't be independent in terms of development and deployment as they connect to and operate on the same database.
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