Skip to content

feat: As a user, I want to set more than one broker in kafka-logger plugin, so that we can push message to them at a time #7998

Description

@starsz

Description

Hello, folks,
When I use "kafka-logger" plugin in Apache APISIX. I found that we can't set up more than one broker with the same host.

The reason is that we use a table to store the broker list, but the key is the host (which will be the same if we deploy more Kafka on one node), so I think we should support it.

By the way, the docs are incorrect: https://apisix.apache.org/docs/apisix/next/plugins/kafka-logger/#enabling-the-plugin

"broker_list" :
  {
    "127.0.0.1":9092,
    "127.0.0.1":9093
  },

What I want is:

"broker_list" :
[
    {
        "host":"127.0.0.1",
        "port":9092
    },
    {
        "host":"127.0.0.1",
        "port":9093
    }
]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions