Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 724 Bytes

File metadata and controls

23 lines (16 loc) · 724 Bytes

Kafka Spring Cloud Sample

Run tests

./mvnw clean verify

Useful Links

To enable batch mode we need to set below property values

spring.cloud.stream.bindings.receive-in-0.consumer.batch-mode=true

# Forces consumer to wait 5 seconds before polling for messages, batch size depends on below properties
spring.cloud.stream.kafka.bindings.receive-in-0.consumer.configuration.fetch.max.wait.ms=5000
spring.cloud.stream.kafka.bindings.receive-in-0.consumer.configuration.fetch.min.bytes=1000000000
spring.cloud.stream.kafka.bindings.receive-in-0.consumer.configuration.max.poll.records=10000000