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

Document idempotency / deduplication guidance for Kafka functions

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

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
kafka
Lĩnh vực
documentation

Hướng nghiên cứu

Start by locating the language-agnostic Kafka documentation and examples in the func project; the issue does not name specific files or tests. Explain stable event keys, storing processed keys in Redis or a database, skipping duplicates, and the latency and retention trade-offs. Done means the guidance makes clear that delivery is at-least-once and exactly-once is not provided, with a small example if practical.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

kind/documentation

Kafka delivery to a function is at-least-once: after a consumer rebalance or a crash between delivery and offset commit, a record can be delivered more than once. Making the handler tolerate redelivery (idempotency / deduplication) is the function author's responsibility, and this is the same for every language now that the Kafka runtime is a language-agnostic sidecar.

Provide guidance (and ideally a small example) covering the pattern: derive a stable key for each event (the CloudEvent id, or a Kafka key/partition+offset), record processed keys in an external store (e.g. Redis or a database), and skip an event whose key has already been processed. Note the trade-offs (store latency on the hot path, TTL/retention of the dedup set, exactly-once is not provided).

This supersedes the func-go-specific example request now that the in-process middleware is retired; it belongs on the func side as language-agnostic docs/example.

/kind documentation

Ngôn ngữ chính
Go
Star
366
Fork
226
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
24

Chuẩn bị môi trường

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 knative/func

Tất cả issue của knative/func

Issue tương tự

Thêm issue về Go

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.