Self-host Apache Kafka
4.4.0Event streaming platform for high-throughput data pipelines
- Stars
- 34 194
- Port
- 9092 (Kafka broker listener)
- Requires
- Java
apache/kafkaWhat is Apache Kafka?
A distributed event streaming platform built for high-throughput, fault-tolerant data pipelines and real-time streaming applications. It runs as a cluster of brokers that store streams of events in topics, providing durability, ordering guarantees, and exactly-once semantics. Key capabilities include horizontal scaling to thousands of brokers, permanent storage with replication, built-in stream processing via Kafka Streams, and a Connect framework with hundreds of connectors for integrating external systems like databases, Elasticsearch, and cloud storage. Kafka is self-hosted via Docker images (apache/kafka for JVM, apache/kafka-native for GraalVM), downloadable tarballs, or source builds. It requires Java 17+ and uses port 9092 by default. The project is mature (version 4.3.1), licensed under Apache-2.0, and maintained by the Apache Software Foundation.
Apache Kafka alternatives
logging-flumeOpen-source, self-hosted ingestion service from Apache: streaming agents with sources, channels and sinks move large amounts of log data to HDFS, Kafka or HBase.Comparelogging-flume with Apache Kafka
activemqThe open-source, self-hosted Apache ActiveMQ message broker handles JMS, AMQP, MQTT, STOMP and REST traffic from Java, C, Python and .Net clients.Compareactivemq with Apache Kafka
apache-nifiApache NiFi is an open-source, self-hosted data flow automation platform with browser-based UI, provenance tracking, and secure configuration.Compareapache-nifi with Apache Kafka
logstashAn open-source server-side data pipeline that ingests, transforms and routes events with 200+ plugins; self-hosted via Docker, deb/rpm packages or tar/zip downloads.Comparelogstash with Apache Kafka
DruidSelf-hosted open-source OLAP database delivering millisecond analytics on high-cardinality event data, with SQL, JDBC, a web console and native Kafka/Kinesis ingestion.CompareDruid with Apache Kafka
Apache HopApache Hop is a self-hosted, open-source data integration platform for visual pipelines that run on local, Hop Server, Spark, Flink, and Dataflow without rewriting.CompareApache Hop with Apache Kafka
lakehouse-at-homeSelf-hosted lakehouse for local data engineering with Spark, Iceberg, and Kafka via Docker Compose, plus optional Airflow and test data tools.Comparelakehouse-at-home with Apache Kafka
Apache CassandraSelf-hosted, open-source distributed NoSQL database: a masterless partitioned row store with multi-datacenter replication, queried with CQL over the native protocol.CompareApache Cassandra with Apache Kafka
Should you self-host Apache Kafka?
Apache Kafka scores 82/100 on selfhost.directory (how scoring works) and ranks #1 of 12 in Message Broker. It has 34 194 GitHub stars, +289 in the last 30 days.
There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.
Setup is advanced: plan for several services and some ongoing maintenance. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Java.
Its closest alternative on selfhost.directory is NATS (80/100, 21 010 stars). Apache Kafka scores higher overall. See Apache Kafka vs NATS side by side.
Features
- Built-in Stream Processing
- High Availability
- High throughput messaging
- Horizontal Scalability
- Kafka Connect
- Mission-critical guarantees
- Multi-language client libraries
- Permanent Storage
Apache Kafka README
More in Message Broker
automqSelf-hosted, open-source Apache Kafka fork with stateless brokers that store logs on S3 or MinIO and rebalance partitions in seconds.
beanstalkdbeanstalkd is a self-hosted, open-source work queue: a small C daemon where producers put jobs into named tubes and workers reserve, bury or kick them over plain TCP.
BunkerMBunkerM is a self-hosted, open-source MQTT platform bundling Eclipse Mosquitto with a web dashboard, ACL management, message history, anomaly detection, and AI.
Eclipse MosquittoSelf-hosted open-source MQTT broker for MQTT 5.0, 3.1.1 and 3.1 with TLS, WebSockets, bridging, ACLs and a C client library plus CLI pub/sub tools.
forqForq is a self-hosted, open-source message queue on SQLite running as a single binary or Docker container with admin UI, metrics, DLQ, and SDKs.
gearmandGearman is a self-hosted, open-source job server for parallel processing, load balancing, and cross-language function calls.
HiveMQ Community EditionHiveMQ Community Edition is an open-source Java MQTT broker with full MQTT 3.x and MQTT 5 support, TLS and WebSocket listeners, a Java extension SDK and an embedded mode.
logging-flumeOpen-source, self-hosted ingestion service from Apache: streaming agents with sources, channels and sinks move large amounts of log data to HDFS, Kafka or HBase.
logstashAn open-source server-side data pipeline that ingests, transforms and routes events with 200+ plugins; self-hosted via Docker, deb/rpm packages or tar/zip downloads.
NATSSelf-hosted NATS Server is an open-source messaging system for cloud-native applications. Runs on laptops to multi-region clusters with JetStream persistence.
nsqOpen-source self-hosted distributed messaging platform: push-based pub-sub over topics and channels, in-memory queues that spill to disk, plus the nsqadmin web UI.
RabbitMQOpen-source messaging and streaming broker for AMQP, MQTT, STOMP and streams, with a web UI and Prometheus metrics. Self-hosted via Docker or packages.
0 comments