spring-kafka

Community

Reliable, idempotent Kafka for Spring Boot

Authorzenobiuszeto
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Integrates production-grade Kafka messaging into Java 21 / Spring Boot 3.x services to ensure reliable, ordered, and auditable event delivery for financial workloads. It eliminates common pitfalls like lost messages, duplicate processing, improper offset commits, and unhandled consumer failures.

Core Features & Use Cases

  • Producer best practices: idempotent producers, acks=all, batching and compression tuned for throughput and durability.
  • Consumer resilience: manual acknowledgement, idempotent consumers via deduplication table, MDC correlation propagation, and controlled concurrency.
  • Error handling & DLT: exponential backoff retries, DefaultErrorHandler with DeadLetterPublishingRecoverer routing to topic.DLT, and non-retryable deserialization handling.
  • Operational patterns: topic naming conventions, TopicBuilder/NewTopic configuration, transactional outbox pattern for atomic DB+event writes, and guidance for schema evolution.
  • Use Case: publish TransactionCreatedEvent from the transaction service, guarantee at-least-once delivery via outbox, and ensure ledger-service consumes idempotently with failures routed to a DLT.

Quick Start

Publish a TransactionCreatedEvent to prod.banking.transaction.created with an idempotent producer and configure a consumer with manual acknowledgment and DLT routing to validate end-to-end reliability.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: spring-kafka
Download link: https://github.com/zenobiuszeto/banking-strawman-capabilities/archive/main.zip#spring-kafka

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.