{"repo":"cloudamqp/amqproxy","free":true,"listed":false,"github":"https://github.com/cloudamqp/amqproxy","clone":"git clone https://github.com/cloudamqp/amqproxy.git","description":"An intelligent AMQP proxy, with connection and channel pooling/reusing","language":"Crystal","stars":407,"topics":["amqp","rabbitmq","proxy"],"license":"MIT","category":"networking-infra","readme_excerpt":"AMQProxy An intelligent AMQP proxy with AMQP connection and channel pooling/reusing. Allows e.g. PHP clients to keep long lived connections to upstream servers, increasing publishing speed with a magnitude or more. In the AMQP protocol, if you open a connection the client and the server has to exchange 7 TCP packages. If you then want to publish a message you have to open a channel which requires 2 more, and then to do the publish you need at least one more, and then to gracefully close the connection you need 4 more packages. In total 15 TCP packages, or 18 if you use AMQPS (TLS). For clients that can't for whatever reason keep long-lived connections to the server this has a considerable latency impact. This proxy server, if run on the same machine as the client can save all that latency. When a connection is made to the proxy the proxy opens a connection to the upstream server, using the credentials the client provided. AMQP traffic is then forwarded between the client and the server but when the client disconnects the proxy intercepts the Channel Close command and instead keeps it open on the upstream server (if deemed safe). Next time a client connects (with the same credentials) the connection to the upstream server is reused so no TCP packages for opening and negotiating the AMQP connection or opening and waiting for the channel to be opened has to be made. Only \"safe\" channels are reused, that is channels where only Basic Publish or Basic Get (with no ack) has occurred","default_branch":null,"files":null,"tree":[],"storefront":"/r/cloudamqp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cloudamqp/amqproxy/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."}