defunkt

Joined 18 years ago

Karma
1,349
Submissions
184
Member since
Jul 9
my other car is a time machine
View on Hacker News

Recent submissions

Comment · 15 years ago
Comment · 15 years ago
That's all true, but dotjs is only for Google Chrome on OS X.

Google Chrome on OS X has no such filesystem-based model for managing scripts.

Comment · 15 years ago
Chrome extensions can't access the local filesystem so we have to start a tiny webserver in the background.

If someone knows a way around this limitation, or a simpler webserver to require / embed, I would be thrilled. But so far this is the best I've found.

Comment · 15 years ago
Comment · 16 years ago
GitHub now owns the octocat art.
Comment · 16 years ago
Sorry about that. It should show up in 'germany' and some others now, like 'rails' in the first search field and 'europe' in the second (location).
Comment · 16 years ago
I want to do all of this stuff. Great post.
Comment · 17 years ago
Comment · 17 years ago
If each Unicorn worker listened on a different port, we'd have to use one of nginx's load balancing strategies (unless I'm misreading your comment).

We have not had success with them in the past which is why we employed HAProxy with mongrel.

Comment · 17 years ago
Unicorn is not for slow clients or static assets. That's what nginx is for. See http://unicorn.bogomips.org/PHILOSOPHY.html for info on Unicorn and slow clients.

nginx also has features like ESI, serving from memcached, and rate limiting which Unicorn does not (and doesn't need).

Comment · 17 years ago
Also it doubles as documentation for the members of our team who aren't familiar with this part of the system :)
Comment · 17 years ago
nginx relies heavily on system calls at the expense of portability.
Comment · 17 years ago
Counter example: nginx, which uses fork(), and seems to smoke Apache while offering features like binary reloading without dropping connections (not sure if Apache supports this but I seem to remember no - please correct me if I'm wrong).

Portability is not always necessary - when talking about fork() and friends you're talking about trade offs.

When I'm only ever deploying to Unix environments, I accept the lack of portability in exchange for features I value.

Comment · 17 years ago
Comment · 17 years ago
But if you're already taking that memory hit with separate processes, ala mongrel cluster, fork() still provides a number of juicy advantages (which the article explains).

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton