-
Notifications
You must be signed in to change notification settings - Fork 108
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
Kafka equivalent to HttpRequest's @RequestScope
#1017
Comments
@RequestScope
@RequestScope
probably, would require implementing a custom scope and binding the scope to a thread. Could probably use AbstractConcurrentCustomScope |
I'll do some digging on it at some point this week if I get time, thanks for the lead as to where to look |
I did spend some time today digging through this with mostly more questions than answers (wip branch for reference) , but to document some notes / ideas / findings / etc about it:
|
random weekend brain thoughts that I am putting down to not forget: could it be ThreadLocal but then also have a "refresh" function on the bean that is called every poll loop? |
Feature description
We have the ability to make a
@RequestScope
bean in Micronaut which ties a bean to the current HttpRequest the server is executing on, would it be possible to do something similar for a Kafka message/batch of messages/etc?The text was updated successfully, but these errors were encountered: