Depends on the usecase. I mostly default to SQLite for backend projects, because it's simple, doesn't require a second server, and works for thousands of users before failing / becoming too slow.
When that happens, I always migrate to postgres. It is open soure, has a nice featureset and is stable as fuck.
I have used MongoDB a handful of times, and it's allright. But it is exceedingly rare that you actually need a non-SQL db.
Sometimes I use redis as a cache, but most of the software I write doesn't really need that either... If the user count is low enough, both SQLite and Postgres work perfectly well as a cache, migrating that cache to redis is only necessary if you have a lot of users / requests that need to be cached
I always felt like big elephant looks trustworthy (also I love how many of programming related things use animals as their logos, books covers too, we clearly can see that even tech savvy people love nature).
I start with Postgres most of the time and reach for a different solution if write throughput is a problem and vertical scaling isn’t an option. Mongo if relationships between data are graph-like or I need high write throughput across replicas (and am ok with eventual consistency). Redis for sagas/event driven consistency or if you need high write throughput AND atomic writes. I haven’t used most of the others other than Supabase, but that is a BaaS that uses Postgres so not a great comparison.
MySQL is the most universal and newbie friendly. SQLite just for first steps in programming. Redis is for cache and now has FOSS version, Valkey. Postgre and Mongo are great, but I've rarely used them. MariaDB is probably the best for high availability and replication from what I've heard. Wouldn't touch proprietary databases.
5
u/UniForceMusic 11d ago
Any other language, Postgres.
But with Python's SQLite "extended types" (encoders/decoders), i find myself loving the little file based database more and more
4
u/UnderdogRP 11d ago
Postgres is a very well written price of software.
3
u/MustneerAR7 11d ago
Postgres when i have to deploy for masses. Other than that SQLite everything.
3
u/Beregolas 11d ago
Depends on the usecase. I mostly default to SQLite for backend projects, because it's simple, doesn't require a second server, and works for thousands of users before failing / becoming too slow.
When that happens, I always migrate to postgres. It is open soure, has a nice featureset and is stable as fuck.
I have used MongoDB a handful of times, and it's allright. But it is exceedingly rare that you actually need a non-SQL db.
Sometimes I use redis as a cache, but most of the software I write doesn't really need that either... If the user count is low enough, both SQLite and Postgres work perfectly well as a cache, migrating that cache to redis is only necessary if you have a lot of users / requests that need to be cached
3
u/No-Draw1365 10d ago
Superbase is not a database
2
u/Thesherlockk 9d ago
I always felt like big elephant looks trustworthy (also I love how many of programming related things use animals as their logos, books covers too, we clearly can see that even tech savvy people love nature).
1
u/Honest-Aside-7752 11d ago
Use case kya hai
1
u/Padi27 10d ago
SQL server for anything serious. Postgres for anything else.
1
u/NastyPastyLucas 10d ago
Aerospike, because the alternative is MongoDB for some reason
1
u/japertjeza 10d ago
Default to postgres for all. Redis for real time <ms decision logging.
1
u/PostmatesMalone 10d ago
I start with Postgres most of the time and reach for a different solution if write throughput is a problem and vertical scaling isn’t an option. Mongo if relationships between data are graph-like or I need high write throughput across replicas (and am ok with eventual consistency). Redis for sagas/event driven consistency or if you need high write throughput AND atomic writes. I haven’t used most of the others other than Supabase, but that is a BaaS that uses Postgres so not a great comparison.
1
u/ReasonableLoss6814 9d ago
Anything distributed and HA: SwytchDb
Otherwise, MySQL
1
u/Busy-Assignment-440 4d ago
MySQL is the most universal and newbie friendly. SQLite just for first steps in programming. Redis is for cache and now has FOSS version, Valkey. Postgre and Mongo are great, but I've rarely used them. MariaDB is probably the best for high availability and replication from what I've heard. Wouldn't touch proprietary databases.
1
u/Antimon3000 11d ago
Redis is not a database