Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Support configuring Kafka bootstrap servers both from a single server or multiple servers #57

@smoya

Description

@smoya

Current configuration is limited to just one server, which is used as Kafka bootstrap server. For example:

servers:
    asyncapi-kafka-test:
        url: 'asyncapi-kafka-test-asyncapi-8f90.aivencloud.com:20472'
        protocol: kafka-secure

The event-gateway gets the value of url field and uses it as the only Kafka bootstrap server, mapping it to the same port but locally, meaning :20472 (can be changed through extension). Then it opens a new local port dynamically for each discovered broker (if there are).

However, users might want to configure several Kafka bootstrap servers (actually recommended).

There are several possibilities:

1. To group servers of the same cluster

There is a RFC0 implementation for this: asyncapi/spec#465.

We could support it from day one via extensions: x-cluster field or similar. Or rather add it as official change in the Kafka binding.

2. To add a new extension to the existing server

Support only one server, and add the rest of bootstrap servers in a new extension like x-extra-bootstrap-servers.

I'm completely leaning towards the first. But open to suggestions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions