
Almost every app needs the same plumbing before it can do anything useful: sign-in, a database, file uploads, push notifications and a way to find out why it crashed on someone's phone. Building and operating each of those pieces is weeks of backend work before the first real feature ships. Firebase is Google's answer to that problem: a set of managed services that the app talks to directly, so a small team can launch a mobile or web product with very little server code of its own.
This article explains what Firebase is, how its pieces fit together, where it works well, where it starts to hurt, and how it compares with the alternatives.
What is Firebase?
Firebase is an app development platform from Google, usually described as a backend-as-a-service (BaaS). It provides authentication, databases, file storage, serverless functions, hosting, push messaging, crash reporting and analytics as managed services, with client SDKs for iOS, Android, the web, Flutter, Unity and C++.
Firebase began as a startup. James Tamplin and Andrew Lee had built a chat widget called Envolve and noticed that developers were using it to sync application data rather than chat messages. They split that real-time engine into a separate product and announced Firebase on 12 April 2012, with a hosted real-time database that web apps could read and write from JavaScript. Firebase left beta in August 2013, and Google acquired the company in October 2014.
At Google I/O in May 2016, Google expanded Firebase from a database into a unified app platform, adding analytics, crash reporting, remote configuration and messaging. Cloud Firestore, a more structured document database, followed in 2017, and a relational option backed by Cloud SQL for PostgreSQL became generally available in 2025.
How Firebase works
The client talks to the services directly. In a classic architecture the app calls your API, and your API calls the database. With Firebase the app uses the SDK to read and write data, upload files and sign users in without a server in between. That is where most of the speed comes from: there is no API layer to build for ordinary reads and writes.
Security Rules replace the API's checks. Because the client reaches the data directly, access control lives in Firebase Security Rules: declarative rules, evaluated on Google's servers, that decide who can read or write each document or file. Rules are the most important part of a Firebase project to get right, and the part most often left too open.
Cloud Functions handle what cannot run on the client. Logic that needs secrets or trust, such as taking a payment, calling a third-party API or sending an email, runs in Cloud Functions. A function can be triggered by an HTTP request or by an event inside the project, for example a new user signing up or a document being written.
It runs on Google Cloud. Every Firebase project is also a Google Cloud project. Cloud Firestore, Cloud Functions and Cloud Storage are the same products that exist in Google Cloud, so a project can grow into BigQuery, Cloud Run or other services without moving its data.
Key features
- Authentication with email and password, phone numbers, and providers such as Google, Apple and Facebook, plus ready-made sign-in flows.
- Two NoSQL databases: Cloud Firestore, the recommended document database, and the original Realtime Database, a single JSON tree with very low latency.
- Cloud Storage for user-generated files such as photos and videos, protected by the same rules system.
- Cloud Functions for server-side code triggered by events or HTTP requests.
- Hosting for static sites and web apps on a global CDN.
- Cloud Messaging (FCM) for push notifications to iOS, Android and the web.
- Crashlytics, Analytics, Remote Config and A/B Testing to see what breaks, how the app is used, and to change behaviour without shipping a new version.
- Local Emulator Suite for running the databases, functions and rules on a developer's machine.
Where Firebase is used
- MVPs and new products that need sign-in, data and notifications in days rather than weeks.
- Consumer mobile apps, often built with Flutter or React Native, where offline support and live updates matter.
- Real-time features such as chat, presence, live dashboards and collaborative lists.
- Companion apps for existing systems, where Firebase handles the mobile side and syncs with a backend elsewhere.
- Messaging and crash reporting only: many apps with their own backend still use Cloud Messaging and Crashlytics, because those services are hard to replace.
When to choose Firebase, and when not to
Choose Firebase when:
- A small team needs to launch on mobile and web quickly, without building and running a backend first.
- The app benefits from real-time sync and offline support out of the box.
- The data is naturally document-shaped: profiles, posts, messages, settings.
- You are comfortable running on Google Cloud and want room to grow into it.
Look elsewhere when:
- The domain is deeply relational, with many joins, reports and transactions across entities. A relational database such as PostgreSQL behind your own API fits better.
- Data must stay on-premise or in a specific environment that Google Cloud does not cover.
- Read volume will be very high and cost predictability matters. Firestore bills per operation, so a chatty data model becomes an expensive one.
- Avoiding vendor lock-in is a priority. Security Rules, triggers and the client SDKs are Firebase-specific, and moving away later means rewriting a large part of the app.
The common thread in Firebase's downsides is that it moves backend decisions into the client and into Google's services. That is what makes it fast at the start, and what needs discipline as the product grows.
Firebase and its alternatives
| Option | Data model | Where it runs | Best fit |
|---|---|---|---|
| Firebase | NoSQL documents, optional PostgreSQL | Google Cloud, managed | Mobile-first apps, fast launch |
| Supabase | PostgreSQL | Managed or self-hosted, open source | Relational data, SQL, less lock-in |
| AWS Amplify | DynamoDB with a GraphQL API | AWS, managed | Teams already on AWS |
| Appwrite | Built-in database, auth and storage | Self-hosted or managed, open source | Projects that must self-host |
| Custom backend | Any database | Anywhere | Complex domains, full control |
Supabase is the comparison we hear most. It offers a similar developer experience on top of PostgreSQL, so data stays relational and portable. We compare the two in detail in Supabase vs Firebase: choosing a backend for your product.
For products with complex business logic, a custom backend, for example NestJS on Node.js with MongoDB or PostgreSQL, takes longer to start but leaves every decision in your hands. Many teams combine the two: their own API for business data, Firebase for authentication, push notifications and crash reporting.
How we use Firebase at Internative
We use Firebase when a product needs real-time capabilities and has to reach users quickly without carrying much infrastructure. Google runs the backend services, and the team's time goes into product logic rather than servers.
If you are planning a mobile app and want to know whether Firebase or a custom backend is the right base for it, our mobile application development team can help you weigh the trade-offs.
Frequently asked questions
What exactly is Firebase used for?
Firebase is used to give web and mobile apps a backend without building one: user sign-in, a cloud database, file storage, push notifications, crash reporting and analytics. Teams use it most for MVPs, consumer apps and real-time features such as chat or live dashboards.
Is Firebase a database or a backend?
Both, in a sense. Firebase is a backend platform, and two of its services, Cloud Firestore and the Realtime Database, are NoSQL databases. Around them it adds authentication, storage, serverless functions, hosting and messaging.
Is Firebase free?
Firebase has a no-cost plan, called Spark, with usage limits that suit development and small apps. Production apps usually move to the pay-as-you-go Blaze plan, where cost depends on database operations, storage, function calls and traffic. Some features, such as Crashlytics and Cloud Messaging, are free on both plans.
What are the downsides of using Firebase?
The main ones are vendor lock-in, costs that follow read and write volume, limited query capabilities compared with SQL, and security that depends on well-written Security Rules. For complex relational data, a SQL database behind your own API is usually the better choice.
What is the difference between Firebase and Firestore?
Firebase is the whole platform. Cloud Firestore is one product inside it: the document database that stores and syncs the app's data. You can use Firestore with other Firebase services or, through Google Cloud, on its own.
Keep reading
The articles that follow this one.



