Live data from Hacker News

Nginx Unit

nginx.com

91–100 of 236 posts

Re: Nginx Unit

#91
Is this similar to openresty ? Instead of Lua - python, go and php? Or something different?

Re: Nginx Unit

#92
post #72

Earlier quoted context omitted.

lol.. nginx en-masse configuration is a nightmare. i can point to a fortune 50 company that it's destroying for relying on it. I won't name names :)

So they deployed a bad config file to all nodes and restarted the service, which then failed to start. How is this specific to Nginx? This same mistake is possible with any other software ever written.

nginx is faster at stop/starting?

Re: Nginx Unit

#93
post #64

Sounds like uWSGI based on the description. I wonder how it'll play along with certain environments like Kubernetes.

Same. I really want to like (and use) uWSGI, for many reasons, but I find it's lacking severely in the department of documentation (searching "uwsgi" on Amazon gives zero hits!). A properly edited book would be awesome. I would pay for it of course.

I think their documentation is quite thorough. It's just as the other commenter indicated an app that extensible doesn't have cookie cutter simplistic configs out of the box.

Re: Nginx Unit

#94
Interesting. I like the restartless configs idea. This is becoming more common these days with short lived microservices. This week I just switched my load balancer setup from HAProxy to Traefik - very nice API based setup. https://traefik.io/

Re: Nginx Unit

#96
post #6

Looks to be a good candidate to replace omnipresent nginx based API routers

I have a small flask application which basically is a rest get post API server. I'm struggling to make deployment easy. With PHP, i just push to the application server and rsync that folder into var www html for Apache httpd but what would I do for flask python 3?

the answer to this is usually "use docker". If you want to deploy your nginx as well, then you need docker-compose.yml and use "docker stack deploy".

If you are only looking to deploy your python code (and nginx/apache is constantly running on the server), then follow these steps

1. install docker on server 2. create an account on https://hub.docker.com/ 3. https://docs.docker.com/engine/swarm/stack-deploy/#deploy-th...

your docker workflow in the future looks like this: 1. test the application on your laptop inside a docker container 2. push container to docker hub 3. "docker update" your stack

Re: Nginx Unit

#97

Earlier quoted context omitted.

You seem to be very experienced in this area. Can you explain a bit about why you think an "app server with microservice orchestration" is needed?

because you can work with individual microservices across clusters without a ton of overhead (or use a monolithic app server), aiding in deployment, rollback, debugging, development.

How exactly does having an app server reduce overhead, compared to running each service directly without app server? And how does having an app server compare to putting each microservice in its own Docker container and orchestrating them in Kubernetes, which is what more and more companies seem to be doing?

Re: Nginx Unit

#98

This looks pretty cool, and makes me sad that Mongrel2 never became popular. In short: Mongrel2 solves the same problem, but does it by letting your application handle requests and websocket connections over ZeroMQ instead of eg FastCGI. I guess it lost momentum when ZeroMQ did. Anyone know why? Sounds like a dream solution in the current microservice hype. http://mongrel2.org/

Wait, zeromq lost momentum ? When did that happen ?

I think it happened in 2012 when this came out http://250bpm.com/blog:4

Before that, I used to hear people talking about it all the time.

Re: Nginx Unit

#100
post #91

Is this similar to openresty ? Instead of Lua - python, go and php? Or something different?

No, this is a replacement for things like php-fpm, gunicorn, etc.

The REST API part of it is for updating its configuration over HTTP.

Post reply on HN