talira

AMQP (Elixir)

Elixir client for RabbitMQ over AMQP 0.9.1

open sourceMITfree

AMQP is an Elixir wrapper around the official Erlang RabbitMQ client, for AMQP 0.9.1 with RabbitMQ 3 and 4. It opens connections and channels, declares queues and exchanges, publishes, gets and subscribes, and can open configured connections and channels when the application starts and reconnect them when they drop. Its API is modelled on Langohr, the Clojure RabbitMQ client.

Problems it solves

  • publish and consume RabbitMQ messages from an Elixir app
  • set up a RabbitMQ consumer GenServer in Elixir that reconnects when the broker restarts
  • declare RabbitMQ queues with dead-letter exchanges from Elixir

Features

  • connections, channels, queues and exchanges for RabbitMQ
  • publish, get, subscribe and consumer GenServers
  • connections and channels from config, opened at startup and reconnected automatically
  • queue, exchange and consume arguments such as TTLs and dead-letter exchanges
  • works with RabbitMQ 3 and 4 through the official Erlang client

Limitations

  • Supports AMQP 0.9.1 only, not AMQP 1.0, and its makers don't plan to add it.1

Alternatives

The same job

These do what AMQP (Elixir) does.

  1. brod An Apache Kafka client for Erlang and Elixir

Compare AMQP (Elixir) with the top 3