<div dir="ltr">LIFO is really good when you fail to meet a deadline, if you also have a way to "get rid of the rest of the mailbox". The reason is that in a stack: [a,b,...] you know that b entered before a. So if a is too old, then so must b. Hence you can avoid doing work by simply ignoring the extra work.<div>
<br></div><div>Currently though, this is easily implementable in Erlang itself, so unless you need very high processing speed it is not a problem.</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Aug 22, 2014 at 1:56 PM, Dmitry Kolesnikov <span dir="ltr"><<a href="mailto:dmkolesnikov@gmail.com" target="_blank">dmkolesnikov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">I would think that LIFO are manageable through in-process publish / subscribe. However, in-the-middle process impacts the performance to compare with native queue implementation. What is you use-case for LIFO?<div>
<br></div><div>Best Regards, </div><span class="HOEnZb"><font color="#888888"><div>Dmitry </div></font></span><div><div><br><div><div><div class="h5"><div>On 22 Aug 2014, at 14:50, Jesper Louis Andersen <<a href="mailto:jesper.louis.andersen@gmail.com" target="_blank">jesper.louis.andersen@gmail.com</a>> wrote:</div>
<br></div></div><blockquote type="cite"><div><div class="h5"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 21, 2014 at 4:10 PM, Michael Klishin <span dir="ltr"><<a href="mailto:michael.s.klishin@gmail.com" target="_blank">michael.s.klishin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="overflow:hidden">How would old messages get a chance at being processed at high message<br>
rates, if the order wasn't FIFO? </div></blockquote></div><br>Sometimes, this is actually a bad idea. LIFO mailboxes would be really really cool to have in certain situations.<br><br clear="all"><div><br></div>-- <br>
J.
</div></div></div></div><div class="">
_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></blockquote></div><br></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>J.
</div>