Loading tutorials
application.yml. Here you will learn how Kafka divides a topic's partitions among the consumers that read it.3 min readapplication.yml), can add a Maven or Gradle dependency, and can run a local Kafka broker. It covers the minimum wiring to connect an application to Kafka. Later chapters build on it for topics, producing and consuming.2 min readspring-kafka on the classpath. It also assumes you have a local broker and know what a partition is. Here you will let the application create its own topics at startup instead of creating them by hand.3 min readapplication.yml). It also assumes you have read the earlier chapters on topics, partitions, offsets, and on keys, values and JSON serialization. You should be able to run a local broker, for example with Docker.3 min readspring.kafka.* configuration from the setup chapter. Here you will write a consumer, see how Spring turns records into Java objects, and learn the errors pe3 min read@KafkaListener example from the previous chapter. Here you will learn how to run several consumer threads in one application and where the limit on parallelism comes from.3 min read@KafkaListener and know that a consumer group tracks its position in each partition. It covers how that position is saved, when Spring saves it, and how to take control of the timing.2 min readKafkaTemplate and know what partitions and offsets are. It covers the producer settings that decide whether a message survives broker failures, and what happens when the producer retries.2 min read@KafkaListener, you know what a consumer group and an offset are, and you have the configuration from the setup chapter. Here you will decide what happens when a listener method throws an exception.3 min read@KafkaListener and have read the previous chapter on retries and back-off. You should know that DefaultErrorHandler retries a failing record before giving up.2 min readKafkaTemplate, @KafkaListener, consumer groups and offset commits work, and that you have configured acks: all and idempotence as in the earlier chapters on reliable delivery.3 min readOrderPublisher, OrderListener and OrderEvent classes from the earlier chapters. It also assumes you know JUnit 5 and @SpringBootTest. You will test the producer and the listener against a real broker instead of mocking KafkaTemplate.2 min read