{"repo":"ballerina-platform/module-ballerinax-rabbitmq","free":true,"listed":false,"github":"https://github.com/ballerina-platform/module-ballerinax-rabbitmq","clone":"git clone https://github.com/ballerina-platform/module-ballerinax-rabbitmq.git","description":"Ballerina RabbitMQ Module.","language":"Ballerina","stars":107,"topics":["ballerina","rabbitmq","messaging"],"license":"Apache-2.0","category":"chat-messaging","readme_excerpt":"Ballerina RabbitMQ Library =================== This library provides the capability to send and receive messages by connecting to the RabbitMQ server. RabbitMQ gives your applications a common platform to send and receive messages and a safe place for your messages to live until received. RabbitMQ is one of the most popular open-source message brokers. It is lightweight and easy to deploy on-premise and in the cloud. Basic usage Set up the connection First, you need to set up the connection with the RabbitMQ server. The following ways can be used to connect to a RabbitMQ server. 1. Connect to a RabbitMQ node with the default host and port: 2. Connect to a RabbitMQ node with a custom host and port: 3. Connect to a RabbitMQ node with host, port, and additional configurations: The rabbitmq:Client can now be used to send and receive messages as described in the subsequent sections. Exchanges and queues Client applications work with exchanges and queues, which are the high-level building blocks of the AMQP protocol. These must be declared before they can be used. The following code declares an exchange and a server-named queue and then binds them together. This sample code will declare, - a durable, non-auto-delete exchange of the type rabbitmq:DIRECT EXCHANGE - a durable, non-exclusive, non-auto-delete queue with the given name Next, the queueBind function is called to bind the queue to the exchange with the given routing key. This sample code will declare, - a durable, non-auto-","default_branch":null,"files":null,"tree":[],"storefront":"/r/ballerina-platform","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ballerina-platform/module-ballerinax-rabbitmq/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}