RabbitMq

Start sending messages to rabbitmq without writing a single line of code

{
  "type": "rabbit",
  "id": "sample-rabbit-connection",
  "uri": "amqp://your_username:your_password@localhost:5672"
}
{
  "type": "rabbit-publish",
  "id": "analytics",
  "connection": "sample-rabbit-connection",
  "queue": "analytics",
  "exchange": "",
  "body": {
    "productId": ":productId",
    "campaign": ":campaign",
    "campaignProduct": ":productId - :campaign"
  },
  "headers": {
    "testHeaderId": 1234,
    "productId": ":productId"
  },
  "params": [
    {
      "name": "productId",
      "required": true
    },
    {
      "name": "campaign",
      "required": true,
      "default": "no-campaign"
    }
  ]
}

queue - target queue
connection - connection id from ./connections/sample-rabbit-connection.json
exchange - rabbit exchange name
body - message body, it will use all params from params section
headers - rabbitmq headers that you want to pass params - all params that you want to pass to this query

Last modified April 16, 2024: content fix (a2d9b96)