doujiang24 / lua-resty-kafka

Lua kafka client driver for the Openresty based on the cosocket API
BSD 3-Clause "New" or "Revised" License
801 stars 274 forks source link

not supports Multiple different Kafka clusters? #117

Open sixtool opened 2 years ago

sixtool commented 2 years ago

I have two business kafka clusters with different groups One is to write logs One is to write business data producer:new does not support two connections to Kafka

xiaooloong commented 2 years ago
function _M.new(self, broker_list, producer_config, cluster_name)
    local name = cluster_name or DEFAULT_CLUSTER_NAME

不同的集群使用 cluster_name 区分,默认是 1。