go-event-consumer

Implement idempotent Redpanda consumers with transactional dedup and dead-letter queues.

1|Updated Jun 20, 2026
One-click install
npx skills add https://github.com/shafibabar/SDLC-Artifact-Factory --skill go-event-consumer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-event-consumer
Source: https://github.com/shafibabar/SDLC-Artifact-Factory/tree/main/skills/go-event-consumer
Command: npx skills add https://github.com/shafibabar/SDLC-Artifact-Factory --skill go-event-consumer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill solves the common pitfalls of event-driven architecture, such as lost messages, duplicate processing, and blocked partitions, by enforcing a rigorous, production-grade standard for Redpanda/Kafka consumers.

Core Features & Use Cases

  • Idempotent Processing: Ensures that processing the same event multiple times has no side effects using a transactional dedup ledger.
  • Resilient Error Handling: Implements exponential backoff retries and a standardized Dead Letter Queue (DLQ) to prevent poison messages from stalling pipelines.
  • Operational Observability: Provides a two-signal heartbeat mechanism to detect wedged goroutines that standard health checks miss.

Quick Start

Use the go-event-consumer skill to generate a new consumer service that implements the idempotent-consumer and dead-letter-queue standards for a specific domain event.

Frequently Asked Questions about go-event-consumer

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

FAQPage Schema
How do I build an idempotent Redpanda consumer in Go?

Idempotent message processing in Kafka prevents duplicate side effects by using a transactional dedup ledger to track processed events. This ensures strict transactional integrity and reliable message processing within distributed microservice architectures.

How do I handle poison messages in a Kafka consumer pipeline?

Handling poison messages in a Kafka consumer pipeline involves implementing exponential backoff retries and a standardized Dead Letter Queue (DLQ). This prevents malformed messages from stalling partitions and blocking event-driven workflows.

What is the best way to detect wedged goroutines in a Go event consumer?

Detecting wedged goroutines in a Go event consumer requires a two-signal heartbeat mechanism. This provides operational observability to identify blocked background processes that standard health checks routinely miss.

How do I implement bounded concurrency for an event-driven microservice?

Implementing bounded concurrency for an event-driven microservice involves configuring robust message processing limits alongside graceful service lifecycle management. This guarantees trace continuity and prevents resource exhaustion during high-throughput event consumption.

Does this idempotent consumer pattern work with Redpanda?

Yes, this idempotent consumer pattern works directly with Redpanda and Kafka. It facilitates reliable message processing, automated poison-message handling, and bounded concurrency specifically for event-driven microservices.