QuestionQ50

VerifiedDesigning scalable, available, and reliable cloud-native applications

You manage an ecommerce application that processes customer purchases, which customers can later cancel or modify. You find that order volumes vary greatly and that the backend order-processing system can handle only one request at a time. You want to provide seamless customer performance regardless of usage volume. Customer order-update requests must be processed in the order in which they were created. What should you do?

Explanation

A Pub/Sub pull subscriber decouples incoming customer traffic from the single-request backend and lets that backend control the rate at which it receives work. Pub/Sub pull subscriptions provide subscriber-controlled flow control, and ordered processing requires tracking the related order state so updates can be applied sequentially. This accommodates traffic spikes without sending concurrent requests to the backend.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!