Re:Monolith First (2015)
by rizpanjwani on Friday February 19, 2021 @05:25AM
(#26191500)
Does each microservice/module have its own db?
Re:Monolith First (2015)
by thatswrong0 on Friday February 19, 2021 @05:40AM
(#26191613)
Nope. Everything lives in one big DB, but services are not allowed to touch each others tables directly - communication must be done through service API endpoints.
AFAIK, we haven't actually split out anything yet after all these years. All of our scale issues have been related to rather lackadaisical DB design within services (such as too much data and using a single table for far too many different purposes), something an arbitrary HTTP barrier erected between services would not have helped with at all.