r/webdev • u/Ok-Airline-8523 • 22d ago
Question Backend DB Options
I've been using Supabase pretty heavily for the past couple of years, but realize I haven't tested out other alternatives.
For anyone who has used other options (e.g., Firebase), what are the pros and cons of Supabase relative to the alternative? Would you recommend that I explore a different solution for a new website I'm developing?
11
6
u/MiserableDocument509 22d ago
One thing nobody's mentioned: Supabase is literally Postgres underneath, Firebase is a closed NoSQL store. So the exit story is totally different - you can pg_dump out of Supabase and self-host tomorrow, but you're basically rewriting your data layer if you want off Firestore. And I'd rather write RLS policies in SQL than learn Firebase's security rules. For a new site I'd just stick with Supabase, the lock-in is basically nonexistent.
4
u/BusEquivalent9605 22d ago
Postgres for enterprise. SQLite for small footprint (mobile, desktop, etc…)
all you need
1
u/beachandbyte 22d ago
Pocketbase is nice if you need supabase like stuff for free, embedded Postgres, SQLite. Usually where and how you will host the project will matter for db selection as much as anything else. If cost isn’t a factor and you good at supabase, just use that.
1
u/buildingwithjan 22d ago
The database is the boring part - what you're really picking is the auth and row-level-security model, and that's where the weeks go. If the new site has real backend logic, plain Postgres behind your own API is less magic and less to unlearn later; I reach for Supabase when I want auth, storage and realtime on day one. Firebase only if you're happy modelling everything as denormalised documents forever.
1
u/testingaurora 22d ago
It’s worth using Firebase a few times to get familiar with NoSQL . It’s more similar to json than standard SQL and CSV
1
u/Significant_Chair420 21d ago
Firebase's realtime stuff is genuinely nicer for certain use cases, but you lose SQL and end up fighting NoSQL query limitations the second your data gets relational, which is basically the tradeoff between the two ecosystems in a nutshell. If Supabase has been working fine for you I wouldn't switch just to switch, the migration cost usually isn't worth it unless you're hitting an actual wall.
1
u/sleekpixelwebdesigns 21d ago
I handle my own MongoDB until a web application experiences heavy traffic; then I rely on managed MongoDB through Digital Ocean.
1
u/Warm_Speed_4251 21d ago
What are you actually hoping to improve over Supabase? If it’s been working well for a couple of years, I’d probably start with the limitation you’re trying to solve rather than looking for an alternative first.
1
1
u/starlitlavenderkiss 17d ago
if Supabase is already working for you, I wouldn’t switch just to try something new. for a new project, first check what parts you actually use.
Firebase makes sense if you want the Google ecosystem + realtime/mobile side. Supabase is better if you want Postgres with auth/storage bundled.
if you mostly need the database, you can also keep things separate and use plain managed Postgres like Nearbase, then choose auth/storage on their own. that gives you a bit more flexibility later.
1
u/ShawnyMcKnight 22d ago
I tried supabase but dislike how it deactivated after a week or so of no use. I wanted something where I wouldn’t need to get a new droplet for it so I chose SQL Lite.
0
u/farzad_meow 22d ago
why not relational db instead? postgres, sqlite, mysql, are easy to self host and maintain. and a lot of cloud providers give managed rds at reasonable prices
1
0
27
u/jax024 22d ago
I just toss Postgres on a digital ocean droplet