Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hughplay/celery_fastapi_demo
A microservices demo built with celery and fastapi.
https://github.com/hughplay/celery_fastapi_demo
celery docker docker-compose fastapi flower microservices
Last synced: 17 days ago
JSON representation
A microservices demo built with celery and fastapi.
- Host: GitHub
- URL: https://github.com/hughplay/celery_fastapi_demo
- Owner: hughplay
- Created: 2023-12-05T09:52:32.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-26T08:01:48.000Z (about 1 year ago)
- Last Synced: 2024-11-19T09:24:29.843Z (3 months ago)
- Topics: celery, docker, docker-compose, fastapi, flower, microservices
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Microservices Demo
A microservices demo built with [Celery](https://github.com/celery/celery) and [FastAPI](https://github.com/celery/celery).
**Features:**
- launch all with one `docker-compose up`
- services run in isolated docker container
- submit tasks with RESTful API (FastAPI)
- separated task queues
- concurrence control
- tasks monitor## Quick Start
**Launch the demo:**
``` sh
docker-compose up
```**Check the page:**
- FastAPI page: http://127.0.0.1:8081/docs
- tasks monitor page (powered by [flower](https://github.com/mher/flower)): http://127.0.0.1:5555*Note: please change IP address and ports accordingly, they are specified in `docker-compose.yaml`*
**Try the demo:**
- Request `add` or `multiply` services in the FastAPI page and see the interaction process from the log (terminal window of launching `docker-compose`).
- Request `check` api with `task_id` to see the status and the result of the request.
- Check the monitor page to see all submitted tasks.