Rabbitmq- Designing a message replay service

后端 未结 2 1948
旧时难觅i
旧时难觅i 2021-02-01 04:18

I am trying to design a replay mechanism that will enable users to replay messages from the queues. The best design I have come up for an exchange that contains multiple queues

2条回答
  •  不思量自难忘°
    2021-02-01 05:03

    The first solution is feasible. Given that rabbit MQ ships with a tracing plugin, storing the message in DB becomes even more easier as it simply boils down to consuming from a queue bound to amq.rabbitmq.trace exchange.

    This exchange is specific to a vhost and every vhost has its own amq.rabbitmq.trace exchange. In addition when creating a new trace it is possible to restrict on which queue/exchange to enable tracing , therby giving the flexibility to disable tracing where it is not required.

    Refer the following links to configure tracing:
    https://www.rabbitmq.com/firehose.html
    https://www.rabbitmq.com/blog/2011/09/09/rabbitmq-tracing-a-ui-for-the-firehose/

提交回复
热议问题