blog by OSO

Understanding Apache Kafka: When NOT to Use Apache Kafka?

Sion Smith
Sion Smith 4 July 2023
understanding-apache-kafka

Updated November 2026: We have rewritten this guide into a question-led format, added a quick decision table and FAQs, and checked the claims against the current Apache Kafka documentation.

Apache Kafka is the de facto standard for data streaming, but it is not the right answer to every integration problem. Teams that treat it as a universal hammer end up with expensive clusters doing jobs that a database, an API gateway or a plain queue would do better.

This guide explains what Kafka is genuinely good at, then walks through the scenarios where you should not use it on its own, and what to pair it with instead.

When should you use Apache Kafka?

You should use Apache Kafka when you need to move and process large volumes of events reliably, keep them for replay, and let many independent systems consume the same data without coupling them together.

Kafka is a distributed, partitioned, replicated commit log. That design gives you:

  • High throughput at low latency: millions of messages per second across a cluster for both transactional and analytical workloads.
  • Durable storage and replay: consumers read at their own pace and can rewind to reprocess history, which also absorbs slow consumers.
  • Decoupling: producers and consumers know only about topics, not about each other.
  • Connectivity: Kafka Connect links databases, SaaS tools and cloud services without custom glue code.
  • Stream processing: continuous processing of data in motion with Kafka Streams or Apache Flink.

If you are new to the building blocks, start with our Kafka basics and key concepts guides. Operating Kafka well is a separate skill; our Kafka performance best practices covers it in detail.

When should you not use Apache Kafka?

You should not use Apache Kafka on its own when the job is querying, request-response, large payloads, hard real-time guarantees or direct connections to very large numbers of clients.

ScenarioWhy Kafka alone is a poor fitWhat to use alongside it
Complex analytics and ad-hoc queriesKafka stores ordered logs, not indexed tables built for arbitrary queriesAn analytics database, data warehouse or time series store fed by Kafka
Millions of direct clientsKafka brokers are not designed to terminate huge numbers of device or browser connectionsMQTT brokers or REST proxies in front of Kafka
API managementKafka has no developer portal, rate limiting or request-response modelAn API gateway, with Kafka as the streaming layer behind it
Large files and messagesBrokers cap message size (about 1 MB by default) and large payloads hurt throughputThe claim check pattern: store the file elsewhere, send a reference through Kafka
IoT as a whole platformKafka does not manage devices, protocols or firmwareAn IoT platform or MQTT layer integrated through Kafka Connect
Hard real-time or safety-critical controlKafka offers low latency, not deterministic timingPurpose-built real-time systems

Key takeaway: Kafka is a streaming backbone, not a database, gateway or device platform, so the best designs pair it with the right tool at the edges.

Is Kafka a replacement for an analytics database?

No. Kafka is durable and supports interactive queries through tools built on top of it, but it is not designed to replace databases built for complex analytics.

Systems such as relational databases, time series databases, document stores and columnar warehouses are better suited to ad-hoc queries and aggregations over history. The common pattern is to use Kafka as the real-time integration layer that feeds those systems, so each one stays current without point-to-point pipelines. If you are bringing change data from a database into Kafka, our Kafka services team can help design it.

Can Kafka handle large messages and millions of clients?

Kafka handles large numbers of producers and consumers very well, but it should not be your direct proxy for millions of end-user devices, and it is a poor home for large files.

For connected cars, gaming and mobility services, put a lightweight protocol layer such as MQTT or a REST proxy at the edge and let it write into Kafka. For large files, use the claim check pattern: keep the file in object storage and publish a small event that points to it. There are narrow exceptions, such as splitting large legacy files into records or landing files in a data lake, but they should be deliberate choices rather than the default.

Is Kafka the right choice for a simple queue or a small project?

Often it is not. If you need a handful of messages a minute, per-message acknowledgement with complex routing, or a team with no appetite to run distributed infrastructure, a simpler broker or a managed service is usually cheaper.

Kafka now runs without ZooKeeper using KRaft, which removes one system to operate, but you still own capacity planning, upgrades, security and monitoring. A managed Kafka service or ongoing Kafka support can take most of that load away if streaming is the right model but running it is not your core business.

Frequently asked questions

When should you use Apache Kafka?

Use Apache Kafka when you need to move high volumes of events reliably, retain them for replay and let many systems consume the same data independently. It suits event-driven architectures, data integration, log and metrics pipelines, and stream processing.

When should you not use Apache Kafka?

Avoid Kafka on its own for complex analytical queries, API management, very large files, hard real-time or safety-critical systems, and direct connections from millions of clients. In each case, pair it with a database, gateway, object store or edge protocol layer instead.

What are the main limitations of Kafka?

Kafka’s main limitations are operational complexity, no built-in ad-hoc querying, a default message size limit of about 1 MB, and no deterministic real-time guarantees. Partition counts also need planning because they set the ceiling on consumer parallelism.

Can Kafka replace a message queue?

Kafka can replace a traditional queue for many streaming workloads, and it adds replay and multiple independent consumers. For simple task queues with per-message routing and acknowledgement, a dedicated queue can be simpler to run.

Is Kafka suitable for IoT projects?

Kafka is widely used inside IoT architectures to ingest, process and integrate device data, but it is not an IoT platform itself. Devices usually connect through MQTT or HTTP, and Kafka Connect moves the data into Kafka.

Do you need ZooKeeper to run Kafka?

No. Current Kafka versions run in KRaft mode, where the brokers manage cluster metadata themselves, and ZooKeeper support was removed in Apache Kafka 4.0.

Need help with Apache Kafka?

Talk to OSO’s Kafka engineers about your next step.

CONTACT US
OSO
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.