Tu banner alternativo

Apache Kafka

Apache Kafka is a topic of great relevance today, since it has a direct impact on our lives. Throughout history, Apache Kafka has been the object of study, debate and controversy, and it is no wonder, since its importance is undeniable. In this article, we will explore various facets of Apache Kafka, analyzing its involvement in different aspects of society. From its origin to its projection in the future, including its influence on culture, politics and the economy, we will delve into an in-depth analysis that will allow us to better understand the importance of Apache Kafka in today's world.

Tu banner alternativo
Apache Kafka[1]
Original authorLinkedIn
DeveloperApache Software Foundation
Initial releaseJanuary 2011 (2011-01)[2]
Stable release
4.1.1[3] Edit this on Wikidata / 12 November 2025
Repository
Written inScala, Java
Operating systemCross-platform
TypeStream processing, Message broker
LicenseApache License 2.0
Websitekafka.apache.org Edit this at Wikidata

Apache Kafka is a distributed event store and stream-processing platform. It is an open-source system developed by the Apache Software Foundation written in Java and Scala. The project aims to provide a unified, high-throughput, low-latency platform for handling real-time data feeds. Kafka can connect to external systems (for data import/export) via Kafka Connect, and provides the Kafka Streams libraries for stream processing applications. Kafka uses a binary TCP-based protocol that is optimized for efficiency and relies on a "message set" abstraction that naturally groups messages together to reduce the overhead of the network roundtrip. This "leads to larger network packets, larger sequential disk operations, contiguous memory blocks which allows Kafka to turn a bursty stream of random message writes into linear writes."[4]

History

Kafka was originally developed at LinkedIn, and was subsequently open sourced in early 2011. Jay Kreps, Neha Narkhede and Jun Rao helped co-create Kafka.[5] Graduation from the Apache Incubator occurred on 23 October 2012.[6] Jay Kreps chose to name the software after the author Franz Kafka because it is "a system optimized for writing", and he liked Kafka's work.[7]

Operation

Apache Kafka is a distributed log-based messaging system that guarantees ordering within individual partitions rather than across the entire topic. Unlike queue-based systems, Kafka retains messages in a durable, append-only log, allowing multiple consumers to read at different offsets. Kafka uses manual offset management, giving consumers control over retries and failure handling. If a consumer fails to process a message, it can delay committing the offset, preventing further progress in that partition while other partitions remain unaffected. This partition-based design enables fault isolation and parallel processing while allowing ordering to be maintained within partitions, depending on consumer handling.[8][page needed]

In 2025, Apache Kafka introduced "Queues for Kafka",[9] adding share groups as an alternative to consumer groups. This feature enables queue-like semantics where consumers can cooperatively process records from the same partitions, with individual message acknowledgment and delivery tracking. Unlike traditional consumer groups where partitions are exclusively assigned, share groups allow the number of consumers to exceed partition count, making it ideal for work-queue patterns while maintaining Kafka's durability and scalability benefits. This development addresses the common challenge of "over-partitioning" that many Kafka users face.[citation needed]

Kafka APIs

Connect API

Kafka Connect (or Connect API) is a framework to import/export data from/to other systems.[10] It was added in the Kafka 0.9.0.0 release and uses the Producer and Consumer API internally. The Connect framework itself executes so-called "connectors" that implement the actual logic to read/write data from other systems.[citation needed]

Streams API

Kafka Streams (or Streams API) is a stream-processing library written in Java. It was added in the Kafka 0.10.0.0 release. The library allows for the development of stateful stream-processing applications that are scalable, elastic, and fully fault-tolerant. The main API is a stream-processing domain-specific language (DSL) that offers high-level operators like filter, map, grouping, windowing, aggregation, joins, and the notion of tables. Additionally, the Processor API can be used to implement custom operators for a more low-level development approach. The DSL and Processor API can be mixed, too. For stateful stream processing, Kafka Streams uses RocksDB to maintain local operator state. Because RocksDB can write to disk, the maintained state can be larger than available main memory. For fault-tolerance, all updates to local state stores are also written into a topic in the Kafka cluster. This allows recreating state by reading those topics and feed all data into RocksDB.[11]

See also

References

  1. ^ "Apache Kafka at GitHub". github.com. Archived from the original on 16 January 2023. Retrieved 5 March 2018.
  2. ^ "Open-sourcing Kafka, LinkedIn's distributed message queue". Archived from the original on 26 December 2022. Retrieved 27 October 2016.
  3. ^ "Release 4.1.1". 12 November 2025. Retrieved 13 November 2025.
  4. ^ "Efficiency". kafka.apache.org. Retrieved 2019-09-19.
  5. ^ Li, Steven. "He Left His High-Paying Job At LinkedIn And Then Built A $4.5 Billion Business In A Niche You've Never Heard Of". Forbes. Retrieved 2025-12-02.
  6. ^ "Apache Incubator: Kafka Incubation Status". Archived from the original on 2022-10-17. Retrieved 2022-10-17.
  7. ^ Narkhede, Neha; Shapira, Gwen; Palino, Todd (2017). "Chapter 1". Kafka: The Definitive Guide. O'Reilly. ISBN 978-1-4919-3611-5. People often ask how Kafka got its name and if it has anything to do with the application itself. Jay Kreps offered the following insight: "I thought that since Kafka was a system optimized for writing using, a writer's name would make sense. I had taken a lot of lit classes in college and liked Franz Kafka."
  8. ^ Narkhede, Neha; Shapira, Gwen; Palino, Todd (2017). Kafka: the definitive guide: real-time data and stream processing at scale. Sebastopol, CA: O'Reilly Media. ISBN 978-1-4919-3616-0. OCLC 933521388.
  9. ^ "KIP-932: Queues for Kafka - Apache Kafka - Apache Software Foundation". cwiki.apache.org. Retrieved 2025-12-02.
  10. ^ "Apache Kafka Documentation: Kafka Connect". Apache.
  11. ^ "Kafka Connect – Import Export for Apache Kafka". SoftwareMill. Retrieved 2025-05-08.