In this segment, we will run the word count application and check whether the program performs as expected or not.
As you saw in the video above, the program works well and is able to return the word count as expected.
To run this program, we first created two topic: streams-plaintext-input and streams-wordcount-output. Next, we ran the word count application. We then started a consumer that was waiting for the messages to be pushed into the streams-wordcount-output topic. Initially, since there was no message in the input topic, nothing was getting pushed to this output topic and the consumer screen was blank. So, we started a producer and pushed the messages to the input topic, streams-plaintext-input. As soon as we did this, the word count application started processing the messages in the input topic and writing the word and its count to the output topic, When we switched to the consumer window, we saw that the consumer was consuming messages from the output topic.