Miget is now Lyngbak. Same platform, same plans, same API.Why the name →

Startups get $300 or more in Lyngbak credits.Apply →

Moving production infrastructure? We migrate it for you, free.Talk to us →

PricingEnterpriseDashboard
Start for Free
← All templates

Apache Kafka

3-broker Apache Kafka cluster in KRaft mode (no ZooKeeper) with Kafbat UI - durable defaults, official images, env-only config.

7 GiB

4 services, 30 GB disk

$44/mo

flat resource

$0.087/h

Usage Billing

What is Apache Kafka?

Apache Kafka is the de-facto standard event streaming platform - and one of the most expensive things to buy as a managed service. This template runs a real 3-node cluster in KRaft mode (combined broker+controller, no ZooKeeper) using the official apache/kafka image, configured entirely through environment variables. No custom images, no config files to maintain.

Topic defaults are durable out of the box: replication factor 3 and min.insync.replicas=2, so a broker can die without losing acknowledged writes. Each broker keeps its log dirs on its own persistent volume. Kafbat UI ships as the public entrypoint for browsing topics, consumer groups, and messages - the brokers themselves stay private on the project network.

Producers and consumers in the same Lyngbak project connect with bootstrap servers kafka-1:9092,kafka-2:9092,kafka-3:9092 - no TLS/SASL gymnastics, the project network is the boundary.

What you get

  • 3 combined broker+controller nodes in KRaft mode - no ZooKeeper to run or patch
  • Official apache/kafka image, configured 100% via environment variables
  • Durable defaults: replication factor 3, min.insync.replicas=2
  • Kafbat UI for topics, consumer groups, lag and message inspection
  • Per-broker persistent volumes (10 GB each)
  • Runs identically with plain docker compose up on a laptop

How it runs on Lyngbak

ServiceRolePublic
kafka-1..3combined broker+controller (Kafka API :9092, KRaft :9093)no
kafka-uiKafbat UI web consoleyes (HTTP)

Sizing and billing

2 GiB per broker covers a 1 GiB JVM heap plus page-cache headroom - Kafka loves page cache, so do not starve it. 10 GB disk per broker is a starting point; resize volumes as retention grows.

Hobby resource$44/mo2 vCPU, 4 GiB + 3 GiB RAM add-on, 80 GiB disk, shared CPU
Pro resource$64.75/mo2 vCPU, 4 GiB + 3 GiB RAM add-on, 30 GiB disk incl. add-on, dedicated CPU
Usage Billing, shared CPU$0.087/h3.5 vCPU, 7 GiB reserved. $63/mo for a full month, billed by the second.
Usage Billing, dedicated CPU$0.19/h4 vCPU, 8 GiB reserved. $136/mo for a full month, billed by the second.

A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 29.3 GiB of volumes cost $0.15 per GiB a month ($4.40/mo) for as long as they exist. One workspace can use both. See pricing

Compared with the managed service

ServicePlanPriceIncludes
Confluent CloudBasic (usage-based)$120/mosmall always-on workload (~2 eCKU avg + transfer + storage); Standard tier from ~$385/mo
AWS MSK3× kafka.t3.small$130/mosmallest 3-broker provisioned cluster + EBS storage; AWS’s own sizing example (3× m7g.large) lands ~$607/mo

Prices from each vendor's pricing page, June 2026.

Run it locally first

The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.

Questions

How much does it cost to self-host Kafka vs Confluent Cloud or MSK?

This 3-broker cluster fits in 8 GiB, on a flat resource or by the second on Usage Billing. Managed Kafka services such as Confluent Cloud and MSK bill a comparable always-on 3-broker cluster by the hour, plus storage, before egress. An 8 GiB resource also still has room for your producer/consumer apps.

Does this Kafka setup use ZooKeeper?

No. The cluster runs in KRaft mode - each node is a combined broker and controller, which is the supported, ZooKeeper-free architecture in modern Kafka. Fewer moving parts, fewer pods, faster controller failover.

Can a broker fail without data loss?

Yes, for acknowledged writes: topics default to replication factor 3 with min.insync.replicas=2, so the cluster tolerates one broker outage while still accepting produces with acks=all.

How do my applications connect to this Kafka cluster?

Apps deployed in the same Lyngbak project use kafka-1:9092,kafka-2:9092,kafka-3:9092 as bootstrap servers - plain PLAINTEXT on the private project network. The brokers are never exposed to the internet; only the Kafbat UI gets a public domain.

Can I scale this cluster to more brokers?

Yes - add a kafka-4 service block (cluster nodes need stable identity and their own volume, so you scale by adding blocks, not replicas) and include it in the controller quorum voters list.

More in Streaming & Messaging

NATS Cluster

3-node cloud-native messaging - pub/sub, request/reply, and JetStream streams - at ~30 MB per node.

Open the template →

RabbitMQ

3-node RabbitMQ 4.x cluster, quorum-queue ready, with the management UI - clusters itself on first boot.

Open the template →

Redpanda

3-broker Redpanda cluster - Kafka-compatible streaming without the JVM or ZooKeeper, plus Redpanda Console.

Open the template →
Apache Kafka: 3-node KRaft cluster with Docker Compose | Lyngbak (formerly Miget)