Your trading platform ingests about 5 million JSON trade events per second from globally distributed exchanges. Events are append-only and must be retrieved within a few milliseconds by a risk-evaluation service that scans all trades from the most recent hour using the event timestamp. Data should be kept for 30 days and then bulk-exported to BigQuery for historical analytics. Which Google Cloud storage service best fits the raw event store, given these ingestion, low-latency, and range-scan requirements?
Store the events in Cloud Bigtable using a row key that starts with an inverted timestamp followed by the trade ID.
Store each event as a document in Firestore (Native mode) keyed by trade ID, and query recent trades with composite indexes.
Stream each event into a partitioned BigQuery table and let the risk-evaluation service query the latest partition.
Batch events into hourly JSON files in a Cloud Storage Nearline bucket and have the service read the most recent file.
Cloud Bigtable is engineered for very high write throughput and single-digit millisecond read latency at petabyte scale. Designing the row key with a reversed timestamp (optionally combined with a unique suffix such as trade ID) supports time-ordered range scans that the risk-evaluation service needs. Bigtable can easily handle millions of mutations per second and integrates with Dataflow or Data Dataproc for periodic exports to BigQuery. Firestore can provide millisecond reads but its write throughput per collection and query patterns do not scale to millions of events per second, and range scans over large time windows quickly become inefficient. BigQuery excels at analytics but its query latency (seconds) and streaming cost model are unsuitable for sub-millisecond operational access. Cloud Storage provides durable object storage, yet retrieving individual events with millisecond latency or performing range scans over numerous small objects is not practical.
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 Bigtable more suitable for this scenario compared to Firestore?
Open an interactive chat with Bash
What is the significance of using an inverted timestamp in the row key for Cloud Bigtable?
Open an interactive chat with Bash
How does Cloud Bigtable handle integration with BigQuery for long-term analytics?
Open an interactive chat with Bash
Why does Cloud Bigtable use an inverted timestamp in the row key?
Open an interactive chat with Bash
How does Cloud Bigtable achieve low-latency reads and high write throughput?
Open an interactive chat with Bash
Why is Firestore not suitable for this use case despite offering millisecond reads?
Open an interactive chat with Bash
Why is Cloud Bigtable suited for high write throughput and low-latency read operations?
Open an interactive chat with Bash
What is the purpose of using an inverted timestamp in the row key for Cloud Bigtable?
Open an interactive chat with Bash
How does Cloud Bigtable integrate with BigQuery for historical analytics?
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 .