Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

693
Views
How to override property in spring boot kafka project

How can i add/override max.poll.interval.ms and max.poll.records in my .yml file in spring boot Kafka micro-service project

What i tried is but it does not work

Kafka:
 consumer: 
  max-poll-records: 200
  max-poll-interval-ms: 600000ms
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Must be like this:

spring:
  kafka:
    consumer:
      max-poll-records: 200
      properties:
        max.poll.interval.ms: 600000

See Spring Boot docs: https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#messaging.kafka.additional-properties

The max.poll.interval.ms is not exposed into KafkaProperties, therefore its original name from the ConsumerConfig has to be used under that properties section. Note: you also cannot use ms since Temporal conversion is only done for exposed properties.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!