简体   繁体   中英

Which webserver to use with bottle?

Bottle can use several webservers:

Build-in HTTP development server and support for paste, fapws3, flup, cherrypy or any other WSGI capable server.

I am using Bottle for a desktop-app and I guess that the development server is enough in this case. I would like to know if some of you have experience with one of the alternative server.

Which server for which purpose?

Python WSGI web apps work fine in Apache, using mod_wsgi .

On Windows, I have WSGI web apps in production on IIS using isapi-wsgi

I shall recommend you with uWSGI , he is ultra fast!

Try to set up a nginx server with uWSGI-Python as backend to run your bottle app:)

I am now using waitress and it seems stable and fast. Moreover it is pure Python.

Here are some pretty comprehensive benchmarks of various Python web servers...

http://nichol.as/benchmark-of-python-web-servers

I've used Cherrypy and Paste with Bottle and had no problems with either.

Made a quick test with CherryPy , Paste , and Rocket with ApacheBench on localhost (Mac OS X 10.6) and Rocket was the fastest one. Even more stable with higher concurrency.

For a screamingly fast, ultra-lightweight asynchronous WSGI server check bjoern . It is written in C and uses libev .

我使用Gevent,非常快,新版本(gevent-1.1rc5)有一个SSL错误修复。

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