If I decide to use Uvicorn with Sanic in production, how should I set it up?
From the Uvicorn docs: https://www.uvicorn.org/
For production deployments we recommend using gunicorn with the uvicorn worker class.
gunicorn example:app -w 4 -k uvicorn.workers.UvicornWorker
But sanic also provides its own worker class for gunicorn
sanic.worker.GunicornWorker — so which worker am I supposed to use?
Also, and I don’t think that I have seen this before, but the Sanic docs said that: https://sanic.readthedocs.io/en/latest/sanic/deploying.html
Sanic’s own webserver is the fastest option, and it can be securely run on the Internet.
If that is the case, why should I use gunicorn / other asgi servers? I assume that there is an advantage with this with regards to worker restart and what not.