Install python dependencies in your virtualenv
pip install -r requirements.txtRun example with memory as backend.
uvicorn example.app:appYou can also install broadcaster locally using pip install -e ..
In order to run the app with different backends, you have to set the env
BROADCAST_URL and start the docker services.
| Backend | Env | Service command |
|---|---|---|
| kafka | export BROADCAST_URL=kafka://localhost:9092 |
docker-compose up kafka |
| redis | export BROADCAST_URL=redis://localhost:6379 |
docker-compose up redis |
| postgres | export BROADCAST_URL=postgres://localhost:5432/broadcaster |
docker-compose up postgres |