paint-brush
Why You Should (Almost) Always Choose Sync Gunicorn Workersby@shamik-ray
19,791 reads
19,791 reads

Why You Should (Almost) Always Choose Sync Gunicorn Workers

by Shamik Ray5mApril 19th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow
EN

Too Long; Didn't Read

Gunicorn is a widely popular WSGI Server and its popularity is because it is lightweight, fast, simple yet can support most of the requirements you would have to host an app on production. The default worker type is Sync and I will be arguing for it. Async workers like Gevent create new greenlets (lightweight pseudo threads) Every time a new request comes they are handled by greenlets spawned by the worker threads. At the same time, the resources needed to serve the requests will be less.

Company Mentioned

Mention Thumbnail
featured image - Why You Should (Almost) Always Choose Sync Gunicorn Workers
Shamik Ray HackerNoon profile picture
Shamik Ray

Shamik Ray

@shamik-ray

Tech Lead @ Twilio. Prev build Engati from Scratch. Loves everything in science.

About @shamik-ray
LEARN MORE ABOUT @SHAMIK-RAY'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Shamik Ray HackerNoon profile picture
Shamik Ray@shamik-ray
Tech Lead @ Twilio. Prev build Engati from Scratch. Loves everything in science.

TOPICS

Languages

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite