I had the following situation:
- There are several bolts that calculate different values
- These values ββare sent to the render screw.
- A visual screw opens a web socket and sends values ββthat need to be visualized somehow
The fact is that the visualization bolt is always the same, but it sends a message with a different header for each type of bolt, which may be its input. For example:
My question is: should I create 3 independent instances where each instance will have one thread, for example.
builder.setBolt("forSum", new VisualizationBolt(),1).globalGrouping("bolt-sum");
builder.setBolt("forDif", new VisualizationBolt(),1).globalGrouping("bolt-dif");
builder.setBolt("forMul", new VisualizationBolt(),1).globalGrouping("bolt-mul");
Or should I do the following
builder.setBolt("forAll", new VisualizationBolt(),3)
.fieldsGrouping("forSum", new Fields("type"))
.fieldsGrouping("forDif", new Fields("type"))
.fieldsGrouping("forMul", new Fields("type"));
, ?
?
, , - , - , - ? ?
, , , , - ?