r/ProgrammerHumor • • Jan 02 '22

Debugging Code Be Like.

58.4k Upvotes

283 comments sorted by

View all comments

Show parent comments

5

u/[deleted] Jan 03 '22

That sounds like a terrible design, I've always heard of the One database per service principal. One schema per service is fine, but to have multiple concurrent services accessing the same dataset, like why

3

u/trwolfe13 Jan 03 '22

It’s horrible. My team and I have been fighting it for the last year. We’ve made some good improvements, but I don’t think I’ll ever be happy with it.

A schema per service works well for functional separation, but it leaves you with another single point of failure, so if reliability is a key requirement, more databases can help. It also frees you up to use different database technologies. We generally switch between SQL Server and CosmosDB.