### Start RabbitMQ with Docker Compose Source: https://github.com/elixir-broadway/broadway_rabbitmq/blob/main/README.md Use the provided `docker-compose.yml` file to run RabbitMQ locally via Docker Compose. This is useful for running integration tests. ```bash docker-compose up -d ``` -------------------------------- ### Configure Broadway with RabbitMQ Producer Source: https://github.com/elixir-broadway/broadway_rabbitmq/blob/main/README.md Configure Broadway to use `BroadwayRabbitMQ.Producer` by specifying the module, queue name, and concurrency settings. This example also shows a basic `handle_message` callback. ```elixir defmodule MyBroadway do use Broadway def start_link(_opts) do Broadway.start_link(__MODULE__, name: __MODULE__, producer: [ module: {BroadwayRabbitMQ.Producer, queue: "my_queue", }, concurrency: 1 ], processors: [ default: [ concurrency: 10 ] ] ) end def handle_message(_, message, _) do IO.inspect(message.data, label: "Got message") message end end ``` -------------------------------- ### Run Non-Integration Tests Source: https://github.com/elixir-broadway/broadway_rabbitmq/blob/main/README.md Execute tests that do not require external dependencies by using the `--exclude integration` flag with `mix test`. ```bash mix test --exclude integration ``` -------------------------------- ### Add BroadwayRabbitMQ Dependency Source: https://github.com/elixir-broadway/broadway_rabbitmq/blob/main/README.md Add `:broadway_rabbitmq` to your project's dependencies in `mix.exs` to include the library. ```elixir def deps do [ {:broadway_rabbitmq, "~> 0.7.0"} ] end ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.