kafka-consumer-patterns

Manage Kafka consumer delivery semantics, offset commits, rebalancing, and idempotent processing.

2|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/bingeli1379/eli-marketplace --skill kafka-consumer-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kafka-consumer-patterns
Source: https://github.com/bingeli1379/eli-marketplace/tree/main/plugins/sdd/skills/kafka-consumer-patterns
Command: npx skills add https://github.com/bingeli1379/eli-marketplace --skill kafka-consumer-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Ensures reliable Kafka consumer operations by managing delivery semantics, offset commits, consumer group rebalancing, and idempotent processing.

Core Features & Use Cases

  • Delivery Semantics: Selects the right delivery guarantee (at-most-once, at-least-once, exactly-once).
  • Offset Commits: Manages auto-commit and manual offset commits for reliability.
  • Consumer Groups: Handles rebalancing and liveness configurations.
  • Idempotent Processing: Implements deduplication and atomic side effects to handle duplicates.
  • Use Case: For developers who need to ensure that Kafka consumers are reliable and can process messages without duplicates or data loss.

Quick Start

Load the kafka-consumer-patterns skill and follow the agent-guidelines to match existing code and ensure reliable message processing.

Frequently Asked Questions about kafka-consumer-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent duplicate messages in a Kafka consumer?

Prevent duplicate messages in a Kafka consumer by implementing idempotent processing and deduplication. This approach handles duplicate deliveries by ensuring atomic side effects, processing each message exactly once without data loss or redundant operations.

What is the difference between at-least-once and exactly-once Kafka delivery semantics?

Kafka delivery semantics differ by guarantee level: at-most-once allows potential loss, at-least-once permits duplicates, and exactly-once ensures single processing. Selecting the right semantic depends on your administrative workflow's tolerance for data loss versus duplication.

When should I use manual offset commits instead of auto-commit in Kafka?

Use manual offset commits in Kafka instead of auto-commit when you need strict reliability. Manual commits ensure offsets are only saved after successful message processing, preventing data loss during consumer failures or unexpected restarts.

How do I handle consumer group rebalancing without losing messages?

Handle Kafka consumer group rebalancing without losing messages by managing liveness configurations and rebalancing protocols. Proper rebalance handling ensures continuous message delivery and maintains consumer group stability during administrative workflow scaling.

What is the best way to ensure Kafka consumer reliability for administrative workflows?

The best way to ensure Kafka consumer reliability is by combining idempotent processing, manual offset commits, and proper delivery semantic selection. This guarantees reliable message processing without duplicates or data loss in administrative workflows.