Design an artifact store on Kubernetes and Cassandra
I was asked this
No reports yet. Sign in to say where you were asked it.
A system design interview question asked in Nvidia's technical phone screen, last asked Sep 2025. It tests kubernetes, cassandra and idempotency.
A Java web API runs on Kubernetes and stores artifacts in a Cassandra cluster. Each artifact is identified by a name the user chooses, and each name must be created exactly once, even when several create requests for the same name hit different pods at the same moment. Design the create path, then deletes, then the read path.
Requirements
- Part 1, create: concurrent creates of one name produce exactly one success; retries are safe.
- Part 2, delete: a delete capability is added later; deletes and re-creates of the same name must not race or produce duplicates.
- Part 3, read: a fast, high-throughput read API with controlled consistency, including during partial outages.
- Non-functional: many pods behind a load balancer, multi-node Cassandra with replication, pods and nodes that fail at any time.
Clarifying questions
- How large are artifacts: small metadata, or large blobs that belong in object storage?
- Can a deleted name be reused, and how soon?
- What read consistency do clients need after a successful create?
- Is the cluster in one region or several?
- What request rates for creates and reads?
What a strong answer covers
- A schema with the artifact name as partition key, and
INSERT … IF NOT EXISTS(a lightweight transaction, Paxos atSERIALconsistency) for unique creation; its latency cost, and why a plain write or read-then-write is not safe. - Idempotency keys so a client retrying after a timeout learns whether its own create succeeded; handling of LWT timeouts whose outcome is unknown.
- Alternatives compared: a name-reservation table, a distributed lock (and why it is weaker).
- Deletes as soft deletes with a state and a generation number, conditional updates for delete and re-create, tombstones,
gc_grace_secondsand compaction effects, and a name reuse policy. - Reads: consistency levels (
LOCAL_QUORUMversusONE), replication factor, caching with invalidation on delete, pagination, read repair, hot-partition mitigation, and fallbacks during partial outages.
Follow-ups
- An LWT create times out: did it succeed? What does the API return?
- A delete and a create of the same name arrive at the same moment.
- One artifact is read thousands of times a second.
- The service goes multi-region: what happens to LWT latency, and what would you change?
Where it's asked
- Nvidia · Technical phone screen · Last asked Sep 2025Live technical interview, 45 to 90 minutes; a project discussion, then a small task
What it tests
kubernetes · cassandra · idempotency · storage
No official answer yet. Draw yours on the right; publish it and it shows under Community.
Nothing published yet. Publish your canvas and it shows here for others to open and remix.
