News for hackers. Stuff that matters.
Re:Nginx Unit – Universal web app server by 22c on Sunday September 10, 2023 @03:42PM (#37459234)
Although it doesn't directly go against what you're saying, many Unix daemons have supported HUP signals for decades which can achieve the same outcome. No need to configure via API, just change the configuration on disk and send HUP.

I suppose arguably that becomes a bit trickier for containers, so perhaps that's why you'd want to configure via an API?

Re:Nginx Unit – Universal web app server by hamandcheese on Sunday September 10, 2023 @03:59PM (#37459413)
To me this is identical - mutable state is mutable state, whether it starts on disk first makes no difference.
Re:Nginx Unit – Universal web app server by 22c on Sunday September 10, 2023 @08:13PM (#37461378)
There is a slight difference to me as having another service run (the API) is an additional attack vector to worry about from a security perspective.

I would also say it's easier to enforce good "IaC hygiene" when the configs are managed via configuration files. They can go through a code review process, deployed via existing config management systems etc.

Re:Nginx Unit – Universal web app server by pstuart on Monday September 11, 2023 @12:45AM (#37462981)