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
1 answer

How to create unit test with kafka embedded in the spring cloud stream

Sorry for the question being too generic, but someone has some tutorial or guide on how to perform producer and consumer testing with kafka embedded. I've tried several, but there are several versions of dependencies and none actually works =/ I'm…
5
votes
2 answers

Spring cloud stream - send message after application initalization

I'am trying to send a simple message using "spring cloud stream" to the rabbitmq. Basically code looks like this: @EnableBinding(Source.class) @SpringBootApplication public class SourceApplication { public static void main(String[] args) { …
Maburo
  • 83
  • 1
  • 7
5
votes
1 answer

How to debug spring cloud dataflow deployed app

im using spring cloud data flow local server deployed my stream apps. i want to using intelliJ remote debug one of my app
zjunothing
  • 61
  • 3
5
votes
1 answer

Spring cloud stream manual offset management

Can I implement manual Kafka offset management with Spring Cloud Steam as follows: Whenever my consumer processes a message, it commits its offset into DB. Not into Kafka Whenever my consumers restarts, it reads last processed offset from the DB,…
Nikem
  • 5,716
  • 3
  • 32
  • 59
5
votes
1 answer

What are the Benefits of Spring Cloud Dataflow?

Based on what I've seen, creating a stream in Spring Cloud Dataflow (SCDF) will deploy the underlying applications, bind the communication service (like RabbitMQ), set the Spring Cloud Stream environment variables, and start the applications. This…
user6448130
5
votes
0 answers

Spring Cloud Stream and Kafka Integration Error Handling

I am trying to create a Spring Boot application with Spring Cloud Stream and Kafka integration. I created a sample Topic in Kafka with 1 partition and have published to the topic from the Spring Boot application created based on the directions given…
Satya
  • 1,037
  • 3
  • 15
  • 34
5
votes
2 answers

How to intercept Spring Cloud Stream messages?

Spring allows interception of messages for many of their products, like RestTemplate and SpringMVC. Is it possible to intercept Spring Cloud Stream messages? For both incoming and outgoing messages.
Jose Martinez
  • 11,452
  • 7
  • 53
  • 68
5
votes
2 answers

spring cloud stream 'bindingService' error

I am trying to implement Turbine AMQP to consolidate all the stream from multiple services to Hystrix Dashboard. So I added couple fo dependencies to the gradle file and after that I am not able to start my application for some reason. LOGS from…
5
votes
1 answer

Spring Cloud Stream message from/to JSON conversion configuration

I am using Spring Cloud Stream, with RabbitMQ binder. It works great with byte[] payload and Java native serialization, but I need to work with JSON payload. Here's my processor class. @EnableBinding(Processor.class) public class MessageProcessor { …
wst
  • 4,040
  • 4
  • 41
  • 59
4
votes
0 answers

Trace id propagation in Spring Boot 3 with Spring cloud streams and WebFlux

I tried to use spring cloud stream with kafka binder. But when I called WebClient in chain, then trace id is lost. My flow is 'external service' -> 'functionStream-in' -> 'http call' -> functionStream-out' -> 'testStream-in' -> 'testStream-out' ->…
4
votes
1 answer

Multiline values in application.yml for spring.cloud.function.definition

We have a Spring boot project using the deprecated @StreamListener and now we are switching to Spring Cloud Stream functional kafka binders. The problem is that this service connects to multiple kafka topics and our single line…
marionmaiden
  • 3,250
  • 8
  • 33
  • 50
4
votes
1 answer

Can I use a spring cloud stream function definition for multiple tenants (kafka binder)?

I have a Streaming Processor that processes messages from a Kafka InputTopic to an OutputTopic. Furthermore I have multiple tenants for whom this processing shall take place. Lets call them tenant A and tenant B, but there can be more than a dozen…
4
votes
1 answer

How to write unit test for spring cloud stream function based method?

When I try to test a spring cloud stream function based method, it always happens NullPointerException about InputDestination. I have two questions: It's hard for me to know how to write UT from the official doc. official test doc Besides, how to…
4
votes
3 answers

How to skip record which produces runtime exception in Kafka and keep stream running?

I have implemented kafka stream application. Let's say one of the object's field which the stream is currently processing contains a number instead of a string value. Currently when there is an exception thrown in the processing logic eg.…
4
votes
0 answers

Kafka Admin client unregistered causing metadata issues

After migrating our microservice functionality to Spring Cloud function we have been facing issues with one of the producer topics. Event of type: abc and key: xxx_yyy could not be sent to kafka…