KatInterview

Shipping Multi-GB Model Artifacts to a Large Edge Fleet

System DesignModel answer
MediumModel answerSystem Designdistributed-systemscontent-addressable-storagerollouts

Last updated

Design a secure, resumable pipeline that delivers 0.5–50 GB model bundles from a central registry to over 10,000 edge nodes, with staged rollouts, rollback, and fleet-wide monitoring.

You operate a central model registry whose storage layer is an object store such as S3. A fleet of 10,000+ edge inference nodes spread over several geographic clusters must receive new model bundles (weights, configuration files, tokenizers) from it. Bundles are 500 MB to 50 GB. Nodes differ in disk and GPU capacity, and some of them lose connectivity for hours at a time.

Design the system that gets these bundles onto the fleet and makes them live.

Requirements

  • Efficiency: keep deployment latency and bandwidth cost low, including for nodes with flaky links.
  • Integrity and security: published artifacts must be immutable and authenticated, and every node must verify them before loading.
  • Versioning: support atomic rollouts, rollbacks, and A/B tests of different model versions across clusters.
  • Observability: show download progress, success and failure rates, and storage usage across the fleet.

Constraints

  • Node storage is limited, so you need a caching and eviction policy.
  • The registry's backing store is an object store.

What to deliver

  1. A high-level architecture (component diagram or flow).
  2. An API for the on-node agent to discover updates and fetch artifacts.
  3. A strategy for partial downloads and network failures.
  4. A metadata store design for model versions and deployment manifests.

State your assumptions about scale, and discuss the main trade-offs.

Hints

Hint 1

Start with the arithmetic: 10,000 nodes times a 50 GB model is about 500 TB if every node pulls from the origin. What does that imply about where the bytes should come from?

Hint 2

Split the work into two phases: getting bytes onto disk ahead of time (staging) and switching the serving model (activation). Which of the two needs to be atomic, and which can be slow and eventually consistent?

Hint 3

Break files into content-addressed chunks and describe them in a signed manifest. Think about how that one idea gives you resumability, deduplication across versions, immutability, and verification.

Hint 4

Decide between push and pull for control. Consider what happens to a node that was offline during the rollout.