我在AMQP方面的经验有限,如果可以的话,请改进一下。
足够使用
host+pid
确定一个过程
AppID是自由形式的,因此一种方法可能不仅仅包括应用程序ID。例如
appid: applicationid.serverip.pid
这看起来像是在扩展“app id”的语义,但是
app_id is entirely application defined
.
应用程序可以通过简单的字符串比较,用“app id”标识自己。
arbitrary key values are permitted
在基本属性的基础上,这样您可以/也可以添加如下属性:
origin-host: serverip
origin-pid: pid
这可能需要在使用“builtin”字段(如app_id)时进行少量的额外编程工作。与此相关的“over-the-wire”成本也很小(自定义属性
are serialized as positional arguments in message header instead of associative array to save bandwidth
)
这可能与解码
阿皮德
字段。
您还可以设置死信交换来保存消息本身,但消息需要操作员干预才能使用。所以我认为这只对诊断有帮助。