Hello everyone, I am a programmer from China. I used to like using Tornado, but now I want to learn to use the sanic framework. I have some questions that I want to be answered
“I have seen that most methods for improving the efficiency of sanic are to specify the fast parameter as true in the run function. When I specify true, I actually create two processes that occupy two cores of the system, right?”,
My usual practice is to start multiple services manually and forward them to the specified process using the nginx payload.
“Usually, my server performs multiple services, such as user service, account service, ws (web socket) service, and communicates with other services through http.”. So I will manually start the process based on the number of cores in the hardware device. When I start two user services and use nginx forwarding, is it completely equivalent to user. run (workers=2)?
If not, can I start all services on the same device and specify run (fast=True) for all services?