a719114136
V2EX  ›  问与答

rabbitmq 有没有类似 redis 的 blpop 的函数

  •  
  •   a719114136 · Oct 21, 2020 · 1324 views
    This topic created in 2042 days ago, the information mentioned may be changed or developed.
    5 replies    2020-10-21 18:35:48 +08:00
    dzdh
        1
    dzdh  
       Oct 21, 2020
    原生的不就是么
    a719114136
        2
    a719114136  
    OP
       Oct 21, 2020
    @dzdh 原生的不能设置 timeout 吧
    dzdh
        3
    dzdh  
       Oct 21, 2020
    @a719114136

    不知道你啥语言. PHP PECL 的 AMQP 的 consume 默认就是 block 模式的,支持自动 ACK 或手动 ACK

    timeout 指的是 指定 block 时间么?
    a719114136
        5
    a719114136  
    OP
       Oct 21, 2020
    @dzdh 感谢,我看下
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3630 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 04:49 · PVG 12:49 · LAX 21:49 · JFK 00:49
    ♥ Do have faith in what you're doing.