a719114136
V2EX  ›  问与答

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

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

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

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