spring-cloud-stream icon indicating copy to clipboard operation
spring-cloud-stream copied to clipboard

Application local error handling: Service Activator using channel label

Open tooms4444 opened this issue 7 years ago • 4 comments

For application local error handling, service activators have to be configured with channel destination names. That is severely breaking configuration decoupling. We would expect that any coded plumbing relies upon channel labels exclusively. I understand that service activators are Spring Integration matters, and I don't know if that can be easily fixed. I tried to use a stream listener instead, unsuccessfully.

see https://docs.spring.io/spring-cloud-stream/docs/current/reference/htmlsingle/#_application_error_handling NB: the provided example is wrong btw, see #1843

tooms4444 avatar Nov 13 '19 11:11 tooms4444

As you pointed out SA is an SI artifact, so I am not sure what your expectation are with regard to stream. I also do not understand what do you mean by severely breaking configuration decoupling. . . Could you provide an example?

Also, for the future please use Stack Overflow channel when asking question or starting discussions.

olegz avatar Nov 13 '19 13:11 olegz

Hi Oleg, my concerns are about the fact that if the configuration changes in that matter (destination or group) some would have to change the code accordingly. This coupling is forcing recompilation instead of light config management which would be valuable.

tooms4444 avatar Nov 15 '19 08:11 tooms4444

Thomas, I can't agree with you more and this fact alone is the primary reason why we are moving completely away from annotation-based configuration. Check out these blogs:

  • https://spring.io/blog/2019/10/14/spring-cloud-stream-demystified-and-simplified
  • https://spring.io/blog/2019/10/17/spring-cloud-stream-functional-and-reactive

Basically we are week(s) away from Horsham.RELEASE (3.0.0.RELEASE), so consider switching to functions and I'll be publishing another blog on error handling with functions next week

olegz avatar Nov 15 '19 09:11 olegz

Thank you, Oleg, for following up. Can't wait ;-)

tooms4444 avatar Nov 16 '19 10:11 tooms4444