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

If many Kafka streams updates domain model (a.k.a materialized view)?

I have a materialized view that is updated from many streams. Every one enrich it partially. Order doesn't matter. Updates comes in not specified time. Is following algorithm is a good approach: Update comes and I check what is stored in…
0
votes
1 answer

Bind an alternate exchange to an exchange using spring-cloud-stream

I'm looking a way to declare an alternate exchange upon a exchange using spring-cloud-stream. We use 3.2.2 and this fonctionnality does not exist. It would be used in case the producer send its first messages before the receiver creates its queue.…
Ser
  • 2,661
  • 23
  • 28
0
votes
0 answers

No thread-bound request found: Are you referring to request attributes outside of an actual web request

Hi have implemented producer and consumer in my existing spring boot application. Producer sending message properly to topic and even consumer also listening consuming message from topic. Here producer used with StreamBridge , it called from rest…
0
votes
1 answer

How to set transaction-id-prefix in app which has both consumer and producer-only transactions in Spring Cloud Stream

For transactions that have been started by a listener container, we need to set the same transaction id prefix for all app instances. For producing-only transaction, we need to set a different value for each instance instead. I'm using Spring Cloud…
0
votes
2 answers

Configure Topics in Kafka broker itself or via Spring Cloud Stream

I have to define topics in my application. I am using Spring Cloud Stream to configure messaging between application. Spring cloud stream uses kafka binder in the background. I wonder what is the best way to create topics with partitions and…
user725455
  • 465
  • 10
  • 36
0
votes
0 answers

Can't seems to increase the shutdownTimeout of the ListenerContainerCustomizer

I am trying to shutdown my RabbitMQ consumer (using spring cloud stream, @StreamListener) gracefully by increasing the shutdownTimeout to only timeout after 60 seconds. However, it keeps using the default value, which is 5 seconds. May I know if I…
weikangchia
  • 537
  • 2
  • 6
  • 14
0
votes
1 answer

Spring Cloud Compatibility with Spring Boot

Currently the Spring Cloud documentation contains a matrix describing binary compatibility between Spring Cloud and Spring Boot. However, as Spring Boot has now jumped to 2.7.x, the matrix remains unchanged. Is there any information on how the two…
Vidya
  • 29,932
  • 7
  • 42
  • 70
0
votes
0 answers

How to import BeanPostProcessor for KafkaBinderConfigurationProperties to kafka's binder application context

I am having a request which needs to implement a BeanPostProcessor for KafkaBinderConfigurationProperties. While if I define this BeanPostProcessor as a static bean in my configuration class, I can see my BPP being loaded only to the application's…
0
votes
0 answers

autoStatup = false not respected for spring cloud stream producer

I'm using Spring Cloud Stream "2021.0.2" with Spring Boot "2.6.7" and having trouble disabling a producer from starting up automatically. Seems to work fine for consumer (checked actuator/bindings endpoint). spring: kafka: bootstrap-servers:…
0
votes
2 answers

Stop attempt to reconnect after first 'max' attempt

I tried to configure Spring Rabbit Application through application.properties and JavaConfig with the below code. While the application works when RabbitMQ is running. I want to ensure that after the first AmqpConnectException I want to ensure there…
user3747396
  • 141
  • 12
0
votes
0 answers

Azure event hub consumer groups vs Kafka consumer groups via Spring cloud stream kafka binder

I was able to use spring cloud stream kafka binder and have it connected to Azure event hubs . My confusion is regarding consumers groups . I have given the property spring.cloud.bindings..group in the consumer application.yml . Does it…
0
votes
0 answers

Multiple consumer group and destination for a single channel in bindings

So I am trying to have a single function for multiple topic destinations and consumer groups. However I am stuck with the syntax. I am trying to achieve the below, but not sure if that's possible and if it is then what will be the syntax in the…
ghostrider
  • 2,046
  • 3
  • 23
  • 46
0
votes
1 answer

How to get the ConsumerRecord object in StreamListener Consumer code

I wanted to enable the manual commit for my consumer and for that i have below code + configuration. Here i am trying to manually commit the offset in case signIn client throws exception and till manually comitting offet itw works fine but with this…
0
votes
1 answer

Spring Cloud Stream - unable to serialize java class (works for java record)

Hi I am having an issue with new functional spring cloud stream... I have a basic example: @Autowired private StreamBridge streamBridge; @PostMapping("/publish/{topic}") // fails public boolean publish(@RequestBody MessageClass msg,…
0
votes
1 answer

How to solve InvalidTopicException with multiplexed input topics in Spring Cloud Stream Kafka Streams Binder?

I wrote a Spring Cloud Streams Kafka Streams Binder application that has multiple Kafka input topics multiplexed to one stream with: spring: cloud: stream: bindings: process-in-0: destination:…