System Design · Perplexity · Medium
Design a service for executing queries that may run for a long time. First, define the query model: what a query computes, the range of execution times, how large the result can be, and what the client needs while waiting. Then propose an end-to-end architecture that accepts submitted work, runs it, exposes progress or status, and lets clients retrieve finished results. Describe what happens when a client disconnects before completion, and when an execution attempt fails.…
Checking your access…