Reputation: 373
Simple function like below can be consume and produce message.
@Bean
public Function<String, String> toUpperCase() {
return s -> s.toUpperCase();
}
Is there any option in spring cloud stream to return control to the application after publishing/supplying a message?
I have an use case to update state in database after publishing the message.
Upvotes: 1
Views: 526
Reputation: 174554
Use a Consumer
instead of a Function
and send the result using the StreamBridge
instead.
Upvotes: 3