Files
mtusi2026lab2/infra/rabbitmq/definitions.json
T

45 lines
1.7 KiB
JSON

{
"rabbit_version": "4.1.8",
"vhosts": [
{"name": "messenger", "description": "lab6 attachment pipeline", "default_queue_type": "quorum"}
],
"exchanges": [
{"name": "attachments", "vhost": "messenger", "type": "direct", "durable": true, "auto_delete": false, "internal": false, "arguments": {}},
{"name": "attachments.dlx", "vhost": "messenger", "type": "fanout", "durable": true, "auto_delete": false, "internal": false, "arguments": {}}
],
"queues": [
{"name": "attachments.process", "vhost": "messenger", "durable": true, "auto_delete": false, "arguments": {"x-queue-type": "quorum"}},
{"name": "attachments.process.dlq", "vhost": "messenger", "durable": true, "auto_delete": false, "arguments": {"x-queue-type": "quorum"}}
],
"bindings": [
{"source": "attachments", "vhost": "messenger", "destination": "attachments.process", "destination_type": "queue", "routing_key": "attachment.process.v1", "arguments": {}},
{"source": "attachments.dlx", "vhost": "messenger", "destination": "attachments.process.dlq", "destination_type": "queue", "routing_key": "", "arguments": {}}
],
"policies": [
{
"vhost": "messenger",
"name": "attachments-process",
"pattern": "^attachments\\.process$",
"apply-to": "queues",
"priority": 10,
"definition": {
"dead-letter-exchange": "attachments.dlx",
"dead-letter-strategy": "at-least-once",
"overflow": "reject-publish",
"delivery-limit": -1
}
},
{
"vhost": "messenger",
"name": "attachments-dlq",
"pattern": "^attachments\\.process\\.dlq$",
"apply-to": "queues",
"priority": 10,
"definition": {
"max-length": 100000,
"overflow": "reject-publish"
}
}
]
}