search

Home  >  Q&A  >  body text

redis - 关于队列实时消费?

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

怪我咯怪我咯2795 days ago610

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2017-04-24 16:01:59

    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

    reply
    0
  • 迷茫

    迷茫2017-04-24 16:01:59

    redis list + supervisor

    blpop
    
    brpop
    

    reply
    0
  • Cancelreply