简体   繁体   English

Python:将瓶子与Tornado Web服务器一起使用来处理并发连接

[英]Python: Using bottle with Tornado web server to handle concurrent connections

I'm new to Python and web technologies, I am currently building a web service that uses bottle framework. 我是Python和Web技术的新手,目前正在构建使用Bottle框架的Web服务。 But I found out that the requests to my server actually interfere with each other, ie when multiple requests are running concurrently, they all get significantly slow. 但是我发现对我的服务器的请求实际上是相互干扰的,即,当多个请求同时运行时,它们的速度都会大大降低。 After rounds of searching, it turned out to me that bottle actually has other server options (such as tornado) to handle concurrent connections when the load increases: http://bottlepy.org/docs/dev/deployment.html#server-options 经过几轮搜索,结果发现我的瓶子实际上还有其他服务器选项(例如龙卷风)来处理负载增加时的并发连接: http : //bottlepy.org/docs/dev/deployment.html#server-options

But the documentation does mention much about the actual implementation. 但是文档确实提到了很多有关实际实现的内容。 So my question is, how to handle concurrent connections using bottle in conjunction with Tornado? 所以我的问题是,如何使用Bottle和Tornado一起处理并发连接? Any degree of help would be much appreciated. 任何程度的帮助将不胜感激。

Thanks in advance, Eric 预先感谢,埃里克

You can try with different backends using this list. 您可以使用列表尝试使用其他后端。 Instead of tornado, pasteserver could be a good choice. 除了龙卷风,pasteserver可能是一个不错的选择。 If this doesn't work you can try with apache. 如果这不起作用,您可以尝试使用Apache。 The ref should explain how. 裁判应该解释如何。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM