Document idempotency / deduplication guidance for Kafka functions
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ả
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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
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 knative/func
-
KEDA deployer: default minReplicaCount prevents scale-to-zeroCó thể đã có người làm @Tushar-Khandelwal-2004 đã nhận 115 ngày trước. Đang mởlifecycle/stale
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
knative/func#3924 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
git/gitlab: default project webhooks to SSL verification when creating hooksCó thể đã có người làm @Vi-shub đã nhận 162 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
mcp: config add/remove handlers bypass readonly guardCó thể đã có người làm @Elvand-Lie đã nhận 164 ngày trước. Đang mởkind/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
knative/func#3704 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
kind/cleanup
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 1 ngày
-
operator sync creates registry auth Secret as Opaque/config.json, incompatible with func-operator (expects dockerconfigjson)Có thể đã có người làm @gauron99 đã nhận 10 ngày trước. Đang mở
knative/func#4081 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
[Bug]: ap gateway image build cannot find local policies on WindowsCó thể đã có người làm @Jayzilva đã nhận hôm nay. Đang mởAspect/Configuration Severity/Major
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
wso2/api-platform#3912 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
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 75/100
keyxmakerx/Chronicle#1721 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Gentleman-Programming/gentle-ai#5720 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
compress: block buffers get re-zeroed on every call, and the zeroing is immediately overwrittenĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ClickHouse/ch-go#1218 ·
Maintainer thường phản hồi trong vòng 13 ngày