tiangolo / uvicorn-gunicorn-machine-learning-docker

Docker image for high-performance Machine Learning web applications. With Uvicorn managed by Gunicorn in Python 3.7 and 3.6, using Conda, with CUDA and TensorFlow variants.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

why need Uvicorn?

prprprus opened this issue · comments

Hi @tiangolo

As far as I understand, Uvicorn is a single process, which is very unfavorable for CPU-bound ML tasks. Why not just use gunicorn? If you add an extra layer of Uvicorn, it should increase performance consumption. It is this harmful to online prediction services. I look forward to your advice.

Assuming the original issue was solved, it will be automatically closed now. But feel free to add more comments or create new issues.