spring-cloud-stream

Spring Cloud Stream - Actuator endpoint

孤街浪徒 提交于 2020-08-11 05:09:43
问题 I'm trying to expose Spring Boot actuator endpoint for my binding configuration. My app is quite simple just with couple of KStream bindings. It is written in functional way without any "binding" annotations like @EnableBinding or @StreamListener . It is up and running and when I access /actuator/bindings it crashes with following exception: Binding implementation `org.springframework.cloud.stream.binder.DefaultBinding` must implement this operation before it is called (through reference

Spring Cloud Stream - Actuator endpoint

前提是你 提交于 2020-08-11 05:09:09
问题 I'm trying to expose Spring Boot actuator endpoint for my binding configuration. My app is quite simple just with couple of KStream bindings. It is written in functional way without any "binding" annotations like @EnableBinding or @StreamListener . It is up and running and when I access /actuator/bindings it crashes with following exception: Binding implementation `org.springframework.cloud.stream.binder.DefaultBinding` must implement this operation before it is called (through reference

How to make Spring cloud stream Kafka streams binder retry processing a message if a failure occurs during the processing step?

依然范特西╮ 提交于 2020-08-10 02:01:07
问题 I am working on Kafka Streams using Spring Cloud Stream. In the message processing application, there may be a chance that it will produce an error. So the message should not be commited and retried again. My application method - @Bean public Function<KStream<Object, String>, KStream<String, Long>> process() { return (input) -> { KStream<Object, String> kt = input.flatMapValues(v -> Arrays.asList(v.toUpperCase().split("\\W+"))); KGroupedStream<String, String> kgt =kt.map((k, v) -> new