What are the advantages (or needs) of using tornado with Pusher for a Django application?

大兔子大兔子 提交于 2019-12-06 15:51:02

The only scenario I can imagine is when you need to trigger multiple messages at once, then tornado being asynchronous is obviously more beneficial then django (or any other synchronous web framework), since the latter would have to trigger message and wait for response every time.

The linked document just means that if you are using both Pusher and Tornado, you should do this extra bit of configuration to make Pusher work nicely with Tornado's non-blocking model. Frameworks that use synchronous concurrency don't need any extra work so they don't need to be mentioned specifically in the docs. You can continue to use Tornado or Django (or Flask, etc) depending on your preferences and the needs of your application.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!