Skip to content
Glossary

What Is Firebase?

Firebase is Google's Backend-as-a-Service platform — providing a real-time NoSQL database (Firestore), authentication, cloud storage, hosting, and serverless functions from one platform.

Firebase is Google's Backend-as-a-Service (BaaS) platform: it gives an app a real-time NoSQL database (Firestore), authentication, file storage, hosting, and serverless functions without you provisioning or maintaining any servers. You wire client SDKs straight into managed Google infrastructure and ship.

What Firebase actually gives you

Firebase replaces the backend you'd otherwise build, deploy, and babysit. The pieces you reach for most:

  • Firestore — real-time NoSQL document database. Clients subscribe to a query and get live updates pushed over a socket the moment data changes.
  • Firebase Authentication — email/password, phone OTP, and OAuth providers (Google, Apple, GitHub) with a hosted token system, so you don't store passwords yourself.
  • Cloud Functions — Node.js (or Python) serverless functions triggered by HTTP requests, Firestore writes, auth events, or schedules.
  • Cloud Storage — file and media uploads (images, video, PDFs) backed by Google Cloud Storage.
  • Firebase Hosting — static and dynamic web hosting on a global CDN with free TLS.
  • Cloud Messaging (FCM) — push notifications to iOS, Android, and web.

There's also the older Realtime Database (a single JSON tree). For new projects, Firestore is the default choice — better querying and scaling.

How the real-time model works

The defining trait is the live subscription. Instead of polling an API, the client opens a listener on a document or query; Firestore streams every change to all subscribed clients within milliseconds. That's why Firebase fits chat, live dashboards, collaborative editing, and booking apps where two people must see the same state instantly. In a booking SaaS like BookBed (Flutter + Firebase + Stripe), a new reservation appears on the owner's screen the moment a guest books — no refresh, no manual sync.

When to use Firebase vs not

Firebase is strongest for mobile-first apps, real-time features, and getting an MVP live fast with a small team. It's a weaker fit when your data is deeply relational, you need complex multi-table joins or strict SQL transactions, or compliance demands a database you can query and audit with standard SQL.

FirebaseSupabase
DatabaseNoSQL documents (Firestore)Postgres (SQL)
Real-timeBuilt-in, first-classBuilt-in (Postgres replication)
Best fitMobile-first, real-time, fast MVPRelational data, complex joins, SQL-heavy SaaS
Access controlSecurity RulesRow Level Security (RLS)

Rule of thumb: simple data model and live updates point to Firebase; relational data and SQL reporting point to Supabase. Both are legitimate — Pizzeria Bestek runs on React + Supabase, while BookBed runs on Firebase, because their data shapes differ.

Security Rules: the part people get wrong

Firestore Security Rules are Firebase's equivalent of Postgres RLS — they decide who can read and write which documents, enforced server-side. Firebase ships with no protection by default, so a misconfigured (or never-written) rule is the most common way apps leak every user's data. Write and test rules before production:

// Allow users to read and write only their own document
match /users/{userId} {
  allow read, write: if request.auth.uid == userId;
}

Never trust the client. Anyone can read your config and call Firestore directly, so rules — not your app code — are the real boundary.

Pricing

The Spark plan is free and generous enough for MVPs and side projects. The Blaze plan is pay-as-you-go: Firestore reads, writes, deletes, storage, and network egress are each billed per operation, so a chatty app or a runaway loop can surprise you. Set a budget alert before going to production. For an actual project estimate, contact for a quote.

Key takeaways

  • What it is: Google's managed backend (database, auth, functions, storage, hosting) — no servers to run.
  • When to reach for it: mobile-first or real-time apps, and fast MVPs where shipping speed matters.
  • Biggest pitfall: shipping without Security Rules. Lock down access before launch.
  • The trade-off: NoSQL speed and simplicity now, versus the relational power and SQL tooling you'd get from Postgres/Supabase.
Continue reading

Want this built?