Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

How to NOT get a 30K Firebase Bill

212.6K views
•
August 6, 2018
by
Fireship
YouTube video player
How to NOT get a 30K Firebase Bill

TL;DR

Startup faced $30k bill due to incorrect Firestore query setup, reduced to $25 by optimizing client and server-side code.

Transcript

imagine if you woke up one day and you're fired based bill went from zero to thirty thousand US dollars well that's exactly what happened to a start-up in Colombia that scaled up to about two million daily active users they really just made one seemingly minor mistake and with this video I want to show you how we can take their thirty thousand doll... Read More

Key Insights

  • 🫠 Efficient optimization of client-side code using RxJS can significantly reduce document reads in Firestore.
  • 🛟 Utilizing Firebase Cloud Functions for server-side processing can help in managing data efficiently and reducing billing costs.
  • 😫 Setting up billing alerts on Google Cloud Platform for Firebase projects is essential to monitor and detect billing spikes early.
  • 🫠 Optimizing reads versus writes balance in Firestore can lead to significant cost savings.
  • 🫠 Proper aggregation of data can reduce document reads and improve UI performance.
  • 😒 The use of Firebase Cloud Functions in conjunction with Firestore can streamline data processing.
  • 🆘 Anticipating pricing scenarios in Firestore can help in planning and optimizing costs effectively.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: How did a startup end up with a $30k Firebase bill?

The startup made a mistake by calculating the total for every crowdfunding campaign by reading every single document in a collection for every user on the site, resulting in a massive number of document reads.

Q: What is the key takeaway for Firebase billing optimization?

Setting up a billing alert on Google Cloud Platform for a Firebase project can help detect billing spikes early, but optimizing the code is crucial to reduce costs significantly.

Q: What client-side optimization technique was used to reduce document reads?

By using RxJS to share a single observable for calculating the total and average amounts, document reads were reduced from 300 to 100, making the code more efficient.

Q: How did server-side optimization help in reducing costs?

By using Firebase Cloud Functions to update an aggregated document with essential information, only one document read was required instead of multiple reads, drastically lowering the bill.

Summary & Key Takeaways

  • Startup faced $30k bill due to inefficient Firestore query setup.

  • Mistake: Calculating total for every crowdfunding campaign by reading every document.

  • Solution: Optimize client-side code using RxJS & server-side using Firebase Cloud Functions to reduce bill to $25.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from Fireship 📚

How to Build a RESTful API with Node.js Express thumbnail
How to Build a RESTful API with Node.js Express
Fireship
Build a Chatbot from Scratch - Dialogflow on Node.js thumbnail
Build a Chatbot from Scratch - Dialogflow on Node.js
Fireship
How to Build a Video Editing Tool with React and WebAssembly thumbnail
How to Build a Video Editing Tool with React and WebAssembly
Fireship
Vim in 100 Seconds thumbnail
Vim in 100 Seconds
Fireship
100+ Computer Science Concepts Explained thumbnail
100+ Computer Science Concepts Explained
Fireship
When being over-employed goes wrong... thumbnail
When being over-employed goes wrong...
Fireship

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.