Search code examples
restapache-kafkakafka-producer-api

Setting Kafka Producer Properties in REST Proxy


Hi does anyone have an example of having a call to Kafka REST Proxy to POST a message to topic, and to change a producer property as well. I want to change max.request.size to like 5 MB. I would like to do it on a per call basis and not have to modify the .properties file ( I know that doesn't make total sense because its supposed to be per topic, but I have a lot of topics). I think it must be pretty simple but I just can't find an example on the internet.


Solution

  • Based on the API I don't believe this is possible per-request.

    Maybe you could just run an additional instance of the REST proxy to serve this particular use-case?