logoalt Hacker News

teaearlgraycoldyesterday at 6:56 PM2 repliesview on HN

Well if you run a tiny single-threaded app then SQLite is a nice simplification over spinning up a separate machine for Postgres.


Replies

ai_fry_ur_brainyesterday at 7:38 PM

I use postgres for very simple apps. I have a Dockerfile I use in my boilerplate repo. It takes a single make cmd for me to build, start and run migrations. Its as simple as using sqlite.

show 2 replies
etermyesterday at 8:20 PM

Or you can run postgres on the same machine as the application, which lets you much more easily migrate if the time comes when you need to scale to multiple application servers.

There's a world between "local file" and "network DB server", running a DB server locally has lots of benefits from being able to easily query from outside if needed to forcing you to consider concurrency without the latency overhead of a network hop.

show 3 replies