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

Post separate messages in RabbitMQ for each element in a list returned by the producer function

I trying out spring-cloud-funtions, with RabbitMQ integration. So my producer fetches a list of elements with an IO operation (lets say a database call). Instead of the list being posted as one single message, I am trying to make make it post a…
Praveen Dass
  • 586
  • 1
  • 3
  • 13
0
votes
1 answer

Spring cloud Stream custom functional style app configured for topics based on the stream and application name as it working for starter apps

I have created SCDF custom stream apps for sftp source by referring to the starter app. This app is auto-creating a topic for output as - function_name + -out- + index As I looked at the default app the Spring Cloud Data Flow names these topics…
0
votes
1 answer

Can a changelog topic be reused?

I intend to share data aggregated by one stream with another one to reduce (re)processing time when restarting services or rebuilding aggregates. This stream creates a store which the changelog topic belongs to: @Bean fun…
0
votes
1 answer

Failed to declare anonymous queue after rabbitmq in HA mode restart

Rabbitmq is deployed on k8s cluster with following HA configuration. {"ha-mode":"exactly","ha-params":2} Spring boot application uses spring cloud stream(3.2.2) and has consumer for which anonymous queue is declared @Configuration public class…
kbit8
  • 1
  • 1
0
votes
2 answers

spring cloud stream when a lot of different event types

I want an advise according usage of spring cloud stream technologies. Currently my service use spring-boot and implements some event-based approaches. But the events are not sent to some kind of broker, but are simply handled by handlers in separate…
0
votes
0 answers

Join KStream with KTable got No headers available and no default type provided

I'm trying to join KStream with KTable but still got java.lang.IllegalStateException: No headers available and no default type provided Actually I can't realize what I'm doing bad, can you help me please..? Have same number of partition and…
0
votes
1 answer

Unable to customize kafkaStreams globalstaterestorelistener

This is my configuration class but when I delete the state and restart so it builds from the changelog topic I am unable see any messages in the logs. Steps to produce setup kafkastream: Write to a kafka topic and kstream reads and stores state…
0
votes
1 answer

Can I bind multiple queues to the same consumer in rabbitMQ and spring boot?

I have a service that wants to receive events from multiple sources, and do the same thing with all of them. In attempt to reduce the amount of code I need to write, I'd like to have multiple queues point to the same…
0
votes
1 answer

Configure connection leasing strategy (fifo/lifo) for httpclient Spring Cloud Gateway

Spring Cloud Gateway provides a way to configure httpclient property like spring: application: cloud: gateway: httpclient: connect-timeout: 1000 response-timeout: 5s pool: maxIdleTime: 15s I don't…
0
votes
1 answer

Create RabbitMQ queue using spring cloud stream without a consumer or without an active consumer

Is there a way to create a RabbitMQ queue using spring cloud stream without having a consumer for the queue. Our scenario is that we want to use the delay messaging strategy, so messages coming to the first queue would be held until expired and…
RaRa
  • 140
  • 7
0
votes
0 answers

Spring Cloud Stream Kafka Binder Async Producer messages getting lost if broker goes down

I am using Spring Cloud Stream Kafka Binder to produce message into Kafka. I kept producer sync to false, enabled error channel for producer, unclean leader election true on server…
0
votes
1 answer

Handle Spring cloud stream kafka producer persistent exception

I am working on spring cloud stream and kafka binder for event driven application(spring cloud stream annotation is using) I was able to handle exception at consumer side using dead letter queue .But couldn't find out any relevant document for…
0
votes
1 answer

Spring Cloud Stream Binder Kafka broker is not available

I have a Spring Config Server application which is working with Kafka in dev environment but in local environment I keep getting: {host} could not be established. Broker may not be available. Is there any way to start the application in local…
0
votes
0 answers

ClassCastException with Spring Cloud Stream Kafka Streams

I'm running into a problem that's almost identical to another StackOverflow question, but the solution provided doesn't work for me. The error I'm getting (at runtime): 2022-09-14 11:53:49,301 [ERROR] [scheduling-1] BindingService - Failed to create…
Jeremy Smith
  • 311
  • 2
  • 13
0
votes
1 answer

Spring Cloud Stream with RabbitMQ Streams

I'm trying to use the "new" Streams plugin for RabbitMQ with my spring-cloud-stream project using "functional programming model". I have set up my application.yaml like this: spring: rabbitmq: listener: type: stream stream: …
bsgrd
  • 633
  • 1
  • 9
  • 26