QuestionQ62

Building and testing applications

You have an application running in App Engine that is instrumented with Stackdriver Trace. The /product-details request returns details about four known, unique products at /sku-details, as shown below. You want to decrease the time required for the request to finish.

What should you do?

Question Image

  • A Increase the size of the instance class.
  • B Change the Persistent Disk type to SSD.
  • C Change /product-details to perform the requests in parallel.
  • D Store the /sku-details information in a database, and replace the webservice call with a database query.
Explanation

The four independent /sku-details web-service calls are on the request’s sequential latency path, so their durations accumulate. Performing those calls in parallel overlaps their network and service-processing time, reducing overall /product-details latency to approximately the longest individual call plus overhead. App Engine supports concurrent request handling.

Learn more

Community Discussion

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