Repository navigation
Replies: 1 comment 2 replies
|
For this single-broker Share Consumer example, configure the broker as well as the client and group. Pin the broker image instead of using The internal share.coordinator.state.topic.replication.factor=1
share.coordinator.state.topic.min.isr=1Configure The default This consolidates the broker-side detail added in my follow-up. Reference: Spring Kafka Share Consumers. |
Uh oh!
There was an error while loading. Please reload this page.
I tried to test the new Share Consumer feature, but after reading the doc, and created an example, I can not make it work as expected.
The example project: https://github.com/hantsy/spring7-sandbox/tree/master/boot-kafka-shared-consumer
My example is based on Spring Boot 4.1.0-RC1, and I set the kafka.version to 4.2.0 to use the latest Kafka clients, and also use
kafka:latestdocker image to ensure Kafka 4.2 in testcontainers.The configuration class:
And used the following test to verify the functionalities.
When running the tests, the words are sent successfully, but not received by the listener.
The
GreetingListeneris a simple Kafka listener.All reactions