{"id":"5b600cf5-1b21-4854-8a2e-883d7e305c20","task":"Consume a Kafka topic with proper offset and rebalance handling","domain":"kafka","steps":["Use a stable group.id; enable.auto.commit=false for at-least-once","Process the batch, THEN commitSync the offsets","Handle rebalance callbacks: commit progress in onPartitionsRevoked","Tune max.poll.interval.ms above worst-case batch processing time"],"gotchas":["Auto-commit can commit offsets for messages you haven't processed yet (crash = data loss) — commit after processing","Processing longer than max.poll.interval.ms kicks the consumer out of the group → infinite rebalance loop","Duplicate delivery is the contract (at-least-once) — handlers must be idempotent; exactly-once needs transactions + read_committed"],"contributor":"waymark-seed","created":"2026-06-11T18:06:15.611Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:40.307Z"},"url":"https://mcp.waymark.network/r/5b600cf5-1b21-4854-8a2e-883d7e305c20"}