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
0 answers

Spring cloud stream 4 Polled Consumers issue with changing the binding name

I'm using spring-cloud-steam version 4.0.1 to implement Polled Consumers. I pass the arg --spring.cloud.stream.pollable-source=myDestination. This creates a channel myDestination-in-0. However I want to rename the channel to input. So I tried…
user3908406
  • 1,416
  • 1
  • 18
  • 32
0
votes
0 answers

Classcastexception for CloudEventMessageConverter to AbstractMessageConverter

when using spring cloud stream latest version with cloud events spring sdk Facing classcastexception in below scenario. Message has contentType = application/*+avro. SmartcompositeMessageConverter contains converter list like below…
0
votes
0 answers

Spring Cloud Stream 4.0 Release Notes?

We are currently using SCS v3.2 and I was wondering if there are any release notes for 4.0 in terms of breaking changes/deprecations? I know the annotation model is one item (which is fine for us - we started on the functional model). I checked…
0
votes
0 answers

Spring Stream Kafka Binder Dynamic destination , How to send message with partition Id

I am using Spring cloud stream kafka for consuming and sending the message to another topic. I have setup compression-type as gzip and have partition Id as well like below which worked fine. spring: cloud: stream: bindings: …
0
votes
1 answer

How to set dynamic partition key in spring cloud aws kinesis binder?

I am trying to use Supplier/Consumer to produce and consume messages from Kinesis data stream. Is there a way to add partition key dynamically? private BlockingQueue messages = new LinkedBlockingQueue<>(); @Bean public…
0
votes
0 answers

Ktable does not work with two same messages

I have made the sample program convert the stream to Ktable. when I output the stream it always give me same number of result if I produce same message with same key any number of time Input key1- value1 key1-value1 key2-value2 Actual…
0
votes
1 answer

Spring 6: Spring Cloud Stream Kafka - Replacement for @EnableBinding

I was reading "Spring Microservices In Action (2021)" because I wanted to brush up on Microservices. Now with Spring Boot 3 a few things changed. In the book, an easy example of how to push messages to a topic and how to consume messages to a topic…
0
votes
1 answer

PollableMessageSource issue with spring-cloud-stream 4.0.0 and Spring boot 3

I'm trying to implement a polled consumer using spring-cloud-stream 4.0.0 following this example…
user3908406
  • 1,416
  • 1
  • 18
  • 32
0
votes
1 answer

Use multiple exchanges with StreamBridge

From the definition of StreamBridge there is no implementation for defining a RabbitMQ exchange. Is there a way to programmatically set the destination (i.e., RabbitMQ exchanage) and not just the binding with StreamBridge?
cksrc
  • 2,062
  • 3
  • 24
  • 39
0
votes
0 answers

KafkaConsumerDestination's partitions and dlqName is not set when autoCreateTopics is false

Partitions and dlqName in KafkaConsumerDestination are missing in an application logs if 'spring.cloud.stream.kafka.binder.autoCreateTopics' is false. By seeing dlqName is empty in KafkaConsumerDestination, I was confused whether or not partitions…
0
votes
1 answer

Spring Cloud dynamic consumer creation, message type is lost

I'm creating the cloud streams and consumers for it dynamically can't get consumer defined properly as information about type is lost. In the example below consumer defined with @Bean annotation works fine, it receive message with all headers and…
0
votes
1 answer

Missing aggregate components

The durchfuehrungen are in a few cases null even if the records are correct and the cogrouping with them works elsewhere. In the history of the resulting affected ProjektAggregat records no single event contains the depending durchfuehrungen,…
0
votes
0 answers

Spring Cloud Config Client is not able to receive events from SpringCloudBus

Auto-refresh of properties not working in Spring Cloud Config Server. The properties are getting refreshed in Config server but not in Config Client. I have configured the /monitor endpoint as a webhook in GitLab. application.properties of client…
0
votes
1 answer

EnableBinding and Source.class replacement

I have below code that works with spring cloud stream 3. Now I upgraded to spring cloud stream 4. EnableBinding and Source are both removed. I have read many posts regarding the deprecation of these and I know I should probably use a functional…
user3908406
  • 1,416
  • 1
  • 18
  • 32
0
votes
1 answer

StreamBridge is overriding headers set for Kafka using CloudEventMessageBuilder

I am using spring-cloud-stream, version - 2022.0.0 along with spring boot version3.0.1, to publish a Cloud Event message to a kafka topic. I am using CloudEventMessageBuilderto build a message and headers, and usingStreamBridge` to send it to…
Moazzam Khan
  • 3,130
  • 2
  • 20
  • 35