Is RabbitMQ capable of “pushing” messages from a queue to a consumer?

后端 未结 4 1062
遥遥无期
遥遥无期 2020-12-17 14:59

With RabbitMQ, is there a way to \"push\" messages from a queue TO a consumer as opposed to having a consumer \"poll and pull\" messages FROM a queue?

This has been

4条回答
  •  遥遥无期
    2020-12-17 15:38

    RabbitMQ broker is like server that wont send data to consumer without consumer client getting registering itself to server. but then question comes like below

    Can RabbitMQ keep client consumer details and connect to client when packet comes?

    Answer is no. so what is alternative well then write plugin by yourself that maintain client information in some kind of config. Plugin will pull from RabbitMQ Queue and push to client.

    Please give look at this plugin might help.
    https://www.rabbitmq.com/shovel.html

    Frankly speaking Client need to implement AMQP protocol to receive so and should listen connection on some port for that. This sound like another server.

    Regards,
    Vishal

提交回复
热议问题