<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/what-s-new-in-spring-for-apache-kafka-4-by-tim-van-baarsen-spring-i-o-2026-ima6bjyli" -->

---
title: What’s new in Spring for Apache Kafka 4? by Tim van...
description: A conference talk walks through migrating a Spring Boot 3.5/Spring Kafka 3 application to Spring Boot 4 and Spring Kafka 4 using OpenRewrite recipes, then...
canonical: https://daily.dev/posts/what-s-new-in-spring-for-apache-kafka-4-by-tim-van-baarsen-spring-i-o-2026-ima6bjyli
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: What’s new in Spring for Apache Kafka 4? by Tim van Baarsen @ Spring I/O 2026 | daily.dev
og:description: A conference talk walks through migrating a Spring Boot 3.5/Spring Kafka 3 application to Spring Boot 4 and Spring Kafka 4 using OpenRewrite recipes, then...
og:url: https://daily.dev/posts/what-s-new-in-spring-for-apache-kafka-4-by-tim-van-baarsen-spring-i-o-2026-ima6bjyli
og:image: https://api.daily.dev/og/posts/imA6bJyli.png
og:image:alt: What’s new in Spring for Apache Kafka 4? by Tim van Baarsen @ Spring I/O 2026
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# What’s new in Spring for Apache Kafka 4? by Tim van Baarsen @ Spring I/O 2026

**[Spring I/O](https://daily.dev/sources/springio)** · 51 min read · 0 upvotes · 0 comments

## Summary

A conference talk walks through migrating a Spring Boot 3.5/Spring Kafka 3 application to Spring Boot 4 and Spring Kafka 4 using OpenRewrite recipes, then demos two major Kafka 4 features: share groups (Kafka queues, KIP-932) which let consumers scale beyond the number of partitions with per-message acknowledgement, and the new broker-side consumer rebalance protocol (KIP-848) that enables faster, non-blocking rolling upgrades. Live demos cover migration, share group configuration and acknowledgement modes, and a zero-downtime rolling migration from the classic to the new consumer protocol, alongside current limitations of both features (no auto-configuration, no metrics/tracing for share groups, no custom assignment strategies with the new protocol).

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=742i_bpOEa8>

## Questions this post answers

### What is the minimum Kafka client version required to work with Spring Kafka 4?

Spring Kafka 4 requires a minimum Java Kafka client version of 2.1.0, which corresponds to Spring Boot 2.2.0 from October 2019. Applications on that old client version can still connect to a newly released Kafka 4.2 broker, though they cannot use any of the new Kafka 4 features like share groups or the new rebalance protocol.

_Track Kafka client and Spring Boot compatibility baselines on daily.dev before planning a Kafka 4 upgrade._

### How do Kafka share groups (queues) differ from normal Kafka consumer groups?

Share groups let multiple consumers read from multiple partitions concurrently, allowing scaling beyond the number of partitions, unlike classic consumer groups where each partition is assigned to exactly one consumer. Messages are acknowledged individually and out of order, with states like available, acquired, acknowledged, released, or archived, retried up to five times before being permanently rejected. Trade-offs include no ordering guarantees, no follower fetching, no static assignment, no regex topic subscription, and no batch consumption API.

_Compare share groups against classic consumer groups on daily.dev before choosing a Kafka scaling strategy._

### How do I opt into Kafka's new consumer rebalance protocol in Spring Kafka 4?

Set the group protocol configuration property to 'consumer' instead of the default 'classic' on the Spring Kafka consumer application; this is backward compatible and can be rolled out instance by instance without downtime, with the broker automatically detecting and converting the group, and reverting if an old-protocol consumer rejoins. The new protocol moves assignment logic to the broker, eliminating stop-the-world rebalances, but drops support for custom client-side assignment strategies and requires new metrics for observability.

_Follow Kafka rebalance protocol migration steps on daily.dev when planning a zero-downtime consumer upgrade._

## Similar posts on daily.dev

- [Apache Kafka 4.3 released: 25 KIPs, Kafka Streams, Share Group Controls, Broker Isolation, and more](https://daily.dev/posts/apache-kafka-4-3-released-25-kips-kafka-streams-share-group-controls-broker-isolation-and-more-thqzbnvv6) · Confluent Blog · 2 upvotes · 0 comments
- [How Apache Kafka flexed to support queues](https://daily.dev/posts/how-apache-kafka-flexed-to-support-queues-ytdb29stz) · InfoWorld · 1 upvotes · 0 comments
- [The Spring Team on Spring Framework 7 and Spring Boot 4](https://daily.dev/posts/the-spring-team-on-spring-framework-7-and-spring-boot-4-ekyap8jua) · InfoQ · 8 upvotes · 0 comments
- [Apache Kafka 4.2.0 Released: Share Groups, Streams & More](https://daily.dev/posts/apache-kafka-4-2-0-released-share-groups-streams-more-0dctaidm9) · Confluent Blog · 17 upvotes · 0 comments

---

Tags: [#spring-boot](https://daily.dev/tags/spring-boot), [#apache-kafka](https://daily.dev/tags/apache-kafka)

[View this post on daily.dev](https://daily.dev/posts/what-s-new-in-spring-for-apache-kafka-4-by-tim-van-baarsen-spring-i-o-2026-ima6bjyli)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"What’s new in Spring for Apache Kafka 4? by Tim van Baarsen @ Spring I/O 2026","url":"https://daily.dev/posts/what-s-new-in-spring-for-apache-kafka-4-by-tim-van-baarsen-spring-i-o-2026-ima6bjyli","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/what-s-new-in-spring-for-apache-kafka-4-by-tim-van-baarsen-spring-i-o-2026-ima6bjyli"},"datePublished":"2026-09-27T07:26:31.670Z","dateModified":"2026-09-27T07:27:26.000Z","description":"A conference talk walks through migrating a Spring Boot 3.5/Spring Kafka 3 application to Spring Boot 4 and Spring Kafka 4 using OpenRewrite recipes, then...","image":"https://i.ytimg.com/vi/742i_bpOEa8/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/742i_bpOEa8/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Spring I/O","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Spring I/O","logo":"https://media.daily.dev/image/upload/s--e-TcwM9B--/f_auto,q_auto/v1790493985/logos/springio?_a=BAMAMicg0","url":"https://daily.dev/sources/springio"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/what-s-new-in-spring-for-apache-kafka-4-by-tim-van-baarsen-spring-i-o-2026-ima6bjyli","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"spring-boot,apache-kafka","timeRequired":"PT51M","video":{"@type":"VideoObject","name":"What’s new in Spring for Apache Kafka 4? by Tim van Baarsen @ Spring I/O 2026","description":"A conference talk walks through migrating a Spring Boot 3.5/Spring Kafka 3 application to Spring Boot 4 and Spring Kafka 4 using OpenRewrite recipes, then...","thumbnailUrl":"https://i.ytimg.com/vi/742i_bpOEa8/sddefault.jpg","uploadDate":"2026-09-27T07:26:31.670Z","duration":"PT51M","url":"https://api.daily.dev/r/imA6bJyli","embedUrl":"https://www.youtube.com/embed/742i_bpOEa8"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Spring I/O","item":"https://daily.dev/sources/springio"},{"@type":"ListItem","position":3,"name":"What’s new in Spring for Apache Kafka 4? by Tim van Baarsen @ Spring I/O 2026"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/what-s-new-in-spring-for-apache-kafka-4-by-tim-van-baarsen-spring-i-o-2026-ima6bjyli#faq","mainEntity":[{"@type":"Question","name":"What is the minimum Kafka client version required to work with Spring Kafka 4?","acceptedAnswer":{"@type":"Answer","text":"Spring Kafka 4 requires a minimum Java Kafka client version of 2.1.0, which corresponds to Spring Boot 2.2.0 from October 2019. Applications on that old client version can still connect to a newly released Kafka 4.2 broker, though they cannot use any of the new Kafka 4 features like share groups or the new rebalance protocol. Track Kafka client and Spring Boot compatibility baselines on daily.dev before planning a Kafka 4 upgrade."}},{"@type":"Question","name":"How do Kafka share groups (queues) differ from normal Kafka consumer groups?","acceptedAnswer":{"@type":"Answer","text":"Share groups let multiple consumers read from multiple partitions concurrently, allowing scaling beyond the number of partitions, unlike classic consumer groups where each partition is assigned to exactly one consumer. Messages are acknowledged individually and out of order, with states like available, acquired, acknowledged, released, or archived, retried up to five times before being permanently rejected. Trade-offs include no ordering guarantees, no follower fetching, no static assignment, no regex topic subscription, and no batch consumption API. Compare share groups against classic consumer groups on daily.dev before choosing a Kafka scaling strategy."}},{"@type":"Question","name":"How do I opt into Kafka's new consumer rebalance protocol in Spring Kafka 4?","acceptedAnswer":{"@type":"Answer","text":"Set the group protocol configuration property to 'consumer' instead of the default 'classic' on the Spring Kafka consumer application; this is backward compatible and can be rolled out instance by instance without downtime, with the broker automatically detecting and converting the group, and reverting if an old-protocol consumer rejoins. The new protocol moves assignment logic to the broker, eliminating stop-the-world rebalances, but drops support for custom client-side assignment strategies and requires new metrics for observability. Follow Kafka rebalance protocol migration steps on daily.dev when planning a zero-downtime consumer upgrade."}}]}
```

