QuestionQ92

Designing scalable, available, and reliable cloud-native applications

You are a developer working for a local concert venue. Customers use your company’s website to buy tickets for events. You need to give customers immediate confirmation when their selected seat has been reserved. How should you design the ticket-ordering process?

  • A Upload the seat reservation to a Cloud Storage bucket, which triggers an event to the backend service that processes the seat reservation.
  • B Submit the seat reservation in an HTTP POST request to an Application Load Balancer. Configure the Application Load Balancer to distribute the request to the backend service that processes the seat reservation.
  • C Add the seat reservation to a Cloud Tasks queue, which triggers Workflows to process the seat reservation.
  • D Publish the seat reservation to a Pub/Sub topic. Configure the backend service to subscribe to the topic to process the seat reservation.
Explanation

An HTTP POST through an Application Load Balancer routes the customer request to a backend service and keeps the HTTP request-response interaction available for that service to return the completed reservation result. Application Load Balancers distribute HTTP(S) traffic to backends, whereas Cloud Tasks and Pub/Sub are designed for asynchronous processing.

Learn more

Community Discussion

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