This question evaluates distributed-systems and system-design competencies, including concurrency control for unique-name creation, idempotency and retry semantics, deletion modeling (soft deletes, tombstones, TTL), and read-path consistency, caching and performance when running a Java API on Kubernetes with Cassandra storage.
You run a Java web API on Kubernetes backed by a Cassandra 4.x cluster. Users create artifacts identified by a user-provided unique name. The system must ensure each name is created exactly once under concurrent requests. Later, a Delete feature is added. Finally, you must design the Read API for low latency and high throughput while controlling consistency.
Assume a single region with 3 Availability Zones, NetworkTopologyStrategy, RF=3 per DC, and cross-AZ traffic allowed. Payload size fits Cassandra best practices; if not, store only metadata in Cassandra and the payload in blob storage.
a) Creation concurrency control
b) Delete and re-add semantics
c) Read API design
Login required