2

What is the difference between OpaqueTridentKafkaSpout and TransactionalTridentKafkaSpout? When would you use one over the other?

Uyghur Lives Matter
  • 18,820
  • 42
  • 108
  • 144
Harish Shan
  • 122
  • 7

1 Answers1

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