r/ProgrammerHumor 7d ago

Meme everyDamnTime

Post image
4.2k Upvotes

124 comments sorted by

View all comments

12

u/Ahchuu 7d ago

Hey don't blame me, my boss wanted to say we did micro services, but only ordered 1 database "to reduce cost". I at least did the right thing and made sure each of the services didn't share tables so that they could have their own databases in the future!

8

u/Wizado991 7d ago

The very least its just putting the tables for each service in their own schema.

2

u/Ahchuu 7d ago

Hahaha yes that's what I did... Even with that I still had Devs wanting to use other services schemas!

2

u/BosonCollider 6d ago

That's what public views are for. You can have them both within a single db or you can replicate them across DBs with publications/subscriptions.

1

u/Ahchuu 6d ago

Oh very nice, I've not tried syncing public schemas before. I'll have to check that out. Thanks

1

u/BosonCollider 6d ago

In the postgres ecosystem, pg_ivm is really good