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 4.x metadatachannel

want to get the output channel name after message is published to the destination. metadata channel is not available in 4.x spring.cloud.stream.kafka.bindings.myBinding.producer.**record-metadata-channel** Spring cloud stream : 4.0.1 binder type :…
HashDhi
  • 27
  • 4
0
votes
1 answer

Dispatcher has no subscribers after any error

We have a spring-cloud-stream reactive function to handle Message Event, the flux has a flatMap to make external http call with WebClient. Everytime the WebClient get an error, the MessageHandler of the FluxMessageChannel unsubscribes the channel;…
0
votes
1 answer

Sending message to DLQ only for specific exception in Spring Boot binder Kafka

I am using Spring Cloud Stream binder Kafka for message processing. As part of my requirement I need to send message to DLQ for only specific user defined exception and not for all RuntimeExceptions. I followed this link and configured…
springenthusiast
  • 403
  • 1
  • 8
  • 30
0
votes
0 answers

Spring Cloud Stream with Kafka Binder

I’m developing a Spring Boot Application to gain more Spring Cloud Stream knowledge. Basically, I want to send/receive messages from Kafka Broker. I previously built an application using Spring Kafka and the Spring Cloud Stream. Still, I use…
0
votes
1 answer

Spring Cloud Stream: How to get KafkaEvents like ListenerContainerIdleEvent?

We are using the functional programming model of Spring Cloud Stream and the Apache Kafka Streams binder. Unfortunately, we are currently not able to access the KafkaEvents - in particular the ListenerContainerIdleEvent. @EventListener public void…
0
votes
1 answer

Spring cloud Stream Kafka DLQ throw RecordTooLargeException for Batch mode

I am using Spring cloud Stream kafka Binder in my project. We have enabled the batch-mode true and batch size is 500 messages. We are using DeadLetterPublishingRecoverer to send the message to DLQ. If any message failed then we throw…
0
votes
1 answer

Is it possible to inject a value from the named channel configuration property in spring-cloud-stream?

I have a spring-cloud-stream-kafka project. The following is an abbreviated section of application.yaml. I am interested in injecting the value for the property spring.cloud.stream.kafka.bindings.myNamedChannel.dlqPartitions into code: spring: …
0
votes
1 answer

How to replace deprecated @StreamListener?

I'm using Spring Boot and Kafka. Migrating to latest versions of Spring Boot and others, I encountered following issue: @StreamListener is deprecated and removed from the library. I have a topic my_topic and read from it as in example below: public…
0
votes
0 answers

Kafka ProducerListener does not work with multiple spring cloud stream binders

If I specify custom/multiple spring spring cloud stream binders, along with a ProducerListener bean, the ProducerListener callbacks do not…
0
votes
0 answers

How to Unit Test BindingLIfecycleController state changes

I have written CustomHealthIndicator to check the producer binding is running, if not then Pause the Consumer binding. We have implemented the application using Spring-cloud-streams-kafka-binder in functional style. Below is the snippet of code…
0
votes
2 answers

Send Spring Cloud Sleuth trace IDs as headers over Kinesis - functional model

I'm trying to get Spring Cloud Sleuth trace ids to propagate into Spring Cloud Stream Kinesis messages. Part of my configuration in application.yml file: spring: cloud: stream: kinesis: binder: headers: -…
Henry
  • 67
  • 5
0
votes
0 answers

No qualifying bean of type 'org.springframework.cloud.stream.function.StreamOperations' available?

I am trying to migrate a SB 2.6 micro service to SB 3.0.2, Spring Cloud 2022.0.1 and Java 17. I am using the StreamOperations interface to send messages from within the microservice via a Rabbit binding. The class looks…
0
votes
1 answer

Spring cloud stream with rabbitmq single consumer out of pool of autoscaled pool of consumer instances

I have a system with several microsystems, using Spring Cloud Streams (Spring Boot 2.7.5) and RabbitMQ for messaging between the systems. We have a problem where the receiver of the message is run for every instance of the microservice we have…
0
votes
0 answers

How to access channel name in ListenerContainerCustomizer when using spring cloud stream binder kafka

I am using spring-cloud-stream-binder-kafka and have implemented stateful retry using DefaultErrorHandler, I want to register different DefaultErrorHandler for different consumer consuming messages from different Kafka topics, and each…
0
votes
1 answer

solace-jms-spring-boot vs solace-spring-cloud

I am using solace-jms-spring-boot and planning to migrate to solace-spring-cloud. Are there any limitation that need to be aware of? Thanks
Tilak
  • 323
  • 1
  • 5
  • 18