educative.io

Multiple microservices must not share a database schema - how

How is it possible that a shared database includes different schemas for different microservices, is it possible?


Course: https://www.educative.io/collection/10370001/6518081205567488
Lesson: https://www.educative.io/collection/page/10370001/6518081205567488/4713567020384256

Hi @Hezi_Debby,

Yes, this can be achieved using a database schema design that allows each microservice to have its own dedicated schema while sharing the same underlying database. This can be done by using a technique called “schema segregation,” where each microservice’s data is isolated within its own schema while still allowing for data to be shared between microservices through the use of shared tables or views.

I hope this helps.
Happy Learning :slight_smile: