I need to disable publication and subscription on events for development, but I can't find some configuration properties/other solution for this. How can I do this?
Possible solution: to create autoconfiguration with @EnableBinding
on some property set and in a case of disabled replace all binding interfaces with generated no-op stubs. But maybe more simple solution exist?
I am facing a similar situation where our code will be deployed to production. But these need to be disabled until we have other teams ready to publishing there messages, so we want to tell spring cloud stream to not to initialize any beans until we specify specific configuration.
I tried to look at the what @Vinicius menthod .. but looks that only provides a way to stopping, resuming channels once the application is started.
Is there some thing we can specific to stop these beans while starting an application.
Selective start and stop of bindings is currently not supported. We are tracking this to be a 2.0 feature. You can track its progress here: https://github.com/spring-cloud/spring-cloud-stream/issues/763
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With