Skip to main content
Build Kafka producers and consumers with Java Java is the official language for Kafka development, providing the most complete and up-to-date client library. This section walks through creating a project and building your first producer and consumer. What you’ll learn:
  • How to set up a Java project with Kafka dependencies
  • How to create producers with callbacks and keys
  • How to create consumers with consumer groups
  • How to handle graceful shutdown

Learning path

StepTutorialDescription
1Project setupChoose Maven or Gradle
2ProducerCreate producers with callbacks, keys, and batching
3ConsumerCreate consumers with groups and graceful shutdown
4AdvancedRebalance listeners, seek/assign, threading
See it in practice with ConduktorConduktor Console helps you develop and debug Java applications by providing visual access to topics, consumer groups, and messages. Test your producer output and monitor consumer progress in real-time.

Next steps