You must assign GUIDs via an external HTTP service called from microservices at tens of thousands of messages/second and are concerned about backpressure. How should you design the pipeline to minimize backpressure?
Choose an answer
Tap an option to check your answer.
Correct answer: Batch the job into ten-second increments..
Why this is the answer
Batching the job into ten-second increments is the most effective way to minimize backpressure when calling an external HTTP service at high throughput. This approach aggregates multiple requests into a single call, significantly reducing the number of individual HTTP requests to the external service. This lessens the load on the service and the network, preventing it from becoming a bottleneck and causing backpressure in your microservices. Calling out to the service via HTTP directly for each message would exacerbate backpressure due to the overhead of establishing and tearing down connections for tens of thousands of individual requests. Creating the pipeline statically or creating a new object in the startBundle method of the DoFn are related to pipeline construction and object instantiation, respectively, and do not directly address the backpressure issue caused by high-frequency external service calls.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed