Conduit v0.8.3 Conduit.Broker.Configure View Source

Provides macros to define the messaage queue topology.

Within your broker, you can configure the topology of your message queue. Not every macro or options will apply to all message queues.

Examples

defmodule MyApp.Broker do
  use Conduit.Broker, otp_app: :my_app

  configure do
    exchange "my.topic"

    queue "my.queue", from: ["every.where"], exchange: "my.topic"
    queue "your.queue", from: ["else.where"], exchange: "my.topic"
  end
end

Link to this section Summary

Functions

Defines an exchange to setup

Defines a queue to setup

Link to this section Functions

Link to this macro exchange(name, opts \\ []) View Source (macro)

Defines an exchange to setup.

Link to this macro queue(name, opts \\ []) View Source (macro)

Defines a queue to setup.