Home > kafka-uroboros > TopicNameStrategy > byDelay
Name topics by seconds the retry is delayed.
Signature:
static readonly byDelay: TTopicNameStrategyFactory;
* 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.
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
.