News for hackers. Stuff that matters.
Re:What if we treated Postgres like SQLite? by omarqureshi on Monday September 22, 2025 @01:17PM (#45336534)
Literally prior to the cloud being a thing, for medium sized web apps, this was the way.
Re:What if we treated Postgres like SQLite? by ok_computer on Monday September 22, 2025 @01:52PM (#45337029)
I’ve always worked in a datacenter (non cloud) with separate db servers to the app servers. Besides network latency, what is the advantage of collocating the http server and database server on one machine?

It’s always given me a separation of concerns good feeling by seeing a dedicated db and app server and doesn’t seem like much overhead, given they are nearby machines in datacenter.

Also, our main reason was sharing a database license to have a well resourced multi-tenant/app db sever serving peripheral web app servers.

Re:What if we treated Postgres like SQLite? by markusw on Monday September 22, 2025 @02:06PM (#45337243)
The biggest one is latency. Network latency will almost always be orders of magnitude bigger than I/O latency. There's a whole class of problems that goes away when latency becomes very small.
Re:What if we treated Postgres like SQLite? by ok_computer on Monday September 22, 2025 @02:38PM (#45337648)
Noted, that confirms my suspicion. Thanks.