-
Book Overview & Buying
-
Table Of Contents
Building Python Real time Applications with Storm
By :
Storm makes it easy to deploy and run Python topologies, but developing and testing them in Storm is challenging, whether running in standalone Storm or a full Storm deployment:
This makes it difficult to debug Storm topologies using the typical tools and techniques used for other pieces of Python code, such as the common technique of running from the command line and debugging with pdb.
Petrel's mock module helps us with this. It provides a simple, standalone Python container for testing simple topologies and verifying that the expected results are returned.
In Petrel terms, a simple topology is one that only outputs to the default stream and has no branches or loops. The run_simple_topology() assumes...
Change the font size
Change margin width
Change background colour