Should write async functions in server side in Python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Should write async functions in server side in Python?

I am starting to write Rest server side applications in Python. For the sake of performance do you recommend asyncio to write it? I am actually using Flask with a wsgi server like gunicorn. Also would you recommend another programmimg language like Go or nodejs?

7th May 2020, 11:12 PM
GeraltdeRivia
1 Answer
+ 2
I don't think flask let's you use asyncio. For asyncio use quart. Python is a good choice for a rest api although ruby/Sinatra, go, rust, Express... are other options. If you already know flask I would go with that. If you are choosing what to learn, I would get you're feet wet in lots of languages until you find one you like and then master and use it
18th Jun 2020, 5:48 PM
Zachiah sawyer
Zachiah sawyer - avatar