byteNative
Databases

Firestore

A serverless realtime database for fast app development.

What is Firestore?

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 documentation

How we use it

We 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.

ts
import { onSnapshot, collection } from "firebase/firestore";

onSnapshot(collection(db, "messages"), (snap) => {
  snap.docChanges().forEach((change) => {
    console.log(change.type, change.doc.data());
  });
});
Listen to a collection in realtime

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.

00Databases

More tools we work with in the same area.

Which technology fits you?

You don't have to decide that, it's our job. Tell us about your plans.