spring-boot 2.5.2
spring-cloud Hoxton.SR12
spring-kafka 2.6.7 (downgraded due to issue: https://github.com/spring-cloud/spring-cloud-stream-binder-kafka/issues/1079)
I'm following this recipe to handle deserialisation errors:…
I have a project that I've upgraded to a recent version of spring boot and spring cloud and noticed some unexpected behaviour.
spring-boot: 2.5.2
spring-cloud 2020.0.3
Also worth noting, I have downgraded spring-kaka due to issue…
We have a Kafka Stream app using Spring Cloud Stream connecting to 3 brokers with replication factor 3 using AWS MSK.
Now there is a regular patching once in every month where at a time only single broker is down. But the Kafka stream app goes down…
I am setting up a basic Spring Cloud Stream producer with Kafka. The intent is to accept a HTTP POST, save the result of the post to a database with Spring Data JPA, and write the results to a Kafka topic using Spring Cloud Stream Kafka Binder. I…
For my kafka batch consumer there are two types of situations I would like to handle.
Deserialization exceptions that occur before the listener has received the records. Not much point retrying these, just send straight to DLQ.
Exceptions that…
In the Spring Cloud Stream application with Kafka binders, I am trying to PAUSE/RESUME the input binders. I searched and all of those sample solutions suggest using…
I have seen lots of examples in the internet spring cloud stream kafka. But most of them don't use it as a web application. It's just a application as a consumer. I want to know that, If i use the spring cloud stream kafka in my web application, is…
We have a topology reading from input topic (with binder: x - broker address: x) and the records are processed and written to output topic (with binder: y - broker address: y) using spring cloud stream kafka streams. Records are not written to…
I am developping a simple spring boot application using spring cloud stream and kafka.
I get this error when I added kafka consumer bean.
Spring boot version: 2.5.0
Spring cloud version: 2020.0.3-SNAPSHOT
Kafka client version: 2.7.1
Error log:
An…
I need the producer to send messages to the topic after the completion of the method annotated as @Transactional, and if an exception is thrown in the method, the message should not be sent to the topic (or rolled back before the consumer reads…
Consider I have set SCS property enableAutoCommitOnError=true (and enableAutoCommitOffset=true and ackEachRecord=true as well)
And I have a method that listens for errors as follows:
@StreamListener("errorChannel")
public void…
What will happen If partitionCount (spring.cloud.stream.bindings..producer.partitionCount) is greater than 1 and consumer.partitioned (spring.cloud.stream.bindings..consumer.partitioned) is false (Using Kafka)
For example, I configure a topic have 2 partitions, but in my application with 1 instance, I use Flux.parallel(10) to consume the message, and it has 1000 message lag on that topic, what will happen?
Will it poll 10 messages per time? from 2…