Apache RocketMQ · JSON Structure

Apache Rocketmq Message Request Structure

Request to send a message to RocketMQ

Type: object Properties: 6 Required: 2
Cloud NativeMessagingMessage QueuePub-SubStreamingApacheOpen Source

MessageRequest is a JSON Structure definition published by Apache RocketMQ, describing 6 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

topic body tag keys properties delayLevel

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-rocketmq/refs/heads/main/json-structure/apache-rocketmq-message-request-structure.json",
  "description": "Request to send a message to RocketMQ",
  "type": "object",
  "properties": {
    "topic": {
      "type": "string",
      "description": "Target topic name"
    },
    "body": {
      "type": "string",
      "description": "Message body content"
    },
    "tag": {
      "type": "string",
      "description": "Message tag for filtering"
    },
    "keys": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Message keys for lookup"
    },
    "properties": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "User-defined message properties"
    },
    "delayLevel": {
      "type": "int32",
      "description": "Delay level for scheduled messages (0=no delay)"
    }
  },
  "required": [
    "topic",
    "body"
  ],
  "name": "MessageRequest"
}