Is Nginx Unit going to replace the normal Nginx server?
- This topic is empty.
-
AuthorPosts
-
February 2, 2023 at 8:10 am #4091DorisGuest
What is the long-term vision about Nginx Unit, it seems they are releasing more often than classic Nginx project these days
eventually will the projects merge and replace the old classic Nginx?
I still don’t really understand what is the plan.
February 2, 2023 at 8:11 am #4092HelenGuestFebruary 2, 2023 at 8:14 am #4093EmmaGuestI also don’t really know the answer, maybe F5 also not sure what will happen. But Unit project was probably launched because of demand from their corporate clients and use case. Currently you cannot really substitute Nginx Unit for classic Nginx.
https://techblog.schwarz/posts/nginx-unit/
Unit is a modern and performant web server and app runtime which is stable under high traffic. It impresses through its dynamical REST API configuration and broad support on programming languages. It is a real alternative to classical application stacks like Nginx in conjunction with PHP-FPM for PHP applications.
Unit is no replacement for Nginx because of Nginx’s wide opportunities to add headers, rewrites, etc. which Unit currently does not have (yet).
February 2, 2023 at 8:29 am #4094AndrewGuestUnit project is not even really Nginx at all, it’s a brand new codebase with JSON config and no more regex rules. Also restarting the service is no longer required.
February 2, 2023 at 8:30 am #4095RonaldGuestEnterprise use cases
February 3, 2023 at 11:33 am #4099LouisGuestG-UNIT
February 13, 2023 at 7:46 pm #4165RaymondGuesthttps://octopus.com/blog/why-use-nginx-unit
But using regular expressions to modify configuration files is not a pleasant experience. Inevitably, you will find your regex has matched something you didn’t expect, didn’t account for line endings or didn’t quite capture all the variations of a value.
NGINX Unit addresses this by utilizing JSON for its configuration. There is no longer any ambiguity as to how to structure the configuration data, and it is much easier to update configuration values programmatically. Relying on a common data format makes NGINX Unit much easier to manage…
While NGINX Unit doesn’t provide a CLI tool (all the examples in the documentation use curl), it does expose all of the configuration via an easy to understand HTTP API. This provides you with a great deal of flexibility in choosing how to expose the API (i.e., expose it on localhost or securely proxy it to make it publicly available), and it means you can use any scripting tool of your choice to interact with it…
NGINX Unit does away with this imperative configuration model and instead exposes a declarative configuration model. Admittedly, the NGINX Unit model is far less configurable than a traditional NGINX configuration file, but it does a good job of exposing the common routing and security options you will use.
Not many good articles on Google about it, this one is well written and sounds great but not really practical examples of how to use Nginx Unit or config.
JSON is cool, but even JSON is “getting old” if you want to play that game
February 15, 2023 at 5:43 am #4184March 14, 2023 at 10:37 pm #4596RandyGuestI think Nginx Unit was launched by enterprise demands for a more modern version of Nginx, and since they jumped to JSON and REST API and stuff because of the demand, it just was inherently not backwards compatible with classic Nginx.
My interpretation is that they aren’t trying to cancel the classic Nginx per se, but they are probably sort of waiting to see how well Nginx Unit solves modern server demands and if it reaches a point where F5 believes that it can do everything AND MORE that classic Nginx can do they might consider deprecating classic Nginx eventually.
JUST MY OPINION.
And honestly this is probably years away from happening because they are not going to risk spooking the entire internet over this.
April 7, 2023 at 1:59 pm #4855TerryGuestI’m going to be honest. I still don’t get it 😅
July 7, 2023 at 7:54 pm #6554WalterGuestThe Russians are pretty into Nginx Unit at the moment. Some of the original Nginx core devs have also launched a new fork of Nginx called Angie on GitHub.
Look at the Nginx Unit benchmark last year
July 30, 2023 at 8:54 pm #6998KathleenGuestso that’s where VBart went!!
July 30, 2023 at 8:55 pm #6999StephanieGuestJanuary 24, 2024 at 5:46 am #11490CharlesGuest>>> new fork of Nginx called Angie
whyyyyy
so now it’s a LAMP stack???
-
AuthorPosts
- You must be logged in to reply to this topic.