Skip to content

Commit

Permalink
just a little more explanation of cascading consumer
Browse files Browse the repository at this point in the history
  • Loading branch information
ewollesen committed Oct 2, 2024
1 parent ddc4513 commit ee5da4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/events/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,10 @@ func (c *NotBeforeConsumer) notBeforeFromMsgHeaders(msg *sarama.ConsumerMessage)
}

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

0 comments on commit ee5da4a

Please sign in to comment.