- 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.
推薦閱讀
- Instant Zepto.js
- Raspberry Pi for Secret Agents(Third Edition)
- Hadoop+Spark大數據分析實戰
- INSTANT CakePHP Starter
- The Data Visualization Workshop
- Mastering KnockoutJS
- Node.js Design Patterns
- PHP從入門到精通(第4版)(軟件開發視頻大講堂)
- 速學Python:程序設計從入門到進階
- GameMaker Essentials
- Orchestrating Docker
- Java Web開發實例大全(基礎卷) (軟件工程師開發大系)
- 寫給大家看的Midjourney設計書
- IPython Interactive Computing and Visualization Cookbook
- C#面向對象程序設計(第2版)