AMQP URL schema
amqp://username:password@localhost:5672/virtualhost/exchange?routingKey=value
Specifies routing key value (optional)
Virtual host and exchange are both optional, however if only one specified it is considered to be exchange name, rather then virtual host name
Routing key will be used to publish and subscribe for messages, however by default amq.headers exchange is being used, which is routing key agnostic
✔️ Examples
Local host with default port
amqp://localhost Broker IP 10.0.0.1, default port, custom user name and password
amqp://user:12345@10.0.0.1 Broker IP 10.0.0.1, custom port 5000, virtual host name "v1", exchange name "customExchamge"
amqp://10.0.0.1:5000/v1/customExchange
Updated on : 2022-06-23 11:59:35. by : . at X1-Extreme.
Topic : rabbitmq.connectionstring