Anonymous
Asked in
Cars &Transportation
·
2 weeks ago
Why microservices have separate databases?
Contents
- Why are there different databases in microservices?
- Should microservices have separate database?
- Can microservices have same database?
Why are there different databases in microservices?
It means that we can use different database technologies for different microservices. So one service may use an SQL database and another one a NoSQL database. That's feature allows using the most efficient database depending on the service requirements and functionality.
Should microservices have separate database?
As you described it very well above, each microservice needs to own it's DATA, which could be held within a dedicated database, within a dedicated schema (within a database), or even a set of dedicated tables (within a schema within a database).
Can microservices have same database?
Yes, it's possible to integrate a database for microservices. You can create a single shared database with each service accessing data using local ACID transactions.
Related Questions
Relevance
-
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
Write us your question, the answer will be received in 24 hours