firebase / firestore-bundle-builder

14 stars 6 forks source link

Firestore Bundle Builder

Author: Firebase (https://firebase.google.com)

Description: Caches publicly available documents in Cloud Firestore data bundles that are served from either Firebase Hosting CDN or from Firebase storage

Details: Firestore data bundles can make certain types of Firestore applications much faster and/or less expensive. Data bundles are serialized groups of documents -- either individual documents, or a number of documents that you've retrieved using a specific query.

Bundles are useful when you want to cache publicly available documents that are read by all users of your app. Some common use cases include:

Kara’s Coffee, an online coffee shop built with Firebase Extensions, uses a Firestore bundle to cache its catalog of coffee offerings.

This extension simplifies the process of adding Cloud Firestore data bundles to your application. Once this extension is configured, you can generate bundles on demand via HTTP requests.

The extension serves these data bundles from either Firebase Hosting CDN (preferred) or from Firebase storage. You can load these bundles from your app and interact with the bundle data just like other data loaded from Firestore.

With bundles, you avoid making extra calls against the Firestore database. If your application has a substantial number of users, this can lead to cost savings and improved querying speeds.

Learn more about how this extension works and how to integrate it into your application by reading the official Firebase documentation for this extension.

Pre-Requisites

Before installing this extension, you'll need to set up these services in your Firebase project:

Billing

To install an extension, your project must be on the Blaze (pay as you go) plan

Configuration Parameters:

Cloud Functions:

Access Required:

This extension will operate with the following project IAM roles: