Loading tutorials
spring-kafka on the classpath. It covers how Kafka splits a topic's partitions among the consumers that read it. That split decides how much parallelism you get, what or6 min readspring.kafka.* properties map to Kafka client settings. Later chapters build the producer, the listener and the error handling on top of thi5 min read@Configuration, application.yml), have the spring-kafka dependency on the classpath, and understand that a topic is split into partitions (covered in the first chapter). Here you will learn how Spring creates topics for you at startup, w5 min readspring-kafka on the classpath and a broker reachable at localhost:9092. It covers what a record's key and value do, how they are turned into bytes, and how Spring's JSON support be6 min readKafkaTemplate. It assumes you know Java and basic Spring Boot (beans, dependency injection, application.yml). It also assumes you have read the earlier chapters on topics, partitions, offsets and keys and values, and t5 min readorders topic carrying OrderEvent JSON.4 min read@KafkaListener, and that you know the topic, partition, offset and consumer group model from the earlier chapters. It covers what a committed offset is, when Spring commits it, and how to take control of that timing.6 min readKafkaTemplate and know what partitions, offsets and replicas are. Consumer-side failures are covered in lat6 min read@KafkaListener and understand offsets and consumer groups from the earlier chapters. It covers what happens when a listener method throws, how to retry with a delay between attempts, and which failures should never be retried. Dead-letter topics, which catch re5 min read@KafkaListener, and that you have read the previous chapter on retries and back-off with DefaultErrorHandler. You should also know what a partition and an offset are.6 min readKafkaTemplate and @KafkaListener, and that you understand acks=all and idempotence from the delivery guarantees chapter.6 min readOrderPublisher, OrderListener, OrderEvent and NewTopic code from the order service. You should also know basic JUnit 5, Mockito and @SpringBootTest. Here you will test that code at three levels, and you will s4 min read