If the RocketMQ message is in the form of String, the word-count example needs to use the message body itself for grouping.
The input data of word-count demo is as follows.
Tom
Jack
David
Shannon
Jack
Nick
Tom
David
Shannon
....
The running result of word-count demo is as follows.
If the RocketMQ message is in the form of String, the word-count example needs to use the message body itself for grouping. The input data of word-count demo is as follows.
The running result of word-count demo is as follows.