A python-based web application using flask to simulates delay and manage Queue by getting from Redis in rq
worker.
I just looking for a purpose and useful reason to use Redis in my projects.
rq worker
flask run
Note:
flask run
will need run.py file, so you have to keep main filename asrun.py
Next open http://127.0.0.1:5000/task?n={PUT_ANYTHING}
at your browser.
python -m venv env
source env/bin/activate
pip install redis flask rq
- https://python-rq.org/
- https://python-rq.org/docs/
- https://runestone.academy/runestone/books/published/pythonds/BasicDS/ImplementingaQueueinPython.html
- https://www.geeksforgeeks.org/queue-in-python/
- https://pythonise.com/series/learning-flask/flask-rq-task-queue
- https://www.youtube.com/results?search_query=python+redis
- https://www.scaler.com/topics/queue-in-python/
© Copyright Max Base, 2021