- docker ver:19
- docker-compose ver:1.27
$ git clone [email protected]:sattosan/sample-fastapi-rabbitmq.git
$ docker-compose up -d --build
$ docker-compose run --rm consumer sh
$ python consumer.py
$ curl http://localhost:8000/add-job/hey
{"send":"hey"}
メッセージ送信後,クライアント側に下記が表示されるはずです
[x] Received b'hey'
hey there
[x] Done
$ curl http://localhost:8000/add-job/hello
{"send":"hello"}
メッセージ送信後,クライアント側に下記が表示されるはずです
[x] Received b'hello'
well hello there
[x] Done