Your ride-sharing platform ingests tens of thousands of 2-KB JSON session documents per second from mobile apps worldwide. Each driver or rider must be able to read and update their own session document in under 20 ms, and the document schema may evolve frequently. You also need automatic cross-region replication for high availability and real-time change notifications to connected clients, without having to manage database servers yourself. Which Google Cloud storage service and deployment option best fit these requirements?
Load sessions into partitioned BigQuery tables with a JSON column and query them on demand using SQL.
Use Cloud Firestore in Native mode deployed in a multi-region location, storing each session as a document keyed by user ID.
Create a Cloud Spanner table with a JSON column for each session and use the REST API for reads and writes.
Store sessions as JSON objects in a regional Cloud Storage Standard bucket and expose them through Cloud Functions.
A Cloud Firestore database created in a multi-region location is a serverless NoSQL document store that natively stores flexible JSON documents, scales horizontally to very high write rates, and supports single-document reads and writes that are typically under 10 ms. When you select a multi-region location (for example, nam5 or eur3), Firestore automatically replicates data across at least two geographically separate regions, providing high availability and durability. Firestore's client SDKs include real-time listeners that push document changes to mobile and web clients without additional infrastructure.
Cloud Storage objects have higher per-object latency and lack per-document updates and built-in real-time notifications. BigQuery is optimized for analytical queries and incurs seconds of startup latency, making it unsuitable for millisecond point reads. Cloud Spanner can store JSON but is primarily a relational database; it requires schema management and does not provide Firestore-style real-time synchronization libraries for mobile/web clients.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
Why is Cloud Firestore in Native mode ideal for this scenario?
Open an interactive chat with Bash
How does multi-region deployment enhance Cloud Firestore availability?
Open an interactive chat with Bash
What are real-time listeners in Cloud Firestore and how do they work?
Open an interactive chat with Bash
GCP Professional Data Engineer
Storing the data
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .