Tue. Jul 7th, 2020

Apache Kafka 2.5 releases, distributed messaging subscription system

2 min read

Apache Kafka® is a distributed streaming platform. What exactly does that mean?

We think of a streaming platform as having three key capabilities:

  1. It lets you publish and subscribe to streams of records. In this respect, it is similar to a message queue or enterprise messaging system.
  2. It lets you store streams of records in a fault-tolerant way.
  3. It lets you process streams of records as they occur.

What is Apache Kafka good for?

It gets used for two broad classes of application:

  1. Building real-time streaming data pipelines that reliably get data between systems or applications
  2. Building real-time streaming applications that transform or react to the streams of data

To understand how Kafka does these things, let’s dive in and explore Kafka’s capabilities from the bottom up.

First a few concepts:

  • Kafka is run as a cluster on one or more servers.
  • The Kafka cluster stores streams of records in categories called topics.
  • Each record consists of a key, a value, and a timestamp.

Kafka has four core APIs:

  • The Producer API allows an application to publish a stream of records to one or more Kafka topics.
  • The Consumer API allows an application to subscribe to one or more topics and process the stream of records produced to them.
  • The Streams API allows an application to act as a stream processor, consuming an input stream from one or more topics and producing an output stream to one or more output topics, effectively transforming the input streams to output streams.
  • The Connector API allows building and running reusable producers or consumers that connect Kafka topics to existing applications or data systems. For example, a connector to a relational database might capture every change to a table.

In Kafka, the communication between the clients and the servers is done with a simple, high-performance, language agnostic TCP protocol. This protocol is versioned and maintains backward compatibility with the older version. We provide a Java client for Kafka, but clients are available in many languages.

Changelog v2.5

New Feature

  • [KAFKA-6049] – Kafka Streams: Add Cogroup in the DSL
  • [KAFKA-6144] – Allow serving interactive queries from in-sync Standbys
  • [KAFKA-7251] – Add support for TLS 1.3
  • [KAFKA-8843] – Zookeeper migration tool support for TLS
  • [KAFKA-9352] – unbalanced assignment of topic-partition to tasks
  • [KAFKA-9445] – Allow fetching a key from a single partition rather than iterating over all the stores on an instance
  • [KAFKA-9487] – Followup : KAFKA-9445(Allow fetching a key from a single partition); addressing code review comments

More

Download