nginx/unit - a new web server container solution, support php/python/golang

nginx/unit - a new web server container solution, support php/python/golang

The repo mirror:

https://github.com/nginx/unit

 

Golang

nginx unit provided a C lib for golang, and have a go/unit lib, you can import it to your go source code. and using unit listen and serve function 

replace golang default http listen and serve.

We know nginx http server had very amazing fast and better throughput than golang. so nginx/unitd + emebed golang , let nginx handle http connection, 

let golang handle the business.

Two win!

PHP

Nginx/unit support php by using php embed  SAPI, the origin nginx+php-fpm will working like

nginx=>fastcgi connecton => php-fpm => swap php cgi

now with unit, 

nginx => php embed sapi

You see, less middleware, better performance.

Python

nginx/unit support python by using wsgi, the python web server api interface.

which means better and stable,so fast protocol.

nginx handle the http connections, send response, let python do it's job. do the business.

if you do not want using nginx/unit , you can using nginx+uwsgi+python wsgi

Post: 2017-09-20 22:51:16

Views: 1

Follow me: @twitter @github
Scan QR code and Donate me via alipay:
donate me via alipay
Donate me Bitcoin:136MYemy5QmmBPLBLr1GHZfkES7CsoG4Qh
Powered by GoSense RSS