Redis cluster 查询优化

Open
#3,586 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp, redis

Research direction

Start by reading RedisClusterChannel::CallMethodImpl and trace how it dispatches commands across Redis cluster slots. The issue proposes grouping keys by slot, issuing batched requests, and sending them concurrently; determine the relevant tests and benchmarks from the repository. Done means cluster queries use this approach and correctness and performance are verified.

Written by the indexing model from the issue text.

Description

Is your feature request related to a problem?
RedisClusterChannel::CallMethodImpl 看着是把redis命令折分出来一个个执行的. 每次一个完整 RTT 地串行发,没有任何 pipeline、也没有并发。

Describe the solution you'd like
是否可以对key先按 slot分组 + 每次发一个真正的批量请求 + 并发发送

Describe alternatives you've considered

N/A
Additional context/screenshots

N/A

Dominant language
C++
Stars
17.6k
Forks
4.2k
Avg merge
3d 17h
Merged PRs (30d)
72

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/brpc

All issues in apache/brpc

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.