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

Introduce KafkaListener.threadsValue to allow for dynamic config #769

Merged
merged 10 commits into from
Aug 4, 2023
Merged

Introduce KafkaListener.threadsValue to allow for dynamic config #769

merged 10 commits into from
Aug 4, 2023

Conversation

guillermocalvo
Copy link
Contributor

Closes #689

@guillermocalvo guillermocalvo added type: improvement A minor improvement to an existing feature type: breaking Introduces a breaking change labels Jul 12, 2023
Copy link
Contributor

@jeremyg484 jeremyg484 left a comment

Choose a reason for hiding this comment

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

Looks good, though it is a breaking change as noted.

If we don't want to force another major version bump for something this simple, an alternate approach would be to keep the existing attribute as an int and add an alternate attribute to the annotation that is a String.

@sdelamo What do you think?

Copy link
Contributor

@sdelamo sdelamo left a comment

Choose a reason for hiding this comment

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

we cannot do a breaking change now. Too late. either we search for a workaround or we do it for the next major version of Micronaut Kafka

@dstepanov
Copy link
Contributor

I would keep it as an int and introduce threadsValue

@guillermocalvo guillermocalvo changed the title Handle KafkaListener.threads as a String to allow for dynamic config Introduce KafkaListener.threadsValue to allow for dynamic config Jul 19, 2023
@guillermocalvo guillermocalvo removed the type: breaking Introduces a breaking change label Jul 25, 2023
@guillermocalvo guillermocalvo dismissed sdelamo’s stale review July 25, 2023 12:21

Made it backward compatible.

We use only one field to read the value
@sdelamo sdelamo merged commit 968a4b4 into micronaut-projects:master Aug 4, 2023
3 checks passed
@guillermocalvo guillermocalvo deleted the 689-is-there-any-way-to-set-kafkalistenerthreads-using-config branch August 4, 2023 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: improvement A minor improvement to an existing feature
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Is there any way to set KafkaListener.threads() using config?
4 participants