Storm - Conditionally consuming stream from kafka spout?
I have a scenario where I am posting json to a Kafka instance. I am then using a Kafka Spout to emit the stream to a bolt. But now I would like to add additional field (call it x ) to my json message. If x is a I would like it to be consumed by boltA, if x is b I would like it to be consumed by boltB. Is there a way to direct the stream to the proper bolt depending on the streams contents? The simplest way should be to add a SplitBolt that consumes from KafkaSpout , evaluates the field x , and forwards to different output streams: public class SplitBolt extends BaseRichBolt { OutputCollector