PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/System Design/SoFi

Scale a key-value store with consistent hashing

Last updated: Mar 29, 2026

Quick Overview

This question evaluates understanding of distributed systems and system-design competencies including consistent hashing with vnodes, partitioning and routing, replication and quorum trade-offs, failure detection and recovery, data migration safety, and load balancing for key-value stores.

  • hard
  • SoFi
  • System Design
  • Software Engineer

Scale a key-value store with consistent hashing

Company: SoFi

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Technical Screen

Your single-server key–value store must scale across many servers. Propose a design using consistent hashing to partition keys. Explain client/gateway routing, use of virtual nodes, how node joins and leaves trigger minimal data movement, and how you handle rebalancing. Define replication strategy and quorum choices, read/write paths, failure detection, re-replication, and recovery. Address hot keys, skew, and load balancing, as well as data migration safety, monitoring, and rolling upgrades. Compare alternatives (e.g., directory service, range partitioning) and justify trade-offs.

Quick Answer: This question evaluates understanding of distributed systems and system-design competencies including consistent hashing with vnodes, partitioning and routing, replication and quorum trade-offs, failure detection and recovery, data migration safety, and load balancing for key-value stores.

Related Interview Questions

  • Design market price change notifications - SoFi (medium)
  • Design a Real-Time Suggestions Service - SoFi (hard)
  • Design a Random Number Generation API - SoFi (hard)
SoFi logo
SoFi
Jul 15, 2025, 12:00 AM
Software Engineer
Technical Screen
System Design
5
0

System Design: Scale a Key–Value Store with Consistent Hashing

Context

You have a single-server key–value store that must scale horizontally across many servers while maintaining high availability and low latency. Assume point lookups/updates by key (no multi-key transactions), and tunable consistency is acceptable.

Tasks

  1. Partition keys with consistent hashing, using virtual nodes (vnodes). Explain the hash ring, token assignment, and how clients/gateways route requests.
  2. Describe node joins and leaves: how they trigger minimal data movement and how rebalancing works.
  3. Define replication and quorum choices: pick N (replication factor), R (read quorum), W (write quorum), and justify trade-offs.
  4. Specify read/write paths: coordinator behavior, conflict/version handling, and read repair.
  5. Explain failure detection, re-replication, and recovery: membership, hinted handoff, anti-entropy, and rebuild.
  6. Address hot keys, skew, and load balancing.
  7. Ensure data migration safety during ownership changes; describe monitoring and rolling upgrades.
  8. Compare alternatives (e.g., directory service, range partitioning) and justify trade-offs.

Deliver a diagram-free written design that covers the above with clear assumptions, pitfalls, and metrics/SLOs.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More SoFi•More Software Engineer•SoFi Software Engineer•SoFi System Design•Software Engineer System Design
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.