Skip to content

Commit ee5da4a

Browse files
committed
just a little more explanation of cascading consumer
1 parent ddc4513 commit ee5da4a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

data/events/events.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,10 @@ func (c *NotBeforeConsumer) notBeforeFromMsgHeaders(msg *sarama.ConsumerMessage)
439439
}
440440

441441
// CascadingConsumer cascades messages that failed to be consumed to another topic.
442+
//
443+
// It also sets an adjustable delay via the "not-before" and "failures" headers so that as
444+
// the message moves from topic to topic, the time between processing is increased according
445+
// to [FailuresToDelay].
442446
type CascadingConsumer struct {
443447
Consumer asyncevents.SaramaMessageConsumer
444448
NextTopic string

0 commit comments

Comments
 (0)