I need to build a system that can handle a fairly high amount of delayed tasks (e.g. scheduled emails). For non-delayed tasks I would go for something like RabbitMQ.
But, is it ok to let tasks lingering in the queue for extended amounts of time, like days?
Would it make more sense to store the tasks in a database and then periodically check whether there are tasks which need to be processed?