Database / ValKey Interview questions
When should you choose Valkey Cluster over Sentinel?
Cluster mode becomes necessary once the working set or the required write throughput outgrows what a single primary node can hold or handle, since it is the mechanism that actually shards data across many machines.
Sentinel is often the better fit when the dataset comfortably fits on one primary and the main requirement is automatic failover, since it avoids the constraints Cluster places on multi-key commands and Lua scripts, which must operate on keys mapped to the same hash slot unless hash tags are used.
More Related questions...