简体   繁体   中英

How to create structure in Kafka for delay resending message in topic

Delay producing the message to the topic? If not, will it appear soon?

I have "NQueue" topic for sending differents notifications(Sms, Push, Transactions). I am trying turn a failed message(HttpRequest) back to queue with some delay.

I have already re-read all the documentation and have not found this functionality. If it does exist, or you know how to implement it, then write here, please.

Like:

await producer.ProduceAsync(topic, message, delay);

Below I will attach a photo of my vision...

在此处输入图片说明

If you are considering the use of Kafka Stream , I would suggest to consider the option of using windowed aggregations . In short, as follows:

In case streams are not suitable for you, look at the Dead Letter Queues

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM