Request: Support pipeline for Redis
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- redis, typescript
- Lĩnh vực
- backend-api-design, databases
Hướng nghiên cứu
Start by inspecting Devvit's Redis client API and the existing zAdd and zRank command paths. Compare the requested pipeline and exec shape with the current client behavior. Done means commands can be queued in order, sent without a round trip per command, and return results such as the zRank value from exec.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
It would be great to have a pipeline API on Devvit's redis client. Right now, to guarantee command ordering you have to await each call individually, which adds a round trip per command. With pipelining, commands could be batched and sent in a single TCP write without transaction overhead. Many Redis clients (E.g. ioredis) expose it through .pipeline()
// Not guaranteed Redis receives first command first.
redis.zAdd(...)
redis.zRank(...)
// Awaiting adds a round trip
await redis.zAdd(...)
redis.zRank(...)
// No round trip, fast and guaranteed order
const pipeline = redis.pipeline()
pipeline.redis.zAdd(...)
pipeline.redis.zRank(...)
const [ _, rankResult ] = await pipeline.exec()
- Ngôn ngữ chính
- TypeScript
- Star
- 212
- Fork
- 89
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của reddit/devvit
-
Bound concurrent filesystem reads during asset discovery and source ZIP generationCó thể đã có người làm @CR29-22-2805 đã nhận 83 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 57/100
Tất cả issue của reddit/devvit
Issue tương tự
-
area: desktop area: website priority: P2 type: feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
appandflow/stim#3411 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
rjsf-team/react-jsonschema-form#5485 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
lingdojo/kana-dojo#32090 · 1 bình luận · 5 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Friction: Org home and org switcher copy still say repositories and connected agents live in the personal accountCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởfriction
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
kentcdodds/kody#3265 ·
Maintainer thường phản hồi trong vòng 1 ngày