Three Fixes for the Slow Requests

Deep Learning in the Real WorldHard+30 XP+30

Three Fixes for the Slow Requests

A photo-tagging endpoint serves 1,000,000 requests a day. Profiling splits them into three kinds and times every stage (all times in ms):

kind of requestshare of trafficnetworkpreprocessingmodelpostprocessing
typical97%40309010
slow connection2.5%500309010
huge upload0.5%408009010

The team tracks the slowest-1% latency: the smallest time TTT such that no more than 1% of requests take longer than TTT.

There is budget for exactly one fix:

  • Plan X: quantize and prune the model so it runs three times faster. The model stage falls from 90 ms to 30 ms, for every request.
  • Plan Y: a faster image decoder. Preprocessing for huge uploads falls from 800 ms to 100 ms.
  • Plan Z: servers closer to users. Network time for slow connections falls from 500 ms to 150 ms.

Which plan leaves the lowest slowest-1% latency, and what is that latency?

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.

Select all that apply.