Your SaaS platform ingests status events from 500 000 customer-deployed sensors every few seconds. Today the only requirement is near-real-time dashboards in BigQuery, but product teams expect to add fraud-detection microservices and a mobile alerting system later this year. You must design an ingestion architecture that meets current needs while allowing additional downstream consumers to process the same events without any changes to the sensor firmware. Which approach best satisfies these goals?
Publish every sensor event to a Cloud Pub/Sub topic; run a streaming Dataflow pipeline that subscribes and writes to BigQuery, and let future services create additional subscriptions to the same topic.
Have each sensor call the BigQuery streaming insert API; dashboards query BigQuery and future services read the data through BigQuery views.
Write events into a regional Cloud Spanner database and use change streams to replicate data into BigQuery; future services query the Spanner instance directly.
Upload batched JSON files from sensors to Cloud Storage using signed URLs; trigger Cloud Functions to load the files into BigQuery, and let future services read the files directly from the bucket.
Publishing events to a Cloud Pub/Sub topic creates a durable, horizontally scalable buffer that cleanly decouples producers from consumers. A streaming Dataflow job can subscribe to the topic and write to BigQuery for the existing dashboards, while future services merely create new subscriptions to the same topic and receive identical messages without impacting the sensors. Streaming directly to BigQuery couples every sensor to a single analytics system and forces future services to query BigQuery rather than consume raw events. Relying on Cloud Storage objects plus Cloud Functions introduces higher latency and file-oriented semantics that are harder to scale for per-message processing. Using Cloud Spanner and change streams adds cost and operational complexity, and it still requires each sensor to target a different endpoint than future services might need.
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.
How does Cloud Pub/Sub ensure durability and scalability?
Open an interactive chat with Bash
Why is a streaming Dataflow job suitable for processing Pub/Sub events?
Open an interactive chat with Bash
What makes Pub/Sub better than direct BigQuery streaming inserts for this use case?
Open an interactive chat with Bash
What is Cloud Pub/Sub, and why is it suitable for this architecture?
Open an interactive chat with Bash
How does a streaming Dataflow pipeline work with Pub/Sub and BigQuery?
Open an interactive chat with Bash
Why is streaming directly to BigQuery not ideal for this use case?
Open an interactive chat with Bash
GCP Professional Data Engineer
Designing data processing systems
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 .