RabbitMq
Start sending messages to rabbitmq without writing a single line of code
Create file ./connections/sample-rabbit-connection.json
{
"type": "rabbit",
"id": "sample-rabbit-connection",
"uri": "amqp://your_username:your_password@localhost:5672"
}
Create file ./queries/analytics.json
{
"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 queueconnection
- connection id from ./connections/sample-rabbit-connection.json
exchange
- rabbit exchange namebody
- message body, it will use all params from params
sectionheaders
- 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)