网上没有找到一个简单的,可快速使用的示例,所以提供一个基于spring boot + rabbitmq的示例:
https://gitee.com/jscode/springboot-rabbitmq-delay-demo
原理参考
Spring Boot与RabbitMQ结合实现延迟队列