ExAliyunAMQP.Connection

This library is built on amqp and make a simple wrapper for AMQP.Connection within Alibaba AMQP product's authorization.

Installation

Adding ex_aliyun_amqp to your list of dependencies in mix.exs:

def deps do
[
{:ex_aliyun_amqp, "~> 0.1"}
]
end

Sample

def main() do
options = [
access_id: "",
secret_key: "",
owner_id: "",
host: "",
virtual_host: ""
]
{:ok, connection} = ExAliyunAMQP.Connection.open(options)
# The returned `connection` is an AMQP.Connection, and then
# can be used for the ongoing call to AMQP.Channel.open/1 .
end

Reference

Idiomatic Elixir client for RabbitMQ
Erlang RabbitMQ Client library