Asynchronous WSGI with Twisted

后端 未结 2 2106
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-09 11:17

I\'m building a web interface for a twisted application and would like to use WSGI rather than twisted.web directly (since the rest of the website is WSGI and I already have a s

2条回答
  •  滥情空心
    2021-02-09 11:41

    Why do you want to use WSGI and do asynchronous things? The benefit of WSGI is that you can deploy your application on any WSGI container. If you start using Twisted APIs to do asynchronous things, then you can only deploy your application in Twisted's WSGI container.

    You should probably just use Twisted Web without WSGI for your asynchronous code.

提交回复
热议问题