Why a shared database is considered an anti-pattern in the microservice architecture

Alberto De Natale
4 min readSep 27, 2020

Data sovereignty is a rule that states that each microservice owns its domain data and logic. Other microservices that wanted to access or modify that data, will need to pass for the microservice itself for doing it.

I spent some time asking myself the reason for this rule. It seems so easy and time-saving having all your data available to query in a single database.

I came out with this explanation.

--

--

Alberto De Natale

Alberto De Natale is a passionate tech-enthusiast software developer.