Updated on 2022-08-16 GMT+08:00

Typical Scenario Description

A typical scenario can help you quickly learn and master the Storm topology structure and Spout/Bolt development process.

Scenario Description

Service processing of a dynamic word counting system is described as follows. The data source is a logical unit that produces random text continuously.

  • The data source continuously sends random text, such as "apple orange apple", to the text splitting logic.
  • The word splitting logic splits each text entry sent by the data source by space, such as "apple", "orange", "apple", and then sends each word to the word counting logic.
  • The word counting logic increases the number of times that a specific word occurs by one when receiving the word, and prints the real-time results. For example:

    apple: 1

    orange: 1

    apple: 2