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:
- Authenticate users (email, Google, Apple sign-in on iOS).
- Store and query data, with rules about who can read and write what.
- Store files like audio, images and exports.
- Run server-side logic that cannot live on the client: payments, AI calls with secret keys, webhooks, scheduled jobs.
- Push changes to clients, through realtime updates or notifications.
- 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:
- Per-user documents. A user's notes, plans, recordings, settings. Each user mostly reads and writes their own data, which maps cleanly onto Firestore's document model and its security rules.
- Mobile apps with flaky connections, where local caching and sync matter more than complex queries.
- Small teams without a backend developer, because there is no server to patch.
Where it hurts:
- Relational questions. "Show every facility's bookings this month with the player's name and the coach who confirmed it" is one SQL query and several Firestore reads plus some denormalized copies you now have to keep in sync. Firestore is fine for this at small scale. It gets awkward as reporting needs grow, and admin dashboards always grow.
- Pricing per read. Firestore bills by document reads and writes. A screen that lists 200 items, opened often, by a lot of users, adds up in a way that a fixed-price database does not. I cover the general version of this in AI app unit economics, and it applies to plain reads too.
- Security rules as business logic. Rules are powerful, but once they encode pricing tiers and team permissions they become a second codebase that is hard to test. Move that logic into functions early.
- Leaving. Your data model, rules, triggers and client SDK calls are all Firebase-shaped. Exporting data is easy. Porting the app is not.
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:
- Relational data from day one. Bookings, teams, invoices, CRM-like records. Joins, constraints and foreign keys catch bugs that a document store will quietly let through.
- Reporting and admin views, because SQL is already the language of dashboards and analytics tools.
- A clean exit. Postgres dumps restore into any managed Postgres. Your schema and queries move with you.
What to watch:
- Row level security is still rules-as-logic. Postgres row level security is the equivalent of Firestore rules. It is excellent for "a user can only see their own rows" and gets hard to reason about when it carries complex business rules. Same advice: keep the clever logic in server code.
- Mobile offline support is not the built-in story it is with Firestore. If offline-first is central, budget for it.
- Schema changes are now your job. That is a good thing, but it means migrations, reviews and the habits in changing a database schema on a live app from the start.
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 core product is server work. A voice agent system is a good example. The interesting parts are webhooks from Retell, post-call processing, CRM updates in GoHighLevel, retries and alerts. Firestore triggers can do some of that, but a real service with queues and logs is easier to run. The dashboards I built for voice agent clients lean this way for that reason.
- AI calls are central and expensive. Timeouts, retries, fallbacks, caching and per-user cost tracking, the patterns in calling LLM APIs in production, belong in a server you control, not in a 60 second function with a cold start.
- A client has strict data rules, like healthcare or enterprise buyers who want to know exactly which region, which account and which people can touch the data.
- Multiple tenants share one system, where isolation matters as much as features. I wrote about that in multi-tenant client portals.
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:
- 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.
- Is it mobile-first with weak connectivity? Then Firestore's offline sync is worth a lot.
- 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.
- 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:
- Wrap the backend in your own module. Screens call
notes.list(), not Firestore directly. Swapping the implementation later touches one folder instead of every screen. - Put business rules in server code, in functions or your API, not only in security rules or client code. Rules guard access; code decides what happens.
- Use stable IDs you control, not ones that only make sense inside one provider.
- Export regularly into a format you can read without the provider's console, which you should be doing anyway for backups and disaster recovery.
- Keep auth portable where you can. Email and social sign-in move between providers more easily than custom flows.
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
- Write down the main entities and whether they are per-user or shared.
- Decide if offline-first mobile is a real requirement.
- List the server-side jobs: payments, AI calls, webhooks, schedules.
- 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.
- Put a thin data layer between screens and the backend.
- Keep business logic in server code, not only in rules.
- 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.