From the course: Microservices: Design Patterns (2020)

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Shared service database

Shared service database

From the course: Microservices: Design Patterns (2020)

Start my 1-month free trial

Shared service database

- [Instructor] While the single service database pattern is usually a more effective one, there are some times when you must use a shared database. The shared database pattern isn't really much new, especially if you have done some application development in your life. In reality, this is an enterprise construct that is carried over into a distributed model like microservices, mainly due to contracts that have already been signed. There are some ways we can pattern our data, however, in our data store to be more effective for eventually breaking the database up. The given in this case is that all data domains exist within a single database instance. The key here is we can still treat them as separate databases from a code concept even if physically they are single instance. Data distribution should still be handled by the database itself. If you're deploying to multiple data centers, you need the database to handle the data…

Contents