apache / apache/opendal

new feature: Redis client should support reader endpoints/replicas

Open
#6,760 1 comment 2 reactions 0 assignees View on GitHub
enhancement releases-note/feat services/redis
Dominant language
Rust
Stars
5.4k
Forks
825
Avg merge
1d 14m
Merged PRs (30d)
127

Description

### Feature Description

To help optimize throughput, the Redis client should support reading from dedicated reader endpoints (or replicas in cluster mode), and only write to primary endpoints.

### Problem and Solution

RedisBuilder should support an additional `reader_endpoints()` option, and `RedisClient` would need a separate `reader_client`/`reader_cluster_client` fields, then use those clients for `get()` operations.

### Additional Context

_No response_

### Are you willing to contribute to the development of this feature?

- [x] Yes, I am willing to contribute to the development of this feature.

Contributor guide

Open the contributing guide

Research direction

Start with RedisBuilder and RedisClient, then trace how regular and cluster clients are constructed and how get() currently performs reads. Done means reader_endpoints() is supported, separate reader clients are used for reads, and writes continue to use primary endpoints.

Written by the indexing model from the issue text.

Assessment

Tech stack
redis, rust
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.