- Practical Real-time Data Processing and Analytics
- Shilpi Saxena Saurabh Gupta
- 197字
- 2021-07-08 10:23:16
Stream grouping
The following are different types of grouping available with Storm:

- Shuffle grouping: Shuffle grouping distributes tuples equally across the tasks. An equal number of tuples are received by all tasks.
- Field grouping: In this grouping, tuples are sent to the same bolt based on one or more fields, for example, in Twitter if we want to send all tweets from the same tweet to the same bolt then we can use this grouping.
- All grouping: All tuples are sent to all bolts. Filtering is one operation where we need all grouping.
- Global grouping: All tuples send a single bolt. Reduce is one operation where we need global grouping.
- Direct grouping: The producer of the tuple decides which of the consumer's task will receive the tuple. This is possible for only streams that are declared as direct streams.
- Local or shuffle grouping: If the source and target bolt are running in the same worker process then it is local grouping, as no network hops are required to send the data across the network. If this is not the case, then it is the same as shuffle grouping.
- Custom grouping: You can define your own custom grouping.
推薦閱讀
- Java程序設計與開發
- Getting Started with ResearchKit
- Python自動化運維快速入門(第2版)
- Hands-On Data Structures and Algorithms with JavaScript
- PHP+MySQL網站開發項目式教程
- Linux命令行與shell腳本編程大全(第4版)
- 零基礎入門學習Python
- C語言程序設計
- 超簡單:用Python讓Excel飛起來(實戰150例)
- 從零開始:C語言快速入門教程
- Deep Learning for Natural Language Processing
- Microsoft Dynamics GP 2013 Cookbook
- 小學生C++趣味編程從入門到精通
- PHP典型模塊與項目實戰大全
- Java網絡編程實用精解