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

Ability to create new bindings at runtime via the BindingLifecycleController #3086

Open
jmannix-ot opened this issue Feb 25, 2025 · 0 comments

Comments

@jmannix-ot
Copy link

We discussed this previously on issues #3071 and #3077.

In summary, we have a library which needs to both modify existing Kafka bindings and generate new Kafka bindings at runtime during application initialisation.

Previously we were fetching the list of bindings by auto-wiring KafkaExtendedBindingProperties and calling getBindings(). Then we modified and added to the list of bindings before updating them by calling setBindings().

We encountered an issue when upgrading to spring-cloud-stream 4.1.4 caused by the change for #2974. The addition of @validated to AbstractExtendedBindingProperties broke the auto-wiring of KafkaExtendedBindingProperties.

After some discussion we agreed that the better way to handle our use case was to use BindingsLifecycleController, and @olegz made some changes for us to make it possible to fetch and modify bindings.

However, we still need a way to generate new bindings at runtime. And that is currently not supported by BindingsLifecycleController.

@olegz olegz added this to the 4.3.0 milestone Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants