# Dramatiq Basic Example

This example demonstrates how easy it is to get started with Dramatiq.

## Running the Example

1. Install [RabbitMQ][rabbitmq] or [Redis][redis]
1. Install dramatiq: `pip install dramatiq[rabbitmq]` or `pip install dramatiq[redis]`
1. Run RabbitMQ: `rabbitmq-server` or Redis: `redis-server`
1. In a separate terminal window, run the workers: `dramatiq example`.
   Add `REDIS=1` before `dramatiq` to use the Redis broker.
1. In another terminal, run `python -m example 100` to enqueue 100
   `add` tasks.


[rabbitmq]: https://www.rabbitmq.com
[redis]: https://redis.io
