Menu

1 / 3

Google AI Classroom Part 11: Firestore Cost Forensics — Write Amplification, Static-URL Broadcast & a 73 Writes/Sec Zombie Tab

DEV Community: firebase·Cyrus Wong·10 days ago
#z7eHK0e0
#devtofirebase#devto#dev#writes#firestore
Long article (2523 words) — no AI summary yet.
Reading 0:00
15s threshold

1. When Production Telemetry Challenges Your Architecture Assumptions

In Part 10 , we focused on AI token FinOps and Cloud Storage lifecycle automation . Yet when we audited our weekly Wednesday lab billing on our live Hong Kong production project ( it114115-2627 ), Cloud Firestore operations—not Gemini tokens—were dominating daily database spend during 40+ seat studio sessions.

Using Google Cloud Monitoring ( firestore.googleapis.com/document/read_ops_count and write_ops_count ) , Cloud Run function invocation metrics , and live Firestore REST API forensics , we uncovered three distinct cost multipliers—each invisible in local emulators or single-user tests:

Root-Document Write Amplification ( onClassUpdate Cascade) : Every student screenshot upload ( ~26,800 uploads per afternoon) incremented storageUsage directly on classes/{classId} , waking up 50+ student onSnapshot listeners AND firing onClassUpdate thousands of times unnecessarily.

Base64 Slide Streaming & Listener Multiplication : Legacy screen…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.