How do you process messages with deadline

65 Views Asked by At

If you have continuous messages generated with different deadlines, how would you process these messages in order of deadlines. I have implemented by saving message to persistent store. Later schedule jobs processing the most recent expired messages. If I have to implement this in pub/sub mechanism, how should my queue give priority to deadline time? Is there any queuing solution that delivers messages based on ttl or deadline?

0

There are 0 best solutions below