【问题标题】:Get time of message receipt by pubsub topic通过发布订阅主题获取消息接收时间
【发布时间】:2019-03-03 14:45:14
【问题描述】:

作为 pubsub 主题的订阅者,我是否可以查明 pubsub 收到消息的时间?也就是刚刚收到消息的订阅者能否查到对应的发布者发布消息的时间?

【问题讨论】:

    标签: google-cloud-pubsub


    【解决方案1】:

    pull subscriber 可以做到这一点。使用publishTime field of PubsubMessage

    如果您使用的是客户端库,请阅读库文档以了解如何访问它。例如,使用 python 客户端库,可以通过 publish_time field on the Message class 访问它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-01-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-09-09
      • 2010-11-18
      • 1970-01-01
      相关资源
      最近更新 更多