Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure Gofr for Kafka with multi brokers cluster #1550

Open
wfrankoti opened this issue Mar 7, 2025 · 0 comments
Open

How to configure Gofr for Kafka with multi brokers cluster #1550

wfrankoti opened this issue Mar 7, 2025 · 0 comments

Comments

@wfrankoti
Copy link

Hello!

In production, several times is necessary to use kafka cluster, [IP1:port, IP2:port, IP3:port, ...]. In this moment, the Gofr version only receive one broker (en several examples localhost:9092). Please, increment this characteristic in new version

for example, configs/.env:

PUBSUB_BROKERS=10.100.10.11:9092,10.100.10.13:9092, 10.100.10.15:9092

brokers := strings.Split(PUBSUB_BROKERS, ",")
kafka.NewReader(kafka.ReaderConfig{
brokers: brokers,
...
}

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant