
Answer-first summary for fast verification
Answer: 1. Send all the transactions to Pub/Sub. 2. Use a managed instance group to process them in VMs.
Option C is correct because Pub/Sub is designed to efficiently distribute a large volume of tasks across multiple servers at a low cost, making it ideal for real-time processing of millions of events. Using a managed instance group ensures that the transactions are processed across multiple VMs, providing scalability and cost-effectiveness. Options A and B involve polling mechanisms that introduce latency and complexity, making them unsuitable for real-time processing. Option D, while feasible, is not the most cost-effective solution due to the overhead of constant polling and potential resource wastage. Pub/Sub's real-time data streaming capabilities make it the optimal choice for this scenario.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You are developing a multiplayer online battle arena game that generates millions of events every minute. These events must be processed as transactions in real-time. The computational requirements exceed the capabilities of a single VM. What is the most cost-effective method to distribute these transactions across multiple VMs in real-time?
A
B
C
D