A serverless realtime database for fast app development.
Firestore is a serverless realtime database from Google's Firebase ecosystem. It keeps data automatically in sync across all connected devices, so changes arrive everywhere at once. Through listeners you get updates pushed rather than having to poll, and an offline mode buffers writes until the next connection. That makes it possible to build an app quickly, with no need to run a server of your own.
More in the documentationWe reach for Firestore when your app needs live data, such as shared state, chats or collaborative views, and you want to take auth and hosting from the Firebase toolkit at the same time. You spare yourself the sync logic and get realtime almost for free.
import { onSnapshot, collection } from "firebase/firestore";
onSnapshot(collection(db, "messages"), (snap) => {
snap.docChanges().forEach((change) => {
console.log(change.type, change.doc.data());
});
});Good to know
Firestore bills by documents read, written and deleted, not by storage. A list that loads a hundred documents on every visit adds up fast, so you are better off modelling towards a few targeted reads.
More tools we work with in the same area.
PostgreSQL
Our first choice for relational data, powerful and reliable.
MySQL & MariaDB
Proven relational databases for classic applications.
MS SQL Server
For enterprise environments and Microsoft integrations.
MongoDB
A flexible document database for unstructured or growing data.
Supabase
Postgres with auth, storage and realtime as a backend-as-a-service.
Redis
An ultra-fast key-value store for caching and realtime features.
You don't have to decide that, it's our job. Tell us about your plans.