Most teams that pick Kafka for their integrations do it for the protocol. Producers and consumers are simple to write, topics can be replayed, and every language and every integration tool has a client. Running the cluster is another matter, as anyone who has been on call for one will tell you, and most of that difficulty has little to do with the protocol itself.

It comes from the way brokers store data. The design dates from a time when the only durable place for data was the disk attached to the server, and the bill still follows from that choice.

Where the cost of a classic cluster comes from

A Kafka broker owns its partitions. They live on its local disk, and to survive the loss of that disk each partition is copied to two other brokers, usually in other availability zones.

The disks are therefore sized for the peak. Each broker needs room for its share of the retention plus some headroom, and everything is stored three times over. Every message published also crosses the network to reach its replicas, often between zones, and cloud providers charge for that traffic in proportion to what you publish.

Scaling has its own catch. A broker added to the cluster serves nothing until partitions are moved onto it, which means copying data while the cluster is already under load. And keeping the whole thing healthy, with its rebalancing, failed disks and under-replicated partitions, takes someone who knows it well.

None of this is a flaw in Kafka. It is what follows from keeping the data on the broker.

Brokers that hold no data

Durability is a solved problem elsewhere. An S3 bucket keeps its objects across several facilities, a PostgreSQL database has its replicas and its backups, and both are run by people who do nothing else. Most companies already pay for them.

So we let every broker of a cluster read from and write to the same store. A message is acknowledged once the store holds it. The broker still keeps its connections, its pending batches and some caches, but nothing it would miss after a restart.

CLASSIC KAFKA broker disk broker disk broker disk Partitions live on the disks and are copied between brokers. Adding a broker moves partitions. CAMEL MESSAGING SERVICE broker broker broker Shared store S3 bucket or PostgreSQL Brokers keep nothing on their own. The store replicates the messages. Adding a broker moves nothing.

What changes in practice

This is how the Camel Messaging Service is built. Adding a broker becomes an ordinary operation, since it can serve clients as soon as it starts, and removing one loses nothing. That makes autoscaling on CPU and memory something you can actually leave switched on.

A broker that crashes held nothing, and another one picks up its clients. There is no replication factor to choose either, because the copies are kept by the store at whatever level of durability you already chose for it.

The data of a cluster is identified by its name and the kind of its storage. If you delete a cluster and create it again with the same name on the same store, its topics, messages and users are still there.

The latency trade-off

A write is acknowledged when the store has it, and a bucket or a database is further away than a local disk, so each write takes a few more milliseconds. For most of what moves between enterprise systems, such as orders, invoices, stock movements, logs, telemetry or events replayed to rebuild a view, nobody will notice. A trading engine that counts in microseconds should look elsewhere.

The latency of a cluster also follows that of its store, so the bucket or the database belongs in the same region as the brokers. And while the service speaks the Kafka protocol, it is not Apache Kafka. Producers, consumers, consumer groups and offsets work with standard clients, but it is worth testing the client features an application relies on against a real cluster before moving it.

Where the messages live

Since the brokers keep nothing, the messages are in your store, in your account and your region, encrypted with your keys and backed up by your own policy. The brokers run in your environments, on our clusters or on yours. For a team that has to explain its data flows to an auditor or a regulator, that makes for a short explanation.

Setting it up in Camel X

The service is activated once per environment. Creating a cluster then comes down to choosing where messages are kept (an S3 bucket, a PostgreSQL database, or a local disk for a single broker) and how clients connect, with TLS using your own certificate and SCRAM sign-in.

Users are declared in the console. Each one gets a generated password, which can be rotated on a schedule, and a configuration that a Kafka client can use as it is.

bootstrap.servers=orders.team-a.svc:9092
security.protocol=SASL_SSL
sasl.mechanism=SCRAM-SHA-512
sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule \
  required username="billing" password="…";

Topics are declared the same way, with their partitions and their retention in time or in size, and clients only create their own when you allow it. An integration reads a topic with the Kafka component of Apache Camel, using the configuration of a user.

- route:
    id: orders-to-billing
    from:
      uri: kafka:orders
      parameters:
        brokers: "{{bootstrap.servers}}"
        securityProtocol: "{{security.protocol}}"
        saslMechanism: "{{sasl.mechanism}}"
        saslJaasConfig: "{{sasl.jaas.config}}"
      steps:
        - to: "https://billing.example.com/invoices"

Roles, telemetry and revisions work as they do for the integrations and APIs around it, in the same console.

Teams have long paid for Kafka's disks while choosing it for its protocol. Handing durability to a store built for it keeps the part they wanted, at the cost of a few milliseconds that integration workloads can easily afford. The documentation explains how the service works, and the product page gives an overview.