Should write async functions in server side in Python? | Sololearn: Learn to code for FREE!

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?

5/7/2020 11:12:47 PM

GeraltdeRivia

1 Answer

New 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