- 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.
推薦閱讀
- Learning Neo4j
- AngularJS入門與進階
- SOA實踐
- CMDB分步構(gòu)建指南
- 算法精粹:經(jīng)典計算機科學問題的Java實現(xiàn)
- 數(shù)據(jù)結(jié)構(gòu)與算法JavaScript描述
- 微信小程序項目開發(fā)實戰(zhàn)
- Python項目實戰(zhàn)從入門到精通
- 汽車人機交互界面整合設(shè)計
- PHP與MySQL權(quán)威指南
- MyBatis 3源碼深度解析
- IBM RUP參考與認證指南
- Visual Basic語言程序設(shè)計上機指導與練習(第3版)
- Web前端開發(fā)技術(shù)實踐指導教程
- Swift 2 Blueprints