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)
…
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?
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…
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) {
…
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…
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…
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…
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…
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…
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…
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):…
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…
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()…
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…
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…