Consumer function →
spring:
cloud:
stream:
function:
bindings:
uppercase-in-0:
destination: uppercase
Supplier function->
spring:
cloud:
stream:
function:
bindings:
uppercase-out-0:
destination: uppercase
what changes need to match the destination so supplier produces to uppercase and consumer consumes from uppercase and FYI both are different microservices
@Bean
public Consumer<String> uppercase(){
return v -> {
System.out.println("Uppercasing: " + v);
};
}
@Bean
public Supplier<String> uppercase() {
return ( )-> "hello world";
}