How can you adjust your application design?

You need to store and analyze social media postings in Google BigQuery at a rate of 10,000 messages per minute in near real-time. Initially, design the application to use streaming inserts for individual postings. Your application also performs data aggregations right after the streaming inserts. You discover that the queries after streaming inserts do not exhibit strong consistency, and reports from the queries might miss in-flight data.

How can you adjust your application design?
A . Re-write the application to load accumulated data every 2 minutes.
B . Convert the streaming insert code to batch load for individual messages.
C . Load the original message to Google Cloud SQL, and export the table every hour to BigQuery via streaming inserts.
D . Estimate the average latency for data availability after streaming inserts, and always run queries after waiting twice as long.

Answer: D

Explanation:

The data is first comes to buffer and then written to Storage. If we are running queries in buffer we will face above mentioned issues. If we wait for the bigquery to write the data to storage then we won’t face the issue. So We need to wait till it’s written tio storage

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments