When I set the flush_time parameter, say 10 seconds. When I sent this message to kafka, did kafka have to wait 10 seconds to receive the message? Because batch_size defaults to 200, it should be sent to kafka when it is 10 seconds or when batch messages reach 200 messages. But I have set this parameter now, kafka can still receive the message immediately, is it that I understand the problem? I want to set these parameters to deal with high concurrency scenarios, thank you for your advice!
Hello, everyone:
local async_producer = producer:new(broker_list, {producer_type = "async" ,flush_time = 100000})
local ok, err = async_producer:send("access-log", product_id, message)
When I set the flush_time parameter, say 10 seconds. When I sent this message to kafka, did kafka have to wait 10 seconds to receive the message? Because batch_size defaults to 200, it should be sent to kafka when it is 10 seconds or when batch messages reach 200 messages. But I have set this parameter now, kafka can still receive the message immediately, is it that I understand the problem? I want to set these parameters to deal with high concurrency scenarios, thank you for your advice!