How would I split a stream in Apache Storm?

后端 未结 2 1896
我在风中等你
我在风中等你 2020-12-08 07:29

I am not understanding how I would split a stream in Apache Storm. For example, I have bolt A that after some computation has somevalue1, somevalue2, and somevalue3. It wa

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-08 08:10

    You have two options here: Stream Groups and "Direct Grouping". Depending on your requirements, one of them is going to serves you.

    Have a look at WordCountTopology sample project to see whether that is what you are looking for. Otherwise, "Direct Grouping" is going to be a better alternative.

    But again, picking a grouping strategy depends on your requirements.

提交回复
热议问题