Questions tagged [spring-cloud-stream-binder-kafka]

An Apache Kafka Binder for Spring-Cloud Streams.

Documentation: https://cloud.spring.io/spring-cloud-stream-binder-kafka/spring-cloud-stream-binder-kafka.html

Related:

472 questions
0
votes
1 answer

Send message into runtime defined Kafka Topic

I have a code that uses KafkaTemplate to send message into different Kafka topics. Topic name is received from API and can't be known in advance, the code looks like: var message = MessageBuilder.fromMessage(message) …
0
votes
0 answers

Spring cloud stream reactive kafka producer ack

Can someone point me to examples or documentation of Kafka producer written in Spring cloud stream reactive way to obtain an ack back when the publish to kafka broker is successful or when failed in a synchronous way?
0
votes
1 answer

How to shut down Spring Boot Kafka stream-processing app after current message

In a Spring Boot Kafka stream-processing app using Spring Cloud Function, how can I shut down the application (to stop it receiving any further messages) but only after responding to the current message? The scenario is this: we have an app that…
0
votes
1 answer

Spring Cloud Stream Kafka Stream Binder, MessageChannel is not created

I have a problem in my simple test application. I'd like create consumer with kafka stream binder like this. @SpringBootApplication public class CloudStreamAggregatorApplication { public static void main(String[] args) { …
0
votes
1 answer

New Consumer Group Picks Messages from Beginning

I had a Kafka consumer annotated with StreamListener without any group id. Now when I added the group-id via spring.cloud.stream.bindings.input.group it started processing all the older messages from the beginning which were already consumed by this…
0
votes
1 answer

Use StreamBridge or kafkaStreams API method in spring cloud

I am using spring-cloud-stream project to use Kafka Streams and I am new to this. As it is recommended to use functional programming I have defined a function as blow: @Configuration public class StreamConfiguration { @Bean public…
0
votes
1 answer

Spring Cloud Stream: how can I produce a Kafka message from a REST controller?

I am using Spring Cloud Stream. How can I produce a Kafka message from a REST controller route handler method? @RestController public final class TransactionController { @PostMapping("/transactions") public void recordTransaction(final…
user14900768
0
votes
1 answer

Spring cloud stream to send message to topics hosted on Confluent

I have written a Spring cloud stream message producer which is successfully posting the payload to the topic on my local bootstrap server. I want to post the payload onto the topic that I have created on Confluent Cloud. What configuration changes…
0
votes
2 answers

PropertySource in spring boot doesn't seem to work

I cannot load StringDeserializer and StringSerializer with PropertySource, but all other spring.kafka related things get loaded. Is it a bug in spring PropertySource? My common application look like…
0
votes
1 answer

Spring Cloud Stream functional approach: message conversion produces an object with empty field values

I'm trying to create a reactive Spring Cloud Stream application with kafka following the functional approach (Spring Boot: 2.3.4, SC: Hoxton.SR9, SC Stream: 3.0.9, SC Function 3.0.11). Problem: Automatically deserialized object has empty field…
0
votes
1 answer

How autoCommit works and how many message will be polled once in spring-cloud-stream reactive kafka?

I check the document, it only says how auto commit works with poll() here, and how to configure poll count, here. So how things works when I use Flux? Below are my consumer code. @Bean fun consumerInboundMsg(handler: QueueHandler):…
0
votes
1 answer

Gradle Spring Cloud Stream project does not build because of test dependency

When I try to build a Gradle Spring Boot project with Spring Cloud Stream I receive the following error: Execution failed for task ':compileTestJava'. > Could not resolve all files for configuration ':testCompileClasspath'. > Could not find…
0
votes
1 answer

How to set ValueSerde per Binding Spring Cloud Kafka Streams

I'm trying to set valueSerde per binding, however only default valueserde is being considered. AppSerde class public class AppSerdes { public static final class DepartmentSerde extends WrapperSerde { public DepartmentSerde()…
0
votes
1 answer

How To Create Dynamic Stream Listeners in Spring Cloud Stream Kafka?

I am using Spring Cloud Stream Kafka. I have StreamListeners for topics that are predefined. My new requirement is to create and stop StreamListeners runtime for a user defined topic name. So from user interface user will determine and update which…
0
votes
1 answer

Spring cloud stream binder with Azure Eventhub

I am getting the below warning message in my boot application; what could be the issue ? The provided errorChannel 'x.y.errors' is an instance of DirectChannel, so no more subscribers could be added and no error messages will be sent to global error…
user1354825
  • 1,108
  • 4
  • 21
  • 54