What is the difference between OpaqueTridentKafkaSpout
and TransactionalTridentKafkaSpout
? When would you use one over the other?
Asked
Active
Viewed 755 times
2

Uyghur Lives Matter
- 18,820
- 42
- 108
- 144

Harish Shan
- 122
- 7
1 Answers
2
It is not about which one is better, it is about your requirements.
Storm trident topologies deal with batches
of tuples.
- A
Transactional
storm spout guarantees that batches are non-overlapping and that the same batch will always contains the same set of tuples. - An
Opaque
storm spout guarantees that batches are non-overlapping, but the contents of a batch may change.
Which to use use is up to your system requirements and semantics.

Chiron
- 20,081
- 17
- 81
- 133
-
Does your comment mean that Opaque spouts are relatively faster than Transactional ones? – Adrian Seungjin Lee Jun 15 '15 at 05:34