Live data from Hacker News

Nginx Unit

nginx.com

61–70 of 236 posts

Re: Nginx Unit

#61

I'm happy to see this. nginx itself is excellent software, I'll be happy to use similar tech for the application server as well (instead of uwsgi). There are a couple of options I'd like to see added to the Python configuration though before I could try it: - Ability to point it at a virtualenv. - Ability to set environment variables for the application.

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 :)

What does "en-masse configuration" even mean?

Re: Nginx Unit

#62

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 ?

Dunno, I spent close to a week trying to get it to compile with and without encryption on Windows to no avail.

Ended up using a Linux container on Docker to get the thing working.

Re: Nginx Unit

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

Re: Nginx Unit

#65

The concept of XUnit is so ingrained in my head that I assumed it was a unit testing framework for NGINX. The rest of the headline cleared it up of course, but I was curious for a minute how that would look. EDIT: When discussing a new product, I would think the name is a fair point of discussion. Furthermore after this thread's title changed, it now requires a clickthrough to dispel similar misunderstandings.

Yeah, given the title, I thought it was about a unit testing framework for Nginx. Kinda like ServerSpec, but more specific: http://serverspec.org/

Re: Nginx Unit

#67

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 :)

What does "en-masse configuration" even mean?

That they deployed a broken config file & forcefully stop-started nginx instead of reloading it (and bypassing nginx's built-in protection: it will test a config and refuse to load it if it's broken on reload. on restart it's stuck with whatever busted config you give it).

Re: Nginx Unit

#68
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.

Re: Nginx Unit

#69

Earlier quoted context omitted.

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?

All too hard. Use "bottle" (I think it's much the same as flask) - you just call 'run' and it does it's thing. https://bottlepy.org/docs/dev/

I think that's more intended as demo server to get you started quickly while you're developing.

You'll probably want to switch to uwsgi or gunicorn before you actually deploy anything.

I haven't actually used Bottle, but with Flask the development web server seems to fall over if a client cancels ones of its HTTP requests, for example. It's really just a simple, light thing for mucking around with.

Re: Nginx Unit

#70

Earlier quoted context omitted.

When was the last time you heard something about it?

When was the last time you heard something about zlib? At a certain point - libraries are basically done. They are widely distributed, everyone knows what they are, there is no reason to talk about them but they are still maintained and heavily used.

This morning when I used it.

I don't use zmq nearly has much.

Post reply on HN