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

Forward ApplicationEvent to RabbitMQ using funtions

My application should spread some event from a component to some rabbit message publisher. My component fires the event using ApplicationEventPublisher.publishEvent(e) On the other side, a message producer should receive the event, process it then…
0
votes
1 answer

How to invoke CommonContainerStoppingErrorHandler once retries are exhausted with Batch listener

I am using spring boot (version 2.7.1) with spring cloud stream kafka binder (2.8.5) for processing Kafka messages I've functional style consumer that consumes messages in batches. Right now its retrying 10 times and commits the offset for errored…
0
votes
1 answer

Setting isolation.level for kafka with spring cloud stream

On a project I'm consuming messages of on partner from a kafka server, the producer is using transactions and it seems that the default configuration of a kafka consumer for isolation.level is read_uncommited by default and they suggest to set the…
0
votes
0 answers

Spring Cloud Stream should only consume not produce

We created a streams application in which we are consuming the data and pushing it to database. But it is creating a dummy topic to produce the data and throwing a error like "Not authorized to access topic". Is there any configuration to restrict…
0
votes
1 answer

Spring Cloud Stream [2021.0.5] Kafka Batch mode Avro native encoding doesn't work with spring cloud sleuth

i'm working on upgrading spring boot to 2.7.8 and spring cloud to 2021.0.5. I have Spring cloud stream kafka consumer using avro deserialization in batch-mode, and I was trying to use useNativeEncoding according to documentation. the problem is…
0
votes
1 answer

Spring Cloud Stream Kafka consumer app, AdminClient is called for no reason

Small question regarding Spring Cloud Stream Kafka please. I am having a very simple and straightforward consumer. It is consuming only, does not produce messages, the topic is already there, I do not need to create…
PatPanda
  • 3,644
  • 9
  • 58
  • 154
0
votes
1 answer

How to use StreamBridge to send String message and bypass message conversion?

Background Consider this sample code: streamBridge.send("supply-out-0", (Object) "[hello world]", MediaType.TEXT_PLAIN); With the above code, I am sending a very simple plain text String object data to a stream binding. Notice the square brackets…
blackr1234
  • 1,420
  • 12
  • 23
0
votes
1 answer

Spring cloud data flow S3 source to listen to a folder in S3 bucket

I'm trying to create a stream which needs to listen to a folder in S3 bucket. I could create a stream listening to the root of the bucket using following properties and could trigger the…
Venu Gopal
  • 15
  • 1
  • 7
0
votes
1 answer

SpringBoot + Spring Cloud Stream: Expose /actuator/ endpoints to the web without webflux / web jars

Small question regarding SpringBoot + Spring Cloud Stream application please. I have a pure consumer app based on SpringBoot and Spring Cloud Stream. It is a "only consuming messages from kafka consumer app", in has no http or rest endpoints to be…
PatPanda
  • 3,644
  • 9
  • 58
  • 154
0
votes
0 answers

Test Suite for Spring Cloud Stream binder

Is there a test-suite available (from SCS developers probably) which can be used to verify that a binder implementation supports all features of Spring Cloud Stream including partitioning etc.?
0
votes
0 answers

Spring Cloud Kafka - is there a way to know how many channels are there after startup

I'm exploring spring cloud stream binder kafka and playing with it. is there a way to know the list of channels after startup, just by printing the values in logger may be? i'm specifically looking for errorChannels and recordMetaData, i know that…
0
votes
0 answers

Spring cloud stream Not able to log producer errors in error channel

I am trying to send the requests over stream bridge @GetMapping(value = "/sendmessage/{id}") String sendMessage( @PathVariable String id) { IntStream.rangeClosed(1, 2) .mapToObj(String::valueOf) .forEach(s->…
Patan
  • 17,073
  • 36
  • 124
  • 198
0
votes
1 answer

spring-cloud-stream test-binder not working for a KStream based processor

I am unable to get the test binder working for a kstream based function(doNothing) as shown below. The same works for a non-kstream based function(uppercase). This uses a kafka binder. @Configuration public class CPPNotificationConfiguration { …
0
votes
1 answer

Dispatcher has no subscribers for channel

I am trying to create a Generic eventPublisher for my microservices. import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cloud.stream.annotation.EnableBinding; import…
0
votes
0 answers

PubSub binder - Failed to create consumer binding; retrying in 30 seconds

I am using Google Cloud PubSub binder to consume event. Currently we did all the testing with Pubsub emulator and everything work perfectly fine. Issue: Now currently we want to stop the binding at the start of the application until I finailze…