What Is Firebase?
Firebase is Google's Backend-as-a-Service platform — providing a real-time NoSQL database (Firestore), authentication, file storage, hosting, and serverless Cloud Functions.
Firebase gives developers a managed backend without writing server code. Built into Google Cloud, it's particularly strong for mobile apps and real-time consumer experiences.
Core Firebase products:
- Firestore — real-time NoSQL document database; data is organized as collections of documents
- Firebase Auth — email/password, OAuth, phone number, anonymous auth
- Cloud Functions — Node.js serverless functions triggered by Firestore events, HTTP requests, or schedules
- Firebase Storage — file uploads backed by Google Cloud Storage
- Firebase Hosting — fast static and dynamic hosting with CDN
Firebase vs Supabase:
| Firebase | Supabase | |
|---|---|---|
| Database | NoSQL (Firestore) | SQL (Postgres) |
| Queries | Document-based | Full SQL |
| Multi-tenancy | Security Rules | Row-Level Security |
| Open-source | No | Yes |
| Vendor | Independent |
When Firebase wins: Mobile-first apps with simple document structures, real-time consumer apps, teams already in the Google ecosystem. Firebase's offline persistence and mobile SDKs are mature.
Firebase pricing gotcha: Firestore charges per document read, write, and delete. A poorly optimized query that reads 100,000 documents costs money even if you never display the data. Always set budget alerts and monitor query efficiency before scaling traffic.