architect-handbook

Software Architect Handbook

View on GitHub

Multischema Storage

Overview

If you are still making direct use of the data in a database, it doesn’t mean that new data stored by a microservice should go in there too.

We have to consider what happens when a foreign-key relationship effectively spans a schema boundary.

Pulling out the data from a monolithic database will take time, and may not be something you can do in one step. You should therefore feel quite happy to have your microservice access data in the monolithic DB while also managing its own local storage.

Where to Use It