NNabeel Hassan

Blog · December 7, 2026 · 8 min read

Firebase vs Supabase vs Your Own Backend for an MVP: How I Decide

By Nabeel Hassan — AI Engineer · ICPC World Finalist

TL;DR: For most MVPs I pick a backend-as-a-service, and the real choice is the shape of your data. If the product is mostly one user's own documents, synced across devices, with offline support and push notifications, Firebase is hard to beat. If the data is relational (users, teams, bookings, invoices, reports that join them), I would rather start on Postgres, either through Supabase or a small Node API on a managed Postgres. I write my own backend from day one only when the product's core is server-side work anyway: long-running jobs, heavy AI pipelines, webhooks from five other systems, or strict data rules a client has to sign off on. Whatever you pick, keep the business logic in a thin layer you own, so moving later is a project and not a rewrite.

Founders ask me this in nearly every discovery call, usually phrased as "should we just use Firebase?" The honest answer is "maybe", and the reasons are more concrete than the forum threads suggest. I have shipped products on Firebase, on AWS, and on Node with MongoDB or PostgreSQL behind it, including my own products like LectureNotes AI and Lifemaxxing AI, the mobile apps and web portal I lead at RAQTS, and the dashboards and automation backends behind client voice agent systems. Even this site is a static Next.js build on Firebase Hosting. Here is how I actually decide.

What a backend has to do for an MVP

Before comparing tools, list the jobs. For a typical early product the backend needs to:

  1. Authenticate users (email, Google, Apple sign-in on iOS).
  2. Store and query data, with rules about who can read and write what.
  3. Store files like audio, images and exports.
  4. Run server-side logic that cannot live on the client: payments, AI calls with secret keys, webhooks, scheduled jobs.
  5. Push changes to clients, through realtime updates or notifications.
  6. Be observable, so you can see errors and costs before users or invoices tell you.

Every option below covers all six. The differences are in how pleasant each job is, what it costs at your expected scale, and how painful it is to leave.

Firebase: fastest when the data is per-user

Firebase gives you auth, Firestore, storage, Cloud Functions, push through FCM, crash reporting and hosting under one console and one SDK. For a mobile-first MVP that combination is genuinely fast. Sign-in with Apple and Google takes an afternoon. Offline sync on mobile comes nearly free. Push notifications, which I wrote about in push notifications for a small app, are already wired into the same project.

Where it shines:

Where it hurts:

Supabase: a BaaS with Postgres underneath

Supabase covers most of the same jobs (auth, database, storage, edge functions, realtime) but the database is plain PostgreSQL. I have shipped far more on Firebase and on hand-rolled Node plus Postgres than on Supabase, so take this section as an engineer's evaluation rather than war stories. The reason I reach for it in discussions is simple: it gives you the speed of a BaaS with a database you could take anywhere.

Where it fits:

What to watch:

Your own backend: Node or .NET on managed Postgres

The third path is a small API you write yourself, usually Node with Express or a similar framework, sometimes .NET, sitting on a managed Postgres or MongoDB on AWS or a similar host. Auth can still be a service (Firebase Auth works perfectly well in front of your own API), and files still go to object storage. You are not building everything, just owning the middle.

I start here when:

The cost is time. A minimal API with auth middleware, validation, migrations, logging, deploys and backups is a few days of setup before the first feature, and it is ongoing maintenance after. For a product that is still guessing at its market, those days are often better spent on the product.

How I decide, in practice

I ask four questions on the first call:

  1. What does the main screen show, and whose data is it? Mostly the user's own stuff points to Firebase. Mostly shared, joined, reported data points to Postgres.
  2. Is it mobile-first with weak connectivity? Then Firestore's offline sync is worth a lot.
  3. What happens on the server that the user never sees? If the answer is "a lot", start with your own service, or plan to add one next to the BaaS early.
  4. Who has to approve where data lives? If it is a regulated client, decide hosting and region before you write code.

Two examples from real work. LectureNotes AI is a student app built around a user's own recordings, transcripts and notes, which is close to the textbook per-user case, and the hard parts were the audio and AI pipeline rather than the data model. RAQTS is the opposite: players, facilities, sessions and leaderboards that every client (Unity, React Native and the web portal) reads differently, which is relational by nature. The right answer for one would have been the wrong answer for the other.

Keep the exit door open

You will probably not migrate. But if you grow, you might, and the cost of that day is set by decisions in week one:

Cost at MVP scale, honestly

At MVP scale every one of these is cheap. Free tiers cover early users, and the bill only matters once real usage arrives. What changes is the shape of the bill. Firebase grows with reads, writes and function calls, so a chatty screen can surprise you. Postgres-based options grow with instance size, which is predictable until you need a bigger box. Your own servers add a fixed monthly floor plus your time. In my experience the AI and telephony costs on most products I build dwarf the database bill anyway, so pick the backend for speed and fit, then set a billing alert on day one so nothing scales silently. If a launch might spike, the checks in preparing for a traffic spike apply to every option.

Quick checklist

  1. Write down the main entities and whether they are per-user or shared.
  2. Decide if offline-first mobile is a real requirement.
  3. List the server-side jobs: payments, AI calls, webhooks, schedules.
  4. Pick Firebase for per-user mobile data, Postgres (Supabase or your own API) for relational data, your own service when the core is server work.
  5. Put a thin data layer between screens and the backend.
  6. Keep business logic in server code, not only in rules.
  7. Turn on backups, exports and a billing alert before the first real user.

None of these choices will make or break the product on its own. Spending three weeks building infrastructure before anyone has used the app might, which is the same lesson as what to cut from an MVP.


I build MVPs, mobile apps, AI products and voice agent systems for founders and agencies in the US, UK and Europe, and I pick the backend to match the product rather than habit. If you are deciding how to build yours, read more about my background or book a call.

FAQ

Should I use Firebase or Supabase for my MVP?

Decide by the shape of your data. If users mostly read and write their own documents and the app is mobile-first with offline needs, Firebase is usually faster to ship. If your data is relational, with teams, bookings, invoices and reports that join them, Supabase or another Postgres-based setup will age better.

When should a startup build its own backend instead of using a BaaS?

When the core of the product is server-side work: webhooks from several systems, long-running jobs, heavy AI pipelines with retries and cost tracking, multi-tenant isolation, or clients with strict rules about where data lives. Otherwise a backend-as-a-service saves weeks you are better off spending on the product.

How do I avoid Firebase lock-in?

Wrap all backend calls in your own data module so screens never call Firestore directly, keep business rules in server code rather than only in security rules, use IDs you control, and export data regularly in a readable format. Migration stays possible without rewriting the app.

Is Firebase expensive at scale?

It can be for read-heavy apps, because Firestore bills per document read and write. At MVP scale it is cheap, and for AI or voice products the model and telephony costs usually dwarf the database. Set a billing alert on day one and watch the screens that load many documents.

Building something in this space?

I take on AI-agent, automation and product work directly — scoped fast, shipped fast.

Book a discovery call →

Keep reading