Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Reliable Endpoint File Transfer Service

Design a resumable, integrity-checked service that delivers large source objects to approved HTTPS destinations.

Problem statement

For this exercise, assume an authenticated client registers an immutable source object and an approved HTTPS destination, starts one logical file transfer, and polls a durable status that ends as completed, failed, or cancelled. Files may be as large as 1 TB.

The service divides a file into numbered checksum-protected chunks, resumes from destination-acknowledged chunks, and uses one client transfer key to return the original logical outcome across retries.

Completion requires the destination to acknowledge the final ordered manifest and end-to-end checksum; a timeout or duplicate request must not silently create a second delivery outcome.

Design the control and byte-plane APIs, durable transfer state, chunk scheduling, destination protocol, bandwidth allocation, backpressure, retries, integrity verification, security boundary, completion authority, failure recovery, and observability.

File editing, media transcoding, content search, permanent source-file hosting, and arbitrary destination-side business processing are outside scope.

What to build

  1. An authenticated client can idempotently create one transfer bound to an immutable source object, approved destination, and expected checksum.
  2. The service delivers numbered verified chunks with bounded concurrency and resumes from durable destination acknowledgements after interruption.
  3. A client can inspect progress and receive one authoritative completed, failed, or cancelled outcome with integrity evidence.
  4. An authorized client can pause, resume, or cancel an active transfer without allowing stale workers to continue or publish completion.

At scale

  • For this exercise, assume source files may be as large as 1 TB and are immutable for the lifetime of a transfer.
  • For this exercise, assume 5,000 transfers may be active concurrently with aggregate peak egress of 100 GB per second.
  • For this exercise, target 99.99 percent availability for acknowledged transfer metadata and bounded fair progress under mixed file sizes.
  • For this exercise, loss of a coordinator process or one availability zone must not lose durable chunk acknowledgements or create a competing completion authority.