Why choosing sanic All tests were run on an AWS medium instance running ubuntu, using 1 process. Each script delivered a small JSON response and was tested with wrk using 100 connections. Pypy was tested for Falcon and Flask but did not speed up requests. It can be seen sanic has the very good result, and basically it inspired by the idea behind document: uvloop: Blazing fast Python networking

Read More…

Background Current tornado-celery project seems doesn’t support celery4.x, no update for this project for long time Research pika AMQP library already have an adpator “TornadoConnection” which can be used with the Tornado IO Loop. Then it has possibility to integrate this into celery to support async connection. Before starting with this target, we need to get familar with how celery send task in client side. Assume we have a celery client use AMQP broker, and redis as result backend.

Read More…

There are two ways to use Jinja2 as Tornado’s default template engine: Inherited from mixed TemplateRendering class, and rewrite tornados’s render() function Set Jinja2 template loader as the default template loader while initialize Application For implemention 1: Please refer to: Using Jinja2 as the Template Engine for Tornado Web Framework For implemention 2: Please refer to: 在Tornado中使用jin