3 ms·
Multiple services using the same database will typically end poorly. When schemas or indexes change, how will that affect all of the different services? How do
by jonhohle 1mo ago
Multiple services using the same database will typically end poorly. When schemas or indexes change, how will that affect all of the different services? How do their read/write patterns differ? When one service needs to scale, will the additional connections starve the other services? And worse, if a service ends up moving to a different team or department, who controls the database?
I prefer a service that fronts the database. Swap the database, scale it, whatever, and clients keep going.
- vjvjvjvjghv 1mo ago"When schemas or indexes change, how will that affect all of the different services? " It's absolutely horrible. Now all the services are tightly coupled without the devs really realizing this. And the side effects of database changes can be super subtle and hard to predict.