NOTE

5.3 Distributed-System Partitioning: Routing Components

Partition routing can be handled by clients, proxies, or servers. These notes compare how each approach stores partition mappings and forwards requests.

Distributed SystemsCreated Updated 1 min readhistorical

This is a historical learning note and may contain outdated or incomplete understanding.

1. client

  • The client stores a local mapping of partitions to server nodes and sends requests directly to the correct node.

2. proxy

  • The client sends a request to the routing layer, which forwards it to the correct node.

3. server

  • The client sends a request to any server node, which forwards it to the correct node.

4. Examples

  • MySQL uses proxy or client.
  • Redis uses client + server.
  • Kafka uses client + server.
  • ZooKeeper does not use partitioning.
  • Elasticsearch uses server.

Discussion

Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub