Other sources for input to Storm
In our earlier example, we have seen integrated with Storm, one of them being Kafka (just discussed in the previous section). In Storm samples, the word count topology (which we covered in detail in an earlier chapter) doesn't use any data source for input. Instead, some sentences are hardcoded in the spout itself and this seed data is emitted to the topology. This may be fine for test cases and samples, but for real-world implementations this is neither ideal nor expected. Storm has to feed a stream of live events into the topology in almost all of the real-world implementations. We can have a variety of input sources that can be integrated with Storm. Let's have a closer look at code snippets on what all we can ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access