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

KStream vs Flux>

Looking projects that use Spring Cloud Stream Kafka binding (functional style) I've met that two styles are used - KStreams and reactive pipelines Flux>. They somewhat overlapping as an idea but just partially. What are the…
0
votes
1 answer

How to produce a message record which can be consumed by a spring cloud stream consumer?

From the producer side, I'm using Kinesis's PutRecord API to produce messages to the stream. From the consumer side, I'm using spring-cloud-stream-binder integration for kinesis. I have adapted the code for building the PutRecordRequest object from…
0
votes
1 answer

Spring Cloud Stream validation (functional approach)

There is an old question how to use @Valid annotation with spring-cloud-stream library, there is even documentation how to do it in docs but in October 6 2020 @StreamListener approach was officially deprecated and example removed. Old…
nouveu
  • 162
  • 4
  • 9
0
votes
1 answer

Send message TTL in header using spring cloud stream rabbit mq binder

I want to use spring cloud stream rabbitMQ binder for message driven architecture. But each message should have own time to live setting. so I need to give this setting in message header. Do you think is this possible using Spring Cloud Stream…
user725455
  • 465
  • 10
  • 36
0
votes
1 answer

Spring Cloud Stream Rabbit Binder serialization problem for Pojo

I have 2 applications running. One of them is Producer , other one is Consumer. I am using spring cloud stream rabbitmq binder for messaging infrastructure. I am using POJO classes to send messages between microservices. In my producer application,…
user725455
  • 465
  • 10
  • 36
0
votes
1 answer

Kafka starts throwing replication factor error as soon as spring boot app connects to it

Kafka starts flooding logs with the the error INFO [Admin Manager on Broker 2]: Error processing create topic request CreatableTopic(name='__consumer_offsets', numPartitions=50, replicationFactor=3, assignments=[],…
0
votes
1 answer

Spring Cloud Stream Function won't use Avro Deserializer

I have a Spring Cloud Stream application where I'm trying to leverage Functional Interfaces. I got a proof of concept working with just Strings, but now that I'm trying to deal with Avro-generated messages, I cannot get the deserialization to work.…
Jeremy Smith
  • 311
  • 2
  • 13
0
votes
1 answer

Manual ack after message send with Spring Cloud Stream + RabbitMQ (Functional)

I found how to do manual ack with functional way. However, this does not explain how to do manual ack sending after messages. If there is a networking error between the ack and the sending of the message, I think the message will be lost. I don't…
0
votes
0 answers

how to set the __TypeId__ header in spring cloud stream binder Kafka

I'm using spring cloud stream binder and can't figure out how to set the Type ID header, I'm using JsonSerializer so was assuming __TyepId__ would be set to String or Json but that doesn't happen. Here's the producer…
0
votes
1 answer

spring cloud function doesn't register multiple function definitions

I've written a function for transforming object into message @Bean public Function, Message>> publish() { return payload -> { if (payload.getContent().getClass().isPrimitive()) throw new…
0
votes
0 answers

Spring cloud bus with EnableBinding (non functional approach)

I use spring boot 2.7.2 and spring cloud dependencies 2021.0.3. The project uses annotation-based model (EnableBinding) rather than functional. That's something I cannot change. Right now the bus (used for getting refresh events from config…
0
votes
0 answers

How to make different instances of consumers in the same consumer group consume different shards of the same kinesis stream?

I'm following the example given in spring-cloud-stream-samples with the following modifications. application.yml spring: cloud: stream: instanceCount: 2 bindings: produceOrder-out-0: destination: test_stream …
0
votes
0 answers

Pointing consumer to proper input when declaring a custom router?

First time using the custom router function which would act as a filter as mentioned in the docs here and I was wondering, who do I redirect the input to? In the past I had only the consumer which is declared as follows: @Bean public…
czr_RR
  • 541
  • 5
  • 16
0
votes
1 answer

How to tell if every consumer finished in Spring Cloud Stream Kafka?

I'm trying to black-box test a Spring Boot application which is using Spring Cloud Stream Kafka. The expected results (in the DB) may differ based on the message processing order. How could I reliably tell if one message was processed and I can send…
0
votes
1 answer

Spring Cloud Stream annotation support question

With Spring Cloud Stream annotations being deprecated, is there a targeted release, or better yet, a targeted date for the release after which the annotation-based configuration will no longer be supported? Our team has quite a bit of code…
Keith Bennett
  • 733
  • 11
  • 25