Rabbitmq消息到达时间戳 [英] Rabbitmq message arrival time stamp

查看:810
本文介绍了Rabbitmq消息到达时间戳的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种方法可以从使用者那里获取在队列中放置消息时的时间戳记. 不是它何时发布,而是它何时真正进入队列.

Is there a way to get the timestamp when a message was placed on the queue, from a consumer. Not when it was published, but when it actually made it to the queue.

推荐答案

没有办法解决这个问题,除非您声明自己为此编写了一个插件. AMQP 规范中没有任何内容表明该消息必须知道它何时到达队列.

No there's no way to figure this out, unless, as you state yourself you write a plugin for this. There is nothing in the AMQP specification that says that the message must know when it arrived in the queue.

从AMQP的角度来看,没有必要知道这一点.在很多情况下,邮件可能会通过多个队列,然后哪个队列应该代表相关的时间戳?

There is no need from the AMQP point of view to know this. There are also many cases when the message might pass through several queues and then which queue should represent the relevant timestamp?

这篇关于Rabbitmq消息到达时间戳的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆