liuys635

kafka消费指定每次最大消费消息数量 max.poll.records

一个属于new consumer的配置项,出现在0.10及其以上版本中。

#一次调用poll()操作时返回的最大记录数,默认值为500
spring.kafka.consumer.max-poll-records;

 Properties properties = new Properties();
  properties.put("max.poll.records",2);

分类:

技术点:

相关文章:

  • 2021-08-08
  • 2022-01-03
  • 2021-07-20
  • 2021-11-18
  • 2021-10-01
  • 2021-12-12
  • 2021-06-20
  • 2022-12-23
猜你喜欢
  • 2021-10-22
  • 2021-11-18
  • 2022-12-23
  • 2021-05-26
  • 2021-11-30
  • 2021-08-28
  • 2021-05-01
相关资源
相似解决方案