“How would you let a workspace admin export thousands of shared documents without keeping the browser waiting?”
Ask who can export, how large the workspace can get and whether the archive needs to represent a specific point in time. A synchronous download is simple for a small archive. For a large workspace, return a job ID, put the work on a queue and let the client check progress.
A worker can read the permitted document versions and build the archive in object storage. The status endpoint can return a short-lived download link once the archive is complete and the caller is still authorized. If the product promises a snapshot, explain how you’d record the document versions the worker should read.
Give Hiintly one changed constraint at a time, such as a permission revocation halfway through the export. Ask it to point out where your design would need to respond. The system design interview guide has a separate exercise for practicing read and write paths.
A client retries the request
A timeout can happen after the service accepted the export. Scope an idempotency key to the caller and request so a retry can return the same job ID. For a worker retry, publish a finished file once and keep incomplete output unavailable.
Access changes while the export runs
Authorize job creation and check access again when reading documents. If permissions invalidate the archive, fail the job and discard the file. A link already issued may work until it expires. If revocation must take effect immediately, serve the download through an endpoint that checks current access.
A large workspace fills the queue
Limit concurrency per workspace so one customer can’t monopolize the workers. Watch the age of the oldest waiting job alongside completion times and failures. That helps you tell a backlog from a single unusually slow export.