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.
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. |
|
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. |
|
Prepare projects |
Kafka provides program samples for different scenarios. You can import the program samples for learning. |
|
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. |
|
Compile and run the application. |
Compile the developed application and submit it for running. |
|
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. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.