Design a Multi-Tenant Model Registry and Sharing Platform
Publish immutable model versions, govern public and private access, and distribute large artifacts safely at global scale.
Problem statement
Design a hosted model-sharing SaaS for individuals and organizations. For this exercise, assume publishers create a model repository, upload immutable versioned artifacts and metadata, choose public or private visibility, and promote one version as the repository default.
Consumers discover permitted repositories, inspect version metadata, and download artifacts or integrate through an API. Organizations manage members and roles; access must remain tenant-isolated across metadata, search, cache, and object delivery.
Uploads can be resumed, and a version becomes visible only after every declared object passes integrity and safety processing. Deleting or restricting a repository blocks new access while preserving an auditable lifecycle and bounded recovery window.
Design the APIs, data model, upload and publication workflow, storage and delivery path, authorization, search projection, scalability, reliability, testability, and observability. Model training, hosted inference, dataset labeling, social discussion, and billing are outside scope.
What to build
- Create personal or organization-owned repositories with public or private visibility and role-based administration.
- Resume large multi-object uploads, verify an exact manifest, and publish one immutable model version atomically.
- Search and browse only repositories the caller may discover, then inspect stable version metadata.
- Deliver authorized artifacts efficiently while honoring revocation and immutable version identity.
- Promote a default version, restrict or delete a repository, audit mutations, and restore only within the declared recovery window.
At scale
- For this exercise, assume 15 million repositories, 200 million immutable versions, and 30 petabytes of model artifacts with individual objects up to 200 GB.
- For this exercise, assume 500 million metadata reads and 80 petabytes of artifact egress per month, with globally skewed demand around a small set of public versions.
- For this exercise, assume private-access revocation must affect new download authorizations within one minute, while already issued artifact capabilities expire within five minutes.