unit icon indicating copy to clipboard operation
unit copied to clipboard

Clearer Why

Open Lewiscowles1986 opened this issue 2 years ago • 2 comments

I Just read the entire README.md and cannot see why I would use this, vs regular Nginx.

Is there such a "hey if these are your problems, maybe this, for {reasons}"?

Lewiscowles1986 avatar Sep 10 '23 14:09 Lewiscowles1986

Thanks for sharing your thoughts!! The main purpose of Unit is a universal web app server that is able to run your application code. The proxy server use case is - compared to Nginx - very very basic! So if you are looking for a powerful reserves proxy, NGINX is the way to go.

if you would like to use a powerful web application server for Python, php, NodeJs, Ruby, Java or WebAssembly with a constant control API regardless the language - Unit is the server you should use.

I will have a look on the Readme just to make sure it points out the key differences between Unit and Nginx. Maybe a site2site comparison will help.

tippexs avatar Sep 10 '23 14:09 tippexs

Scott Delinger over on Mastodon also did a really great (and patient) explanation, under me asking the same at Mastodon.

https://phpc.social/@lewiscowles1986/111041271556213003

  • This is an application server, as you mentioned, not a reverse proxy or other complex server software.
  • It presents a single control plane, so no more messing with ASGI's, WSGI's or separate control planes.
  • This is built to be great at live dynamic and static responses.
  • NGINX is great for advanced cases, such as reverse proxying, lua, auth, and other dynamic-modules that it offers.

Lewiscowles1986 avatar Sep 11 '23 06:09 Lewiscowles1986