DesignIntermediate~25 min

Distributed Cache System Design

system-designcachedistributed-systemsperformance

Problem

Design a general-purpose distributed cache system like Redis or Memcached.

Requirements

  • Basic operations as a Key-Value store (GET/SET/DELETE)
  • Distributed cache across multiple servers
  • TTL (Time To Live) support
  • Automatic eviction via LRU (Least Recently Used)
  • Data persistence option
  • High availability through replication
  • Pub/Sub functionality
  • Process 1 million requests per second

Constraints

  • Read latency under 1ms
  • 99.99% availability
  • Maximum data size of 1MB per key
  • Consider consistency during network partitions

Constraints

  • Read latency under 1ms
  • 99.99% availability
  • Maximum data size of 1MB per key
  • Consider consistency during network partitions

Your Answer

Minimum 80 characters (80 more characters)

0

Minimum 100 characters (100 more characters)

0

Minimum 80 characters (80 more characters)

0

Minimum 60 characters (60 more characters)

0

Minimum 80 characters (80 more characters)

0

Minimum 60 characters (60 more characters)

0

Minimum 50 characters (50 more characters)

0

Minimum 40 characters (40 more characters)

0
Answer Progress0 / 8 sections

Please fill all sections with the minimum character count

Model Answer

Submit your answer or click "Show" to view the model answer.