00:00

Apache Kafka vs Confluent Kafka

Last updated:

"Confluent Kafka" is not a different messaging system. Apache Kafka is the open-source project of the Apache Software Foundation. Confluent is a company that builds commercial products around Kafka: Confluent Platform, a distribution you run yourself, and Confluent Cloud, a fully managed service.

This tutorial explains what the open-source project includes, what Confluent adds, how licensing differs, and how to decide which option fits your team. The comparison is based on the official documentation of both projects; check current product pages for details that change often, such as editions and prices.

1. What Is Apache Kafka and What Is Confluent?

  • Apache Kafka (Apache License 2.0) includes the brokers, KRaft controllers, Java clients, Kafka Connect, Kafka Streams, MirrorMaker 2 and the command-line tools.
  • Confluent Platform is a self-managed distribution that bundles Apache Kafka with additional components, some under the Confluent Community License and some under a commercial enterprise license.
  • Confluent Cloud is a managed service that offers Kafka-compatible clusters, managed connectors, governance features and managed Apache Flink, operated by Confluent on public clouds.
Key point: Clients use the same Kafka protocol in every case. An application written with the Apache Kafka Java client can connect to Apache Kafka, Confluent Platform or Confluent Cloud by changing configuration, mainly connection and security settings.

2. What Confluent Adds

Apache Kafka and the components Confluent addsThe base layer is Apache Kafka: brokers and KRaft controllers, clients, Kafka Connect, Kafka Streams and MirrorMaker 2. Above it, community-licensed Confluent components: Schema Registry, REST Proxy, ksqlDB and many connectors. Above that, commercial features: Control Center, role-based access control, audit logs, Cluster Linking and self-balancing clusters. Confluent Cloud provides these as a managed service. Apache Kafka (Apache 2.0)brokers + KRaft · clients · Kafka Connect · Kafka Streams · MirrorMaker 2 · tiered storage · CLI tools Confluent Community License componentsSchema Registry · REST Proxy · ksqlDB · many connectors Commercial (enterprise) featuresControl Center · RBAC · audit logs · Cluster Linking · self-balancing clusters Confluent Cloudmanaged service
Confluent Platform is Apache Kafka plus community-licensed and commercial components; Confluent Cloud offers them as a service.

2.1 Schema Registry

Stores Avro, JSON Schema and Protobuf schemas and enforces compatibility rules when producers register new versions. Producers and consumers use Confluent's serializers, which add a small schema ID to every message. It is the most widely used Confluent component, also in clusters running plain Apache Kafka.

2.2 ksqlDB and Flink

ksqlDB runs SQL-like streaming queries on Kafka topics. In Confluent Cloud, Confluent now focuses on managed Apache Flink for streaming SQL.

2.3 Connectors

Confluent Hub lists hundreds of Kafka Connect connectors from Confluent and partners. They run on the standard Kafka Connect framework, so many also work with Apache Kafka, subject to their licences.

2.4 Operations and security features

Control Center (web UI), role-based access control, audit logs, Cluster Linking (replication between clusters without MirrorMaker), and self-balancing clusters are commercial features of Confluent Platform.

3. Side-by-Side Comparison

AspectApache KafkaConfluent PlatformConfluent Cloud
Who operates itYouYouConfluent
LicenceApache 2.0Apache 2.0 core + Community + enterprise licencesSubscription service
Schema managementNot included (use a separate registry)Schema RegistryManaged Schema Registry and governance
Cross-cluster replicationMirrorMaker 2MirrorMaker 2, Cluster LinkingCluster Linking
Tiered storageYes (KIP-405, production-ready since 3.9)Confluent tiered storageBuilt in
Management UIThird-party or noneControl CenterCloud console
SupportCommunityCommercial support availableIncluded in service
Kafka versionLatest Apache releaseEach release is based on an Apache Kafka versionManaged by Confluent

4. How to Choose

  • Apache Kafka suits teams with strong operations skills that want full control and no licence costs, or that use another managed Kafka service. Add an open-source schema registry and monitoring stack as needed.
  • Confluent Platform suits organisations that must run Kafka in their own data centres but want enterprise security, a management UI, Cluster Linking and vendor support.
  • Confluent Cloud suits teams that do not want to operate Kafka at all and value managed connectors, governance and Flink, accepting a usage-based subscription.

Because the protocol is the same, a common path is to develop against a local Apache Kafka (for example the Kafka CLI tools and a single broker) and run production on any of the three.

5. Common Misconceptions

  • "Confluent Kafka is a fork with a different API." Confluent products use Apache Kafka at their core and the same client protocol.
  • "Schema Registry is part of Apache Kafka." It is a Confluent component under the Confluent Community License; Apache Kafka has no built-in schema registry.
  • "Everything in Confluent Platform is open source." The core is Apache 2.0, but several components use the Confluent Community License, which restricts offering them as a competing SaaS, and enterprise features need a commercial licence.
  • "Moving between them requires code changes." Usually only connection, security and serializer settings change.

6. Conclusion

Apache Kafka is the open-source engine; Confluent Platform and Confluent Cloud are commercial offerings built on it, adding schema management, connectors, management tools, security features and, in the cloud, full operation of the service. Choose based on who should operate the cluster, which extra features you need, and your licensing and budget constraints. All three speak the same protocol, so your Kafka knowledge and client code carry over.

7. References