I am trying to understand how the new functional model of Spring Cloud Streams
works and how the configuration actually works under the hood.
One of the properties I am unable to figure out is spring.cloud.stream.source
.
What does this property actually signify ?
I could not understand the documentation :
Note that preceding example does not have any source functions defined (e.g., Supplier bean) leaving the framework with no trigger to create source bindings, which would be typical for cases where configuration contains function beans. So to trigger the creation of source binding we use spring.cloud.stream.source property where you can declare the name of your sources. The provided name will be used as a trigger to create a source binding.
What if I did not need a Supplier
?
What exactly is a source binding and why is it important ?
What if I only wanted to produce to a messaging topic ? Would I still need this property ?
I also could not understand how it is used in the sample here.