Updated on 2022-09-14 GMT+08:00

Development Process

Kafka client roles include Producer and Consumer, which share the same application development process.

Figure 1 and Table 1 show each phase of the development process.

Figure 1 Kafka client application development process
Table 1 Kafka client application development process description

Phase

Description

Reference Document

Understand the basic concepts.

Before developing an application, learn basic concepts of Kafka, and determine whether the desired role is Producer or Consumer based on the actual scenario.

Common Concepts

Prepare the development and operating environment.

The Java language is recommended for the development of Java applications. The IntelliJ IDEA tool can be used.

The Kafka running environment is the Kafka client. Install and configure the client according to the guide.

Preparing for Development and Operating Environment

Prepare projects

Kafka provides program samples for different scenarios. You can import the program samples for learning.

Configuring and Importing a Sample Project

Develop projects based on scenarios.

Producer and Consumer API usage samples are provided and cover API, and multi-thread usage scenarios, helping you quickly know Kafka interfaces well.

Developing an Application

Compile and run the application.

Compile the developed application and submit it for running.

Application Commissioning

View application running results.

Program running results will be written to and printed on the console. You can use a Linux client to consume topic data to check whether data has been successfully written.

Application Commissioning