paint-brush
3x faster than Flaskby@pgjones
30,639 reads
30,639 reads

3x faster than Flask

by Philip Jones5mOctober 29th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Python has evolved since <a href="https://github.com/pallets/flask" target="_blank">Flask</a> was first released around 8 years ago, particularly with the introduction of asyncio. Asyncio has allowed for the development of libraries such as <a href="https://github.com/MagicStack/uvloop" target="_blank">uvloop</a> and <a href="https://github.com/magicstack/asyncpg" target="_blank">asyncpg</a> that are reported (<a href="https://magic.io/blog/uvloop-blazing-fast-python-networking/" target="_blank">here</a>, and <a href="https://magic.io/blog/asyncpg-1m-rows-from-postgres-to-python/" target="_blank">here</a>) to improve performance far beyond what was previously possible. Sadly Flask is not easily combined with asyncio or these libraries. However the Flask-API can be used with asyncio via the <a href="https://gitlab.com/pgjones/quart" target="_blank">Quart</a> framework.
featured image - 3x faster than Flask
Philip Jones HackerNoon profile picture
Philip Jones

Philip Jones

@pgjones

L O A D I N G
. . . comments & more!

About Author

TOPICS

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
Talkpython
Podbean
Pythonbytes
Toppodcast
Radio-t
Com
Pvsm
Afistfulofpolys
Aseanre
Afistfulofpolys
Diginaut
Sangkon