Nginx Unit
Where nginScript allows us to implement logic in Nginx itself, Unit helps us manage the potentially complex ecosystem of backend services.
A typical microservice architecture usually consists of many distributed services, to just mention a few potentials:
- Frontend servers
- Backend servers, potentially multiple languages
- Database servers
- Caching servers
- Search daemon servers
- Job servers and workers
Managing these servers, keeping Nginx configuration updated as well as managing load balancing and IPs quickly becomes a pain.
This is where Nginx Unit comes in. Unit is an open source application server designed to lessen the pain of managing a highly distributed architecture. This includes managing configurations of programming languages, networking and dynamically managing the proxying and load balancing to backends.
Essentially, Nginx Unit provides a programmatic way to manage (parts of) your backend infrastructure, providing an API for changing your backend configuration or even changing PHP...