About Apache Kafka
Apache Kafka is an Apache-2.0 platform for event streams. Producers append records to partitioned, replicated topics, and consumer groups read them at their own pace, replaying history when needed.
Kafka 4 runs in KRaft mode only, so a single server needs no ZooKeeper. NVMe storage on CloudSat suits Kafka's sequential log writes, and snapshots protect a development broker.
After deploy the broker listens on port 9092 and the controller on 9093. Kafka needs Java 17 or newer, and its start script sets a 1 GB heap by default.
What you get with Apache Kafka
- Partitioned, replicated topics with configurable retention
- Consumer groups with offset tracking and replay
- KRaft consensus built in, no ZooKeeper
- Kafka Connect for moving data in and out
- Kafka Streams library for stream processing
Apache Kafka use cases
- Decouple microservices with an event bus
- Collect logs and metrics before they reach storage
- Develop against a real broker instead of a mock
After you deploy Apache Kafka
- After the console shows Running, open an SSH session as root with the key you added or the Access tab password.
- From the Kafka directory, create a topic:
bin/kafka-topics.sh --create --topic events --bootstrap-server localhost:9092. - Test it with
kafka-console-producer.shandkafka-console-consumer.shagainst the same bootstrap server. - Before remote clients connect, set the advertised listener to the server's address and allow port 9092 only from trusted IPs.
Apache Kafka ports
Open these in your firewall if you use one: 9092/tcp broker, 9093/tcp KRaft controller.
Apache Kafka FAQ
Does this Kafka need ZooKeeper?
No. Kafka 4 runs in KRaft mode, where the controller role is built into Kafka itself, so one node holds both broker and controller.
How much memory should Kafka get?
The start script defaults to a 1 GB JVM heap, and Kafka leans on the OS page cache for the rest. Start at 2 GB for testing and grow with throughput.
Disclaimer. The Apache Kafka project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.