[Eventmachine-talk] Erlang-like Processes

Kirk Haines
Tue, 28 Aug 2007 08:22:51 -0000

On 8/28/07, hemant <gethemant at gmail.com> wrote:

> No no, I fully understand deferable pattern and have seen and used
> Twisted deferable as well. I am using EM more than long enough for
> these sort of things. In fact, sometime back i needed my own callback
> pattern and i implemented it similar to the way, deferables are
> implemented in EventMachine.

True, but there are a lot of people reading this who probably have
never touched ''em, and there isn''t really a lot of
documentation about
them in the EM world right now, so it''s a simple bit of real world
code that someone can go look at to see how it works.  That''s all.  :)

> But Lets say, one server has to truely handle 10,000 concurrent
> connections ( there could be several use cases of this, and i have my
> own like a Comet implementation). So what options one really have?
>
> Me and my collegues experience says that, EM is really nice, but as
> number of connections gets increased ( or lets say number of
> connections is small, but number of requests from them increases
> exponentially), EM loop gets clogged and request processing slows
> down, So what options, does one have?

This is an interesting observation.  Francis, do you have any sort of
a feel for how bad this effect is?  If I have 10k concurrent
connections, is there a large overhead cost for handling all of those?


Thanks,

Kirk Haines