Skip to content
IT glossary
BackendUpdated December 3, 2026

Firebase

Google’s Firebase platform provides ready-made services for web and mobile apps. Developers can add features such as sign-in, data storage, and push notifications without building a separate backend for each one.

What Firebase is

Firebase is a collection of managed services from Google, not a database or a single backend framework. Its backend-as-a-service (BaaS) model lets a team use features such as sign-in and data storage without running the underlying servers. Adoption is modular: an app can use Firebase Authentication and still send its business requests to a custom API backed by PostgreSQL.

How the pieces fit together

A team creates a Firebase project, registers its web or mobile app, and adds the client SDKs for the services it needs. After a user signs in, Firebase Authentication issues an ID token that supported services can use to identify the caller. Cloud Firestore stores data as documents in collections and supports listeners that notify the client when query results change. Realtime Database also supports live updates, but it is a separate product that stores data as a JSON tree.

Cloud Storage for Firebase holds files such as images, and Firebase Cloud Messaging (FCM) delivers messages such as push notifications. For trusted operations, such as sending notifications with server credentials, teams can run code in Cloud Functions for Firebase or on a separate backend. Functions can respond to HTTP requests or to events such as a new Firestore document.

Example: a synced reading list

Suppose a reader saves an article in a mobile app. The client writes a Firestore document under users/{uid}/savedArticles. If the reader has the web app open, its listener on the same collection receives the update without a page refresh. Firestore Security Rules can require a signed-in user whose ID matches {uid} in the path, preventing other accounts from reading or modifying that list. A hidden UI control is not a substitute for that check: the rule is enforced by the service, not by the screen.

When it fits and what to watch for

Firebase is useful when a product needs common backend features and the team would rather not build and operate them from scratch. Start with the queries the app actually needs. Firestore does not offer SQL-style joins, so data that is easy to query in a relational database may need to be duplicated in Firestore. Also account for read volume: a live listener can incur reads when it first loads matching documents and as those documents are updated. A narrowly scoped query and a listener that stops when the screen closes are better defaults than subscribing to an entire large collection.

How it comes up in interviews

A common design question is which operations you would let a client perform directly. For a private reading list, direct access is reasonable if Security Rules enforce ownership and validate writes. An operation that needs a secret, such as calling a payment provider, belongs on a trusted backend. Mention that Firestore access through the server-side Admin SDK uses IAM rather than client Security Rules. If the server acts on behalf of a user, it must enforce that user's permissions itself.