We have several micro-services using Spring Boot and Spring Cloud Stream Kafka binder to communicate between them.
Occasionally, we observe bursts of duplicate messages received by a consumer - often several days after it was first consumed and…
I want to write a consumer method which subscribes to a topic using KafkaListener.
I found an answer which suggested this -
@KafkaListener(id = "foo", topics = "dead-out")
public void dlq(Message> in) {
System.out.println("DLQ:" + in);
}
Now,…
I am using Spring-cloud-stream version 3.0.4
I am writing a JSON consolidator, which listens to multiple streams, store the JSONs in state-stores and then consolidates it to produce an output JSON. Since my service is just a JSON aggregator I dont…
I am using the Processor API to do some low level processing into a state store. The point is I also need to write into a topic after storing into the store. How can it be done in a Spring Cloud Streams Kafka applications?
@Bean
fun processEvent() =…
I have successfully used Spring Cloud Stream Kafka Binder (org.springframework.cloud:spring-cloud-starter-stream-kafka:3.0.1.RELEASE) and Spring Cloud Azure Event Hubs (com.microsoft.azure:spring-cloud-starter-azure-eventhubs:1.2.3) with Spring Boot…
I'd like to move spring.kafka.streams.* under spring.cloud.stream - is this possible? I thought of streams-properties similarly to consumer-properties or producer-properties, but it doesn't work.
spring:
cloud:
config:
…
I have a Service that is Producing and Consuming messages from different Spring Cloud Stream Channels (bound to EventHub/Kafka topics). There are several such Services which are setup similarly.
The configuration looks like below
public interface…
I need a way of resolving an Inbound Channel dynamically based on the type of the Incoming Message.
I am not looking for any header based solution which is already mentioned in this…
I have been trying to use the Spring Integration's @Router with Spring Cloud Stream with Kafka binding. My understanding is that when you return a List of channel names from the method annotated with @Router they should be produced to the destined…
how do I access custom headers in a materialized view? I'm trying to build some custom dlq logic in my application and want to build a retry mechanism based on header information. The actual retry is triggered by a scheduler which should look up…
enter image description here
Micro service 1:
artefact id - microservice1
Defined KafkaStreams.java interface where in defined the binder properties like below.
public interface KafkaStreams {
String OUTPUT = "kafka-output";
String INPUT =…
I'm using the Spring Cloud Streams Documentation to try and work out how to connect my micro service to Kafka via the binder already downloaded in Gradle. I've tried creating a simple @Bean Function() method within my Spring Boot…
I am using Spring Cloud Stream version 2.2.0 with Kafka binder and Avro. Apparently, an incorrect record has been published to one of the Kafka topics where it is causing all the consumers to return deserialization error and goes to some sort of…