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

Allow lazily configuring brokers instead of using a hardcoded config #303

Merged
merged 1 commit into from
Aug 17, 2018

Conversation

thecodeboss
Copy link

Our Kafka hosts are not known when we are building a release using Distillery. Instead, we use service discovery to find the hosts and ports to use, and this needs to happen at runtime.

The :brokers config entry does not work well with this approach however - we find that we need to start our own Kafka worker processes at runtime and configure them, instead of just using the default application supervision tree.

This PR adds the ability to lazily configure the brokers during application start, instead of at build/release time.

@sourcelevel-bot
Copy link

Ebert has finished reviewing this Pull Request and has found:

  • 10 fixed issues! 🎉

You can see more details about this review at https://ebertapp.io/github/kafkaex/kafka_ex/pulls/303.

Copy link
Member

@joshuawscott joshuawscott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@joshuawscott joshuawscott merged commit 7b939a1 into kafkaex:master Aug 17, 2018
@thecodeboss thecodeboss deleted the brokers-callback branch August 29, 2018 00:33
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

Successfully merging this pull request may close these issues.

3 participants