Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 1.14 KB

kafka-uroboros.topicnamestrategy.bydelay.md

File metadata and controls

37 lines (23 loc) · 1.14 KB

Home > kafka-uroboros > TopicNameStrategy > byDelay

TopicNameStrategy.byDelay property

Name topics by seconds the retry is delayed.

Signature:

static readonly byDelay: TTopicNameStrategyFactory;

Remarks

* Each topic in consumer group will have individual retry topics, therefore retries could be consumed concurrently. * If consumer group id groupId is not provided, retries may be consumed by other consumer groups.

Example

If topic and groupId supplied:

{ topic: 'foo', groupId: 'bar' }

* Retry topics will be the following: bar-foo-delay-10, bar-foo-delay-30, ... , bar-foo-delay-N. * Dead letter topic will be foo-dlq.

If only topic supplied:

{
  topic: 'foo';
}

* Retry topics will be the following: foo-delay-1, foo-delay-2, ... , foo-delay-N. * Dead letter topic will be foo-dlq.