MicroServices: How do we join the data among different microservices?

Alberto Cubeddu
CreditorWatch
Published in
7 min readMay 12, 2021

--

Microservice culture is great. Nevertheless, the data behind still need to be interconnected; how do you solve that problem?

How to join data that reside in different databases?
Monolith VS Microservices Databases Structure

Let’s start with a simple problem: We have a monolithic system that needs to be split into microservices.

Statement: How do I know all the users’ emails purchasing products A, B or C?

Like anything in the IT world, there is no right or wrong solution; nevertheless, depending on your use case, one can be better. Always balance the pros and Cons of any solution and apply it to your environment and development culture. Sometimes the fastest thing helps you survive in the market, and the most prolonged and more complex is the one that allows you to scale up quickly in the future!

The solutions illustrated will cover any case scenario we’ve experienced during the microservices journey, explaining the pros and cons.

Using a Single Database Cluster (leveraging the schemas or tables)

--

--

Alberto Cubeddu
CreditorWatch

Leadership || Management || Innovation - Technology Director & Former Head Of Engineering