Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Request: Support pipeline for Redis

Đang mở
#265 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của reddit/devvit

Tất cả issue của reddit/devvit

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.