[Mongrel] Design flaw? - num_processors, accept/close

Zed A. Shaw zedshaw at zedshaw.com
Tue Oct 16 01:49:09 EDT 2007

On Mon, 15 Oct 2007 16:43:34 -0700
"Brian Williams" <bwillenator at gmail.com> wrote:

> We recently ran into exactly this issue.  Some rails requests were making
> external requests that were taking 5 minutes (networking issues out of our
> control).

Now that's a design flaw.  If you're expecting the UI user to wait for a backend request that takes 5 minutes then you need to redesign the workflow and interface.  Do it like asynchronous email where the use "sends a request", "awaits a reply", "reads the reply", and doesn't deal with the backend processing chain of events.

If done right, you'll even get a performance boost and you can distribute the load of these requests out to other servers.  It's also a model most users are familiar with from SMTP processing.

Zed A. Shaw
- Hate: http://savingtheinternetwithhate.com/
- Good: http://www.zedshaw.com/
- Evil: http://yearofevil.com/

More information about the Mongrel-users mailing list