Live data from Hacker News

Nginx Unit

nginx.com

51–60 of 236 posts

Re: Nginx Unit

#51

Earlier quoted context omitted.

Wait, zeromq lost momentum ? When did that happen ?

When was the last time you heard something about it?

I'm using it for a project now. It's a bit weird, but it does work. Cool thing: you can slot a file descriptor into the zmq provided poll ... point is that you can poll on both zmq and sockets in the one loop.

Pro Tip: Use 'cbor' for serialising.

Re: Nginx Unit

#52

Earlier quoted context omitted.

Wait, zeromq lost momentum ? When did that happen ?

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.

Re: Nginx Unit

#53
I didn't see this mentioned but is there any way to upgrade the versions of the modules such as Go and PHP indepedendently of the core Unit package?

Re: Nginx Unit

#54

I initially thought it would allow to dynamically handle upstreams list (and other configuration) like hipache is doing [1], which would be awesome for dokku or other container management systems which rely on system nginx. But after seeing languages mentioned, I'm confused. Is it supposed to replace language specific servers, like unicorn and puma for rails (but then, I'm confused about what such kind of support wou…

it's like swarm - https://docs.docker.com/engine/swarm/#feature-highlights but much more lightweight.

Re: Nginx Unit

#55
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?

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/

Re: Nginx Unit

#56

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/

microservices on their face seem cool, but in reality not so much. really, it's just SOA taken to an unnecessary extreme.

Re: Nginx Unit

#57

So, Nginx follows exactly the way of Apache HTTP: remember mod_php, mod_perl etc?

This is not Nginx, it's a separate project developed by the same company. You could put any frontend proxy in front of it.

Re: Nginx Unit

#58
post #7

Also note github repo at https://github.com/nginx/unit

If you're unfamiliar, look at this instead. The homepage on Nginx.com is basically > Join this webinar to learn > - What NGINX Unit does that has not been available before

There's also a blog post introducing the project: https://www.nginx.com/blog/introducing-nginx-application-pla...

Re: Nginx Unit

#59

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

Any pointers for those interested in the story who have no clue?
Post reply on HN