News for hackers. Stuff that matters.
Re:PgBouncer is useful, important, and fraught with peril by merb on Friday September 08, 2023 @03:06PM (#37437960)
> microservices breed like rabbits in spring once developers make the first one

microservices talking to the same db... thats not microservices thats a disaster. you basically combine the negatives of the microservice world with the negatives of the monolith - tight coupling.

Re:PgBouncer is useful, important, and fraught with peril by stubish on Friday September 08, 2023 @08:30PM (#37440992)
Databases are there to share data and provide transactional guarantees and even locking. Your data often must be tightly coupled like this, and most databases designed with this in mind and provide benefits when doing so. It doesn't mean your apps need to be, and there are still plenty of benefits in deployment and operations to be had with microservices. Silo the data when it makes sense, but force the issue you end up with a different problem trying to reimplement the benefits of a database in the app layer or with a fault tolerant, guaranteed delivery messaging system (itself a database under the hood).
Re:PgBouncer is useful, important, and fraught with peril by fuy on Saturday September 09, 2023 @06:59AM (#37443999)
they can have their own databases, but still be on the same Postgres instance (aka cluster in Postgres parlance).