Questions tagged [spring-cloud-stream]

Spring Cloud Stream allows a user to develop and run messaging microservices using Spring Integration and run them locally, or in the cloud, or even on Spring Cloud Data Flow. Just add @EnableBinding and run your app as a Spring Boot app (single application context). You just need to connect to the physical broker for the bus, which is automatic if the relevant bus implementation is available on the classpath.

Use this tag for questions about the Spring Cloud Stream project. It is not intended for general questions about integrating other Spring projects with other technologies.

Spring Cloud Stream's Official Project Site

Spring Cloud Stream's Github Repo

How to contribute

Related tags , , .

2724 questions
0
votes
1 answer

Spring cloud stream kafka timestamp

I am using spring cloud streams for consuming kafka. I need to get the time the event has been published to the queue from the publisher(publisher time not the broker ingestion time) I can see below information in…
0
votes
0 answers

What is the correct way of sending Protobuf data using Spring Cloud and RabbitMQ

I have generated Proto classes from Protobuf and I would like to exchange the bytes between two Spring Cloud microservices over RabbitMQ but I wasn't able to figure out what is the proper way of serializing/deserializing. Producer @Bean private…
cksrc
  • 2,062
  • 3
  • 24
  • 39
0
votes
1 answer

RabbitMQ Binder null x-death within retry loop creating infinite retries before killing consumer

I have a retry loop going with use of the dead letter queue to schedule retries until hitting a limit. The issue I have is the x-death header is always coming back null whilst it's clearly aware of the failure as x-exception-message and…
0
votes
0 answers

DeserializationException handeling in RequestResponseTemplate

I am having trouble understanding how to handle deserialization exceptions during the use of RequestResponseTemplate. I create this RequestResponseTemplate by configuring DefaultKafkaProducerFactory &…
0
votes
1 answer

Move only specific exception to DLQ in Spring Cloud Stream

I am using Spring Cloud Stream with AWS SQS. I've a use case where all exception except CustomException should move to DLQ. I am unable to find any reference for it. Can someone help here?
Mansoor
  • 1,157
  • 10
  • 29
0
votes
2 answers

Spring Cloud : Supplier continuously publishing Kafka events instead of one?

Spring Cloud : Supplier continuously Kafka publishing events how to published only one ? public static HashMap transactionsOfAccount = new HashMap<>(0); public LinkedList lists = new…
0
votes
0 answers

Spring cloud stream rabbitmq binder failed with schema registry as byte array returned

I am new to spring cloud stream rabbitmq binder and tried to integrate rabbitmq binder of spring cloud stream but not able to find any specific properties so not sure about Avro message converter part as it my response is in byte array. I have tried…
0
votes
1 answer

No autowiring of BindingsEndpoint anymore when upgrading to Spring Boot 3.0.0 from 2.7.6

I am upgrading a Spring Cloud Stream application from Spring Boot 2.7.6 to 3.0.0 So far, I had to change only some code to get the project compiled KafkaHeaders.MESSAGE_KEY to KafkaHeaders.KEY KafkaTestUtils.getSingleRecord() needs now a Duration…
gira1
  • 117
  • 2
  • 10
0
votes
1 answer

Custom StreamsBuilderFactoryBeanConfigurer won't be picked up

I've written the following configurer bean and expected to be executed, but the bean doesn't seem to be executed as execution in debugging mode doesn't even stop when I set a breakpoint inside: @Bean fun myStreamsBuilderFactoryBeanConfigurer() = …
0
votes
2 answers

Spring cloud streams - multiple routing functions in multimodule project creates output bindings

We've got a multi-module project which needs multiple routing functions (our case is that we're developing modular-monolithic application and we need to consume one message in multiple modules). The problem is that routing functions creates *-out-0…
0
votes
0 answers

Spring Cloud Stream Binder Issue when using both Rabbit MQ and Kafka

I am trying to create simple producer and consumer application with both kafka and rabbitmq I have controller for each I could run them as separate apps without any issue but when I combine code I get Binder Error Failed to start bean…
0
votes
0 answers

How to acquire current StreamsBuilder in Spring Cloud Stream function?

If I try to inject a StreamsBuilder in my Kafka Streams based Spring Cloud Stream app, then the start of the app fails as no instance can be found. Is there a way to access the current instance from within the class or the…
0
votes
1 answer

Spring Cloud Stream Kafka Binder incorrect partitioning

I'm using the org.springframework.cloud:spring-cloud-stream-binder-kafka library and I'm having trouble with partitioning messages in a topic. My topic has 4 partitions but i'm only seeing events in partition 0 i.e. the publisher is not partitioning…
0
votes
0 answers

Kafka Stream and Spring Cloud : java.lang.IllegalArgumentException: The class '[B' is not in the trusted packages: If you believe this class is safe

java.lang.IllegalArgumentException: The class '[B' is not in the trusted packages: [java.util, java.lang, com.trisha.clients.collection, com.trisha.clients.collection.]. If you believe this class is safe to deserialize, please provide its name. If…
0
votes
0 answers

Possible bug in Spring Cloud Stream's handling of LateBinding Kafka Stream outputs (causing message loss)

I may have encountered a bug in Spring Cloud Stream’s handling of late-binding Kafka Stream outputs that manifests when the broker is transiently unavailable during application startup. From my empirical testing, any output binding that is a…