User Tools

Site Tools


org.gramar.storm.gramar:walkthrough

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
org.gramar.storm.gramar:walkthrough [2016/08/12 17:58]
chrisgerken
org.gramar.storm.gramar:walkthrough [2016/08/12 18:07]
chrisgerken
Line 354: Line 354:
  
 </​code>​ </​code>​
 +
 +==== Evolving the Topology ====
 +
 +When you write a Storm topology it will evolve. ​ You'll find yourself adding, removing, merging or splitting spouts and bolts. ​ The streams will change, too.  You'll add and remove streams, change their source or destination and change their fields and their formats. ​ Whenever you need to evolve your topology, you can simply update the original model to which you applied the gramar and apply the gramar again.
 +
 +As long as you keep your code changes between the begin/end comment pairs you can make most of the above changes easily while keeping your business logic in place. ​ There are some special cases where you do have to be careful:
 +
 +  * If you change the name of a stream, a new method will be generated in the receiving bolt's helper class. ​ Be sure to save the previous read method on the side so you can copy the logic after the gramar re-apply.
 +  * If you change the name (label) of a bolt or spout, a new set of classes will be generated according to the new name, but the classes for the previous label/name will still remain. ​ You have to hand copy the cope you want to keep. 
org.gramar.storm.gramar/walkthrough.txt ยท Last modified: 2016/08/13 11:41 by chrisgerken