redis - 关于队列实时消费?
怪我咯
怪我咯 2017-04-24 15:59:59
0
2
605

在项目中是用的cron每分次跑一次,大家做的是实时的吗还是也是跑定时?

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(2)
Peter_Zhu

Use the blocking queue of redis for real-time consumption. If there is no message, it will be automatically blocked. If there is a message, it will be automatically consumed.
blpop and brpop commands

迷茫

redis list + supervisor

blpop

brpop
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template