Skip to content

ajax-osadchuk-r/kafka-receiver-back-pressure-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MINIMAL REPRODUCIBLE EXAMPLE FOR reactor/reactor-kafka#345

Prepare local env

Open terminal in root project dir and execute: cd ./env && docker-compose up -d.

This step is required to deploy Kafka local env. You can skip it, if you already have custom Kafka deployed, but make sure to update connection props if needed.

Steps to reproduce

  1. Open ReactorKafkaTestApplication class
  2. In kafkaReceiversRunner method choose one of reproducible Kafka event handling methods
  3. Start SpringBoot application
  4. Wait a bit till second receiver will be started
  5. Verify in logs DEBUG messages "Rebalancing; waiting for N records in pipeline", where N is much more grater than max.poll.records value. In my case it was ~260.
  6. Verify that some events were processed on both consumers after rebalance, you can check it searching by event key (it is unique for each event in this app) in next log messages:
    "RECEIVER_1:: Started handling of event#73"
    "RECEIVER_2:: Started handling of event#73"
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published