简介

发送消息可以为消息指定一些参数

  • Delivery mode: 是否持久化,1 - Non-persistent,2 - Persistent
  • Headers:Headers can have any name. Only long string headers can be set here.
  • Properties: You can set other message properties here (delivery mode and headers are pulled out as the most common cases). Invalid properties will be ignored. Valid properties are: 
    • content_type : 消息内容的类型
    • content_encoding: 消息内容的编码格式
    • priority: 消息的优先级
    • correlation_id:关联id
    • reply_to: 用于指定回复的队列的名称
    • expiration: 消息的失效时间
    • message_id: 消息id
    • timestamp:消息的时间戳
    • type: 类型
    • user_id: 用户id
    • app_id: 应用程序id
    • cluster_id: 集群id
  • Payload: 消息内容

RabbitMQ入门教程(十一):消息属性Properties

相关文章:

  • 2022-12-23
  • 2022-01-21
  • 2021-12-10
  • 2022-01-12
  • 2021-06-22
  • 2021-06-23
  • 2021-04-24
  • 2022-02-08
猜你喜欢
  • 2022-12-23
  • 2021-11-01
  • 2021-06-20
  • 2021-08-10
  • 2021-05-26
  • 2022-02-04
相关资源
相似解决方案