agentleFS
Ghost7802Ghost7802/awesome-api-skills/skills/kafka/SKILL.md

kafka

Skill13 starsChanged 27 days agoMITView on GitHub

Distributed event streaming platform. - rabbitmq (Score: 0.9) Why: Direct relationship, Both are Messaging, Shared ecosystem (infrastructure), Can deploy to aws - redis-streams (Score: 0.8) Why: Direct relationship, Both are Messaging, Can deploy to aws - nats (Score: 0.7) Why: Direct relationship, Both are Messaging

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If a consumer is too slow, Kafka will trigger a 'rebalance', pausing message processing for the entire group.

    line 43
  2. Distinctive:

    Use this when your agent works with kafka — structured patterns beat pasted docs and prevent common hallucinations.

    line 52

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Apache Kafka Skill

Distributed event streaming platform.

Ecosystem Graph Preview

graph LR
  kafka["kafka"]:::core
  classDef core fill:#f9f,stroke:#333,stroke-width:4px;
  kafka -- "alternative to" --> rabbitmq
  kafka -- "alternative to" --> redis-streams
  nats -- "related to" --> kafka
  rabbitmq -- "alternative to" --> kafka
  redis-streams -- "alternative to" --> kafka

Recommended Next Skills

  • rabbitmq (Score: 0.9) Why: Direct relationship, Both are Messaging, Shared ecosystem (infrastructure), Can deploy to aws
  • redis-streams (Score: 0.8) Why: Direct relationship, Both are Messaging, Can deploy to aws
  • nats (Score: 0.7) Why: Direct relationship, Both are Messaging

Quick Start

Kafka is not a queue; it is a distributed, append-only log. It excels at handling massive event streams (like clickstreams or IoT telemetry) by distributing partitions across a cluster.

docker run -p 9092:9092 apache/kafka:latest

Production Patterns

Consumer Groups and Partitions

Kafka guarantees message ordering only within a single partition. To scale out, you must increase the number of partitions for a topic. The maximum number of concurrent consumers in a group is strictly equal to the number of partitions.

Architecture & Scaling

Log Retention

Unlike RabbitMQ where messages are deleted once consumed, Kafka retains messages on disk based on a retention policy (e.g., 7 days or 100GB). This allows new consumer groups to replay the entire history of events from the beginning.

Error Recovery

If a consumer is too slow, Kafka will trigger a 'rebalance', pausing message processing for the entire group. Ensure your consumer's max.poll.interval.ms is tuned properly, and keep processing logic completely asynchronous from the polling loop.

Security Notes

Enable SASL/SCRAM for client authentication and TLS for in-transit encryption. Kafka without security is completely open to the network.

References

Why use this skill

Use this when your agent works with kafka — structured patterns beat pasted docs and prevent common hallucinations.

AI pitfalls

  • Using outdated SDK or API versions from training data
  • Inventing environment variable names
  • Omitting error handling and retry logic

Production checklist

  • Secrets in environment variables, not source code
  • Error handling and logging in place
  • Rate limits and timeouts configured

Related skills

  • rabbitmq — alternative to
  • redis-streams — alternative to

Last Verified: 2026-07-02

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.