简体   繁体   中英

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. 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

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? 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. If this doesn't work you can try with apache. The ref should explain how.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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