I am using Spring Cloud Stream 3.1.2
for KafkaStreams
. The programming models are:
- Functional Programming
- Imperative Programming
The latter one uses annotations as all the other annotations that the Spring is provided to be used. But, it is mentioned that
Starting with 3.1.0 version of the binder, we recommend using the functional programming model described above for Kafka Streams binder based applications. The support for StreamListener is deprecated starting with 3.1.0 of Spring Cloud Stream.
As I think the older model is more readable (at least for me). Can anyone explain why it is decided to be deprecated in favor of functional programming and will it be removed?