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

Spring Cloud Kinesis binder when kpl/kcl are enabled creates SpringIntegrationMetadataStore and SpringIntegrationLockRegistry. Is it necessary?

I'm trying Spring Cloud Kinesis binder with intention to use it in production. I want to rely on KCL/KPL channel adapters so I switched on kplKclEnabled property. My app still creates SpringIntegrationLockRegistry and SpringIntegrationMetadataStore…
capmorganbih
  • 71
  • 1
  • 4
5
votes
3 answers

spring-cloud-dataflow: Stream Deployments Fail on OSX

I am unable to deploy and execute a basic http | log stream following the getting-started stream guide: wget https://raw.githubusercontent.com/spring-cloud/spring-cloud-dataflow/2.1.0.RELEASE/spring-cloud-dataflow-server/docker-compose.yml; export…
JJ Zabkar
  • 3,792
  • 7
  • 45
  • 65
5
votes
1 answer

spring cloud stream kinesis Binder

I am trying to implement a spring boot aws kinesis consumer that is capable of being auto-scaled in order to share the load (split processing shards) with the original instance. What I have been able to do: using the well defined read me and…
5
votes
1 answer

How to consume from Kafka Spring Cloud Stream by default and also consume a Kafka message generated by the confluent API?

I am building a microservice component which will consume by default Spring Cloud Stream (SCS) Kafka messages generated by other (SCS) components. But I also have a requirement to consume Kafka messages from other components that are using the…
Donal Hurley
  • 159
  • 2
  • 9
5
votes
1 answer

spring-boot 2 graceful shutdown web

Is there any recommended way to gracefully shutdown a Spring:boot 2 app in Kubernetes. Catch a termination signal SIGTERM Tell Tomcat to stop taking new requests. (or Jetty, Undertow or Netty/WebFlux depending on the embedded web server used). Or…
DarVar
  • 16,882
  • 29
  • 97
  • 146
5
votes
1 answer

What is the difference between springcloud-stream and springcloud-bus?

What are the differences between them? Is springcloud-stream one of the instantiations of springcloud-bus? As I know, both of them concern about MQ.
GGG
  • 51
  • 3
5
votes
1 answer

spring-cloud-stream message conversion exception

While upgrading one of our services to spring-cloud-stream 2.0.0.RC3 we encountered an exception when trying to consume a message that was produced by a service that uses older version of spring-cloud-stream - Ditmars.RELEASE: ERROR 31241 ---…
Yossi Shasha
  • 193
  • 4
  • 17
5
votes
1 answer

How to set custom name for RabbitMQ connection?

It would be useful to be able to identify the RabbitMQ client by its connection name. I'm using Spring Cloud Streams abstraction and with default settings I getting something like that: How can I set a custom RabbitMQ connection name in my Spring…
kinjelom
  • 6,105
  • 3
  • 35
  • 61
5
votes
1 answer

Spring cloud stream MessageChannel send() always return true

I'm using Spring cloud stream and I'd like to save messages and retry to publish them on the topic when the Kafka server is gone but MessageChannel send() method always return true even if the Kafka/Zookeeper server is stopped. Can somebody help…
freemanpolys
  • 1,848
  • 20
  • 19
5
votes
1 answer

Spring Cloud Stream validation

How to perform validation with Spring Cloud Stream framework in message listeners using standard Spring annotation based validation? Tried different cases, with @Valid @Payloadfor incoming object, tried method validation post processor with…
Oleksandr Yefymov
  • 6,081
  • 2
  • 22
  • 32
5
votes
1 answer

How to receive GenericMessage with Object payload instead of string from MessageCollector

I try to test message sending and receiving via spring-cloud-stream using MessageCollector. When i am using native java serialization for stream cloud all works fine, but when i change serialization to json, MessageCollector returns me…
5
votes
1 answer

Spring Cloud Stream RabbitMQ

I am trying to understand why I would want to use Spring cloud stream with RabbitMQ. I've had a look at the RabbitMQ Spring tutorial 4 (https://www.rabbitmq.com/tutorials/tutorial-four-spring-amqp.html) which is basically what I want to do. It…
maiksensi
  • 833
  • 1
  • 12
  • 23
5
votes
1 answer

Spring Cloud Stream and RabbitMQ health check

I have a simple Spring Boot application using Spring Cloud Stream Rabbit and Eureka Discovery Client. The application works fine together with Eureka Server, and the messaging over RabbitMQ is also working. But if I spin up a Spring Boot Admin…
5
votes
2 answers

Spring netflix eureka, zuul vs Spring cloud data flow

I am new to the microservice world. Would like to know when to use Spring eureka, zuul vs spring data flow. I am building a service which in turns will consume multiple granular services(aka micro service), aggregate all the data and returns…
Debopam
  • 3,198
  • 6
  • 41
  • 72
5
votes
3 answers

Using Kafka through Observable(RxJava)

I have a producer (using Kafka), and more than one consumer. So I publish a message in a topic and then my consumers receive and process the message. I need to receive a response in the producer from at least one consumer (better if it be the…