快速和超輕量級HTTP/1.1 WSGI服務器:bjoern
bjoern 是個快速、超輕量級的 HTTP/1.1 WSGI 服務器軟件,為 CPython 編寫。使用 C 語言開發,基于 Libev 事件庫和 http-parser 開發,這是一個單線程的服務,占用內存非常低。
示例代碼:
- ~ 1000 lines of C code
- Memory footprint ~ 600KB
- Single-threaded and without coroutines or other crap
- Can bind to TCP host:port addresses and Unix sockets (thanks @k3d3!)
- Full persistent connection ("keep-alive") support in both HTTP/1.0 and 1.1, including support for HTTP/1.1 chunked responses
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!