[erlang-questions] Large-scale Erlang in practice

Tim Watson <>
Mon Feb 6 20:38:56 CET 2012


On 6 February 2012 19:24, Jon Watte <> wrote:

> That is interesting -- it might make it worth it to upgrade to R14.
>
> Also, we found a module called "gen_server2" that works around this
> problem by draining the message queue before calling any callback, and
> then dispatching messages based on this list of drained messages. Does
> anyone have experience with this module?
>
>
It is part of rabbitmq, which I'm guessing it's reasonable to call *fairly
stable and production worthy* lol. I keep a copy as a standalone OTP
library application on github, which I update/synchronise periodically with
updates from the rabbit hg/git repository. I haven't refreshed it in a
while, as we're largely >= R14 now, but I find this approach (of bundling
it as a standalone library app) works nicely for making it available across
projects, though I'm less reliant on it now as I'm not using the extra
features it provides in addition to message queue draining.


> Sincerely,
>
> jw
>
>
>
> --
> Americans might object: there is no way we would sacrifice our living
> standards for the benefit of people in the rest of the world.
> Nevertheless, whether we get there willingly or not, we shall soon
> have lower consumption rates, because our present rates are
> unsustainable.
>
>
>
> On Fri, Feb 3, 2012 at 10:57 AM, Max Lapshin <>
> wrote:
> >>
> >> 1) I'm considering writing some nifs that allow me to send UDP
> >> datagrams without going through a mailbox scan. For syslog and
> >> statistics, this would be a perfectly fine thing to do.
> >
> >
> > It was invented about year or more ago for gen_server:call.
> >
> > Instruction like "look for incoming message, but only beginning from
> mark"
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120206/ec48e1a7/attachment.html>


More information about the erlang-questions mailing list