kafka concurrency and batch processing

Viewed 39

i'm using spring kafka. I have implemented a kafka consumer and i'm expecting more data from couple of topics. Imagine there are x number of partitions for each topics. So i'm planning to consume those messages with lowest latency and moderate high throughput.

I read some features like concurrency (@KafkaListener(topic = "test-topic", concurrency = "3")) and batch processing in kafka. So what is the proper option from above two options. Concurrency or batch processing or both.

If answer is both, is it possible to have a consumer that have concurrency as value higher than 1 and batch listener set as true with ConsumerConfig.MAX_POLL_RECORDS_CONFIG config value as number greater than 1

0 Answers
Related