The Stet.io backend is now written using
the Quart framework
having been converted from
the Flask framework.
This was quite an easy transition, requiring instances
of flask
to be replaced with quart
and
then the keywords async await
to be added. The
keywords were required almost exclusively in the view functions,
async def view():
return await render_template(...)
This should make Stet able to handle around double the requests for the same infrastructure (although it isn't currently close to the limits :( ). It should also result in all the pages and data being served via the HTTP/2 protocol, which should make the page load time noticeably faster.
Back to blog