Deploying to production
We have finally made it. After working your way through the application development process, there finally is a product to launch out into the ether of the World Wide Web (WWW). The obvious question then becomes: What are my options? There are really two sets of questions that need to be answered, as follows:
- First question: Which server should run Sanic?
There are three options: Sanic server, an ASGI server, or Gunicorn.
- Second question: Where do you want to run the application?
Some typical choices include a bare-metal virtual machine (VM), a containerized image, a platform-as-a-service (PaaS), or a self-hosted or fully managed orchestrated container cluster. Perhaps these choices might make more sense if we put some of the commonly used product names to them, as follows:
Choosing the right server option
As we stated, there are...