Storm topology components

The following sections explain all the components of a Storm topology:

  • Topology: A topology is a DAG (directed acyclic graph) of spouts and bolts that are connected with stream groupings. A topology runs continuously untill it is killed.
  • Stream: A stream is an unbounded sequence of tuples. A tuple can be of any data type. It supports all the Java data types.
  • Stream groupings: Stream grouping decides which bolt receives a tuple from a spout. Basically, these are the strategies about how the stream will flow among different bolts. The following are the built-in stream groupings in Storm.
  • Shuffle grouping: It is a default grouping strategy. Tuples are randomly distributed and each bolt gets an equal number of streams ...

Get Modern Big Data Processing with Hadoop now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.