Skip to content
Back to skills

Kafka Streaming

ASecurity

Build reliable Apache Kafka producers and consumers: partition keys, delivery semantics, schemas and DLQs

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
ai-agents

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add AdityaaaTiwari/ANVIL --skill kafka-streaming --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Kafka Streaming?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Kafka Streaming
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adityaaatiwari-kafka-streaming-anvil/badge)](https://www.skillsdirectory.com/skills/adityaaatiwari-kafka-streaming-anvil)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: kafka-streaming
description: "Build reliable Apache Kafka producers and consumers: partition keys, delivery semantics, schemas and DLQs"
---

<!-- Generated by `anvil plugin build` from catalog/. Edit the catalog, not this file. -->

# Kafka streaming

Use when designing topics, producers, or consumer groups with Kafka or compatible brokers.

## Topics and partitioning
- Pick partition keys by the entity whose strict ordering matters (e.g., `account_id`). Avoid hot keys that concentrate traffic onto a single partition.
- Over-partitioning consumes file handles and increases rebalance time; under-partitioning caps consumer parallelism. Plan partition count around peak throughput.
- Keep payloads bounded; pass object-storage pointers instead of multi-megabyte blobs.

## Producer reliability
- Enable idempotent writes (`enable.idempotence=true`, `acks=all`) and configure `delivery.timeout.ms` with retries so transient broker elections do not drop events.
- Enforce versioned schemas (`Avro` or `Protobuf` with `BACKWARD` compatibility) so consumers can roll out independently.

## Consumer correctness
- Commit offsets only after downstream persistence succeeds, not immediately upon polling.
- Separate processing loops or pause partitions if slow external calls risk exceeding `max.poll.interval.ms` and triggering rebalance storms.
- Route poison pills to a dead-letter topic (DLT) with error metadata and original headers after bounded retries; make consumers idempotent.

## Verify
Integration tests covering duplicate delivery (idempotency), poison-pill routing to DLT, consumer rebalance recovery, and schema backward compatibility.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.