r/apachekafka • u/mmatloka • 1d ago
r/apachekafka • u/rmoff • Jun 02 '26
📣 AI-generated content must be disclosed
A couple of weeks ago I started a RFC regarding posts on this sub that are AI-generated, or about AI-created tools. There was a range of views as to how far to go, but broad support for at least requiring the labelling of such content.
So, this is now a new rule for the community :)
- If you are submitting a tool, blog post, or video that has been substantially generated by AI, you MUST label it as such. Each of the post flairs now has a
(AI)counterpart. - Trivial use of AI (spelling, grammar, formatting, dictation) does not need disclosing.
- Egregious or repeated failures to label AI-generated content may result in removal or a ban.
The mod team here, along with basically everyone else in the world, is trying to figure this out as we go, so bear with us as we launch—and if necessary, refine—the rule.
What counts as AI-generated vs AI-supported? My yardstick is: if I can get my agent to write/build essentially the same thing with a few prompts, it's AI-generated.
r/apachekafka
•
u/rmoff
•
Jan 20 '25
📣 If you are employed by a vendor you must add a flair to your profile
As the r/apachekafka community grows and evolves beyond just Apache Kafka it's evident that we need to make sure that all community members can participate fairly and openly.
We've always welcomed useful, on-topic, content from folk employed by vendors in this space. Conversely, we've always been strict against vendor spam and shilling. Sometimes, the line dividing these isn't as crystal clear as one may suppose.
To keep things simple, we're introducing a new rule: if you work for a vendor, you must:
- Add the user flair "Vendor" to your handle
- Edit the flair to show your employer's name. For example: "Confluent"
- Check the box to "Show my user flair on this community"
That's all! Keep posting as you were, keep supporting and building the community. And keep not posting spam or shilling, cos that'll still get you in trouble 😁
r/apachekafka • u/mmatloka • 2d ago
Blog Kafka Simulator v2.1 + v2.2 - cluster mirroring, Schema Registry failures and diskless Kafka in preview
monedula.devKafka Simulator v2.1 and v2.2 are out! 🚀
31 new scenarios, including:
🔹 Diskless Kafka implementations from Aiven (Inkless), AutoMQ | Low Latency Diskless Kafka® on S3 and KafScale 2.0!
🔹 Cluster mirroring with Confluent Cluster Linking, Lenses.io K2K, MirrorMaker 2, and Apache Kafka's KIP-1279
🔹 Schema Registry failures, failovers, and compatibility issues
Big thanks to all vendors and KIP-1279 contributors for their feedback, for helping catch and correct a few details! Thanks Alexander Alten, Luke Chen, Federico Valeri, Jeremy Frenay!
Reviews with several vendors are still in progress, and the next release will definitely incorporate that feedback. More to come!
r/apachekafka • u/bmscomp • 1d ago
Tool (AI) I built an open-source tool that breaks your Kafka cluster under load and checks whether it lost any acknowledged records
You find out how a Kafka cluster handles a broker failure on the day a broker fails, unless you have already tried it.
The usual way to try it is kafka-producer-perf-test in one terminal, kubectl delete pod in another, and a Grafana board you squint at. That gives you a rough feeling. It's hard to repeat next month, hard to run in CI, and it can't answer the question I care about most: did every record the cluster acknowledged survive?
A perf tool reports throughput and latency. A chaos tool reports that the pod died. Neither one knows which records were acked. So I built Kates, which does the load, the fault and the checking together. (I'm the author. It's free, Apache 2.0.)
The idea
Treat resilience as a test with a pass/fail result. You write down the target first, for example:
- 2,000 records/s of 1 KiB with
acks=all, P99 at or under 100 ms - no acknowledged record lost when one broker or one zone goes down
Then you run the load, inject the failure, and compare what you measured with the target. Every run is stored in PostgreSQL, so you can compare today's cluster with last month's.
How the loss check works
The INTEGRITY test puts a sequence number, a run ID hash and a CRC32 in every record. The producer tracks which sequences the broker acknowledged. Afterwards a consumer reads everything back, and any acknowledged sequence it never saw is lost:
Acknowledged: 1 2 3 4 5 6 7 8
Read back: 1 2 3 . 5 6 . 8
Lost ranges: [4-4], [7-7]
Lost: 2It also checks ordering within each partition and duplicates. A send that failed and was never acked doesn't count as loss.
What else it does
- Load: load, stress, spike, endurance, volume, capacity and round-trip tests, using real Kafka clients on virtual threads.
- Faults: 13 types (pod kill, network partition, CPU/memory/I/O stress, DNS errors, disk fill, node drain...) through LitmusChaos or directly through the Kubernetes API. Which ones you get depends on the provider.
- Guards: a disruption plan is refused if it would hit more brokers than you allowed or leave no broker untouched. There is a dry run.
- CI:
kates gate --min-grade Bexits non-zero below that grade, and scenario files carry their own SLA gates. JUnit XML export and a GitHub Action are included. - Security: an A–F audit of broker configuration, with drift detection against a saved baseline.
The CLI is Go, the API is Quarkus (GraalVM native image), and it installs with signed Helm charts.
Try it
Docker Compose is enough for the load, integrity and audit parts (no Kubernetes, under 1 GB of RAM):
curl -fsSLO https://raw.githubusercontent.com/bmscomp/kates/main/docker-compose.yml
docker compose up -d --wait
docker compose exec kates kates test create --type INTEGRITY --records 50000 --wait
docker compose exec kates kates security audit
docker compose down -vFault injection needs Kubernetes. With about 16 GB of RAM, kates deploy builds a three-node Kind cluster with each node in its own zone, plus Strimzi, rack-aware brokers, Litmus, Prometheus and Grafana, so you can rehearse losing a zone on a laptop:
brew install kind kubectl helm bmscomp/tap/kates
kates deployWhat it doesn't do
- Fault injection targets Strimzi-managed brokers. Load tests work against any Kafka cluster the API can reach.
- A
LOADrun is one producer and one consumer. UseSTRESSfor parallel producers. - With the default Litmus provider, fault start and end times can be off by several seconds.
- The security "pentest" attacks nothing: it reads one broker's configuration and the ACL list.
- Numbers from Kind on a laptop tell you about behavior. They are not capacity figures for production.
- Please start with the lab or a staging cluster.
Links
- Code: https://github.com/bmscomp/kates
- Docs (a full book, including the theory): https://bmscomp.github.io/kates/
- Site: https://katesplatform.io/
I'd like to hear from people running Kafka on Kubernetes: how do you test broker or zone loss today, and which failure would you want to rehearse that isn't on this list?
r/apachekafka • u/huseyinbabal • 1d ago
Video You need to learn Kafka RIGHT NOW!!
youtu.ber/apachekafka • u/Antique_Result_6426 • 2d ago
Question Flink or KsqlDB
Hello Team,
I have a quick question since I am new to kafka. We have a requirement to put a filter within kafka topics and then send filtered messages to another kafka topic based on json field within the payload.
To achieve this what is the best option at enterprises level.
1.flink
2.ksqldb
r/apachekafka • u/Signadot • 4d ago
Tool Getting OpenTelemetry trace context through Debezium into Kafka headers
Hey folks, we just published a tutorial on getting OpenTelemetry trace context through Debezium into Kafka headers. Might be helpful to anyone running CDC who wants traces to survive the hop.
With CDC the service never produces the Kafka record, so whatever headers its request carried are gone by the time Debezium publishes the change. We store traceparent and baggage on the row with a trigger, then ExtractNewRecordState plus Kafka Connect's built-in HeaderFrom$Value moves them into headers, with no custom SMT or image. That works with any OpenTelemetry setup. Signadot is what we use on top so test environments can share one Postgres, connector and topic.
Hope it helps. Happy to answer any questions. Full transparency, I work for Signadot.
https://www.signadot.com/docs/tutorials/testing-debezium-cdc
r/apachekafka • u/PlusDistribution1915 • 7d ago
Tool Using Kafka as glue between services: what we had to build around it, and the broker we ended up writing
Hi Kafka community,
I'm a software engineer at Smartness (B2B travel tech SaaS).
Disclaimer:
- If you use Kafka as a firehose, this post probably won't interest you.
- If you use Kafka as glue between services, it might.
We were (and partially still are) Kafka users, not to manage tons of events or data, but to handle coordination and messaging between our products and microservices. So basically we used Kafka in a way it wasn't designed for, like many of us, I believe.
During the last year we built a new message queue (QueenMQ). At first it was a tiny one, only to solve head-of-line blocking in Kafka for our slow pipelines. Over the year it evolved into a distributed transactional message broker. I like to call it the ACID message broker.
Why am I here? Because using it instead of Kafka totally changed how we develop applications: we can offload to it things we would otherwise have to build into every application. It's built to make our lives easier, and every feature it has is one we use in production. It now powers 5/6 of our products.
It's a bit of a paradigm shift, and it covers a lot, so I made a map to help people quickly understand what I mean: https://queenmq.com/map/
Main pillars:
- Almost infinite (tested between 10 and 10 million) dynamic, named partitions (like 'order-123')
- Transactions that span queues, partitions, the embedded KV and timers
- ACK and NACK, with retries, as a proper message queue
- The features you usually need to build connected systems: DLQ, conflation, routing
- Tested with our own Jepsen test suite
All of this runs on a super simple HTTP protocol (curl is a valid client). It's also compatible with Kafka clients, although with limited features: we added this because we wanted to switch our small, simple services to the new broker without rewriting them.
Clients are dumb, and the broker is etcd-shaped: one Raft group per tenant. That allows things like one ordered stream across every queue of a tenant (read: super simple stream joins). The price, obviously, is the ceiling: the system doesn't scale by adding more than 3 or 5 nodes. But we tested it up to 3M msg/s with decent latency (around 15-25 ms e2e p99, fsync to two of three disks), so that ceiling will never be a bottleneck for us (on the same machines, Kafka made 8M msg/s at around 10ms e2e p99, no fsync).
Inside our company it was also hard to make people understand why to use this instead of Kafka, so I'd really like feedback from the Kafka community.
Our goal is to bring the project to CNCF one day, so honest criticism helps more than anything.
Repo is here: https://github.com/queen-mq/queen
EDIT: Thanks everyone for the answers and the challenges. My biggest takeaway: QueenMQ needs a schema registry. Three people brought it up, from three very different setups.
r/apachekafka • u/HughEvansDev • 7d ago
Blog Wrote up my thoughts on Current San Francisco
aiven.ioI had a great time with the team at Aiven at Current earlier this month, I wrote up this blog comparing it to last years events and exploring the highlights from this year.
r/apachekafka • u/certak • 8d ago
Video KafkIO Video Tutorials (finally!)
KafkIO now has a series of short, narrated video tutorials. Each video covers one task, so it's easy to go straight to the one you need.
The series is aimed mainly at Kafka or KafkIO beginners or "occasional" Kafka users, such as software engineers who may need to dive further into Kafka concepts.
What's covered:
- Connecting: plaintext, SSL/mTLS and SASL clusters, Schema Registry, Kafka Connect and ksqlDB, plus troubleshooting
- Messages: searching by text, date or offset; viewing and comparing messages; live streaming; producing single and bulk test messages; reading Avro, Protobuf and JSON Schema; exporting to a file
- Topics: creating topics with custom settings; partitions, replication and lag; changing and clearing configs; deleting topics
- Consumers, Schemas & ACLs: consumer groups, lag and offset resets; browsing and evolving Schema Registry schemas; viewing, creating and deleting ACLs
- Kafka Connect & ksqlDB: creating, monitoring and fixing connectors; running KSQL queries; managing streams, tables and queries
- Tools & Settings: converting PEM/P12 certificates to JKS; Kafka, Schema Registry and Connect timeouts; Kerberos (GSSAPI); proxies and trusted certificates
Videos: https://www.kafkio.com/videos
Or, via YouTube playlist: https://youtube.com/playlist?list=PLVtwgolkXSQisb9ukxb_LMilGuP_JbIBK
Hope these videos helps someone!
r/apachekafka • u/rytsh • 8d ago
Tool (AI) kafka-console: open-source web UI for Kafka in a single binary
I built a web console for Kafka and use it at work for debugging and ops. It's a single Go binary (franz-go) with the UI embedded. Point it at one or more clusters in a YAML file and run it, or use the Docker image.
https://github.com/rakunlabs/kafka-console
Things I use it for most:
- Multiple kafka cluster connection
- Finding a message: search and JavaScript filters over an offset or time range, with Avro/Protobuf/JSON Schema decoding (Protobuf also works from local .proto files, no registry needed)
- Consumer group lag per partition, and resetting offsets with a preview of the exact offsets before applying
- Replaying a range of messages to another topic, editing a message and resending it, importing JSON/CSV files
- Creating or editing consumer group-id
There's also an optional MCP endpoint (read-only by default) if you use coding agents. Login is left to a reverse proxy; writes go to an audit log with the user header.
r/apachekafka • u/gantamk • 9d ago
Tool (AI) In Flight: an open-source console that shows what's stuck in your dead-letter queues as orders, customers and money
I am building this tool (ProvenMap's open-source project, Apache-2.0), and most of the code was written with Claude Code.
When a consumer fails, its events go to a dead-letter queue, and the dashboards show lag and offsets. Whoever owns the flow wants to know which orders are stuck, for which customers, worth how much. "In Flight" is for that person where "to learn Kafka first" is not required.
You point it at a cluster and it finds the flow's topics, consumer groups and dead-letter queues (by name, or by Kafka Connect's or Spring's headers on the records). It drafts a catalog from the records: which field is the amount and whether it's in cents, which is the order and which the customer. confirm it, and from then on it shows money at risk per consumer group and per customer, grouped by error.
All these can be configured through built-in mcp server
Welcome any comments.
Code: https://github.com/provenmap/in-flight
Its architecture as a board: https://provenmap.com/boards/paws/in-flight-the-money-moving-through-your-kafka
r/apachekafka • u/azazali30 • 9d ago
Blog Change Data Capture (CDC) Explained: Stop Dual Writes with Debezium + Kafka
youtube.comr/apachekafka • u/Prestigious-Pen6448 • 11d ago
Question What are you using as a desktop Kafka client now that Conduktor Desktop is gone?
Since Conduktor Desktop was discontinued, the options for just poking at topics locally seem kind of thin: Offset Explorer works but feels dated, Kafbat/kafka-ui is solid but I don't want to spin up a container just to peek at a topic, and kcat is great until you need Avro/Protobuf decoding.
Curious what everyone ended up with:
- What do you use day to day to inspect topics and messages?
- What's the most annoying part — Schema Registry decoding, searching/filtering messages, consumer lag, auth (SASL/IAM/mTLS), or being scared of touching prod?
- Would a lightweight native desktop app (read-only by default, Schema Registry-aware) be something you'd actually install, or are CLI + web UI good enough?
r/apachekafka • u/Distinct-Sail-9789 • 12d ago
Tool Building an experimental Go stream processor: what recovery failure would you test first?
A question about the project got straight to the difficult part: after a crash, where does the state come from?
kstream-go is an independent Go stream-processing core using Kafka Streams as a semantic reference.
The recovery design uses committed Kafka changelogs as the durable authority. The experimental Kafka adapters commit state changes, output, and input positions together. Recovery replays committed changes into task-owned stores.
An optional Pebble adapter provides persistent local caches. Validated local checkpoint reuse is still unimplemented. A local store surviving a restart does not, by itself, prove that it matches the committed Kafka state.
Other remaining gaps include broader consumer-group fault-tolerance qualification and heterogeneous repartition scheduling. Differential tests cover implemented scenarios against Kafka Streams 3.9.1; they do not establish full compatibility or production readiness.
Repo, examples, and validation boundaries: https://github.com/SoraDaibu/kstream-go
For people operating stateful Kafka applications: which failure would you test first before trusting this recovery design?
- An ambiguous transaction outcome
- Ownership loss during processing
- A local cache-apply failure after the Kafka commit
- Something else we’re overlooking
Concrete failure sequences or lessons from operating similar systems would be especially helpful.
r/apachekafka • u/rmoff • 15d ago
Tool (AI) 📣 Announcing kafuck: Apache Kafka, rewritten in Brainfuck. Blazingly fast. Memory safe. Diskless.
github.comr/apachekafka • u/caught_in_a_landslid • 14d ago
Event We're hosting a webinar around consumer group latency and kafka troubleshooting
Hi chums!
We're hosting a webinar around kafka troubleshooting live next week on November 18.
We'll be debugging a cluster live and talking through the issues that can occur when you get far more messages than expected!
Disclose : we're from lenses!
r/apachekafka • u/korableg • 16d ago
Blog bus: an opinionated Go layer over sarama with protobuf event contracts, typed handlers and built-in commit/retry policy
Hi all,
I've been building bus, a Go library on top of IBM/sarama. It packages the commit, retry and serialization decisions I kept re-implementing in every service into one place.
Event contracts
Events are protobuf messages. The topic and the partition key are declared in the .proto file via custom options, so the contract travels with the schema:
message OrderCreated {
option (korableg.protobuf.event.topic) = "orders";
string id = 1 [(korableg.protobuf.event.key) = true];
}Several event types can share one topic. Each message carries its type in a header, and a handler only receives the type it's registered for.
Feedback from people who've run Kafka in production is very welcome, especially on the commit semantics and whether a built-in DLT is worth adding.
r/apachekafka • u/DevEJesus • 16d ago
Question How do you get third-party webhooks (Stripe, GitHub, Shopify) into Kafka today?
Hi all,
I'm curious how teams here handle incoming webhooks when the rest of their system runs on Kafka.
From what I've seen, most people end up writing a small receiver service that:
- verifies the provider's signature (different for every provider)
- deduplicates events, since providers sometimes send the same one twice
- buffers or retries when Kafka is slow or down
- produces the event to a topic
And then there's usually no easy way to see what arrived, what failed, or to replay an event.
A few questions:
- Do you run your own receiver, use a service (Hookdeck, Airbyte, something else), or skip Kafka for webhooks entirely?
- What's been the most annoying part: signatures, duplicates, lost events, debugging?
- Have you ever lost or double-processed a webhook event because of this?
- If a hosted service did this reliably and pushed events into your own Kafka cluster, would that be useful, or is it simple enough to keep in-house?
I'm thinking about building something in this space, so honest answers (including "not worth it") are very welcome. Thanks!
r/apachekafka • u/javinpaul • 18d ago
Blog System Design - Apache Kafka Basics
javarevisited.substack.comr/apachekafka • u/alfonsojimenez • 18d ago
Tool I built an open-source tool for exploring Kafka compacted topics
Hi there! I've been working on an open-source project called KGazer, designed to make working with Kafka compacted topics a bit easier.
The idea came from a problem I've run into myself: sometimes you just want to find the current value of a particular key, see how it's changed over time or investigate its previous versions. Doing this often means writing a temporary Kafka consumer or putting together a few scripts.
I wanted to make that process simpler.
- KGazer provides a web interface where you can:
- Browse keys and search message values.
- Inspect the history of individual keys.
- Compare different message versions using JSON diffs.
- Visualise how values change over time.
- Monitor consumer groups and consumer lag.
It also supports multiple Kafka clusters, Avro and Protobuf deserialisation, and Kubernetes deployments.
Under the hood, it's built with Go and React, uses PostgreSQL for storage, and is released under the MIT licence.
GitHub: https://github.com/alfonsojimenez/kgazer
It's still an evolving project, so I'd genuinely appreciate feedback from anyone working with Kafka, particularly those running it in production.
I'm curious: how do you currently inspect compacted topics and investigate changes to individual keys? Is this something you find yourself writing scripts for or do you use another tool?
I'd be interested to hear what you'd find useful in a tool like this.
r/apachekafka • u/DueBid3298 • 19d ago
Question Apache kafka ->recent interview questions
HI there, if anyone has attended interviews for BE + kafka for 5+ yoe, can anyone share the interview questions, situation based questions related to kafka?