<div dir="ltr">Thank you <span style="font-size:12.8px">Dmitry, Ulf and Richard!</span><div><span style="font-size:12.8px">These seem all interesting possibilities and I will dive into them.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Best,</span></div><div><span style="font-size:12.8px">r.</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 9, 2016 at 10:10 AM, Richard Jonas <span dir="ltr"><<a href="mailto:richard.jonas@erlang-solutions.com" target="_blank">richard.jonas@erlang-solutions.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Roberto,<div><br></div><div>when we needed to implement something like that I stole the idea from Joe's repo (fast term storage), which is simply a raw (processless) binary file with buffer.</div><div><a href="https://github.com/joearms/elib1/blob/master/src/elib1_fast_write.erl" target="_blank">https://github.com/joearms/elib1/blob/master/src/elib1_fast_write.erl</a><br></div><div>So you can implement something custom if you like. Also there is a good opportunity for using quickcheck. :)</div><div><br></div><div>For enterprise ready solutions consider integrate bitcask: <a href="https://github.com/basho/bitcask" target="_blank">https://github.com/basho/bitcask</a></div><div>I have never done that, but it is proven solution.</div><div><br></div><div>Richard</div><div><br></div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Wed, Jun 8, 2016 at 5:59 PM, <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 dir="auto"><div>Hello,</div><div><br></div><div>You can look on my project, see branch on-disk-overflow. This is most recent best effort queue I am using in prod (optimized for read/write)</div><div><br></div><div><a href="https://github.com/fogfish/esq" target="_blank">https://github.com/fogfish/esq</a><br><br>-Dmitry<br><div>Sent from my iPhone</div></div><div><div><div><br>On 08 Jun 2016, at 18:19, Roberto Ostinelli <<a href="mailto:roberto@widetag.com" target="_blank">roberto@widetag.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">To be a little more extensive: I'm familiar with the queue module, but it'd need an additional layer to write stuff to disk.<div><br></div><div>Therefore, I'm currently considering using an ordered_set mnesia table, with os:timestamp() values as the primary key.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Just wanted to avoid reinventing the wheel, so if something is out there... please let me know.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Best,</div><div class="gmail_extra">r.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 8, 2016 at 5:15 PM, Roberto Ostinelli <span dir="ltr"><<a href="mailto:roberto@widetag.com" target="_blank">roberto@widetag.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear list,<div>I need to use a FIFO queue in Erlang, disk-backed.</div><div><br></div><div>Additions to the queue can be quite heavy (3000 / sec), so it's a write intensive operation.<br></div><div><br></div><div>Any ideas on best practices?</div><div><br></div><div>Thank you ^^_</div><span><font color="#888888"><div>r.</div></font></span></div>
</blockquote></div><br></div></div>
</div></blockquote></div></div><blockquote type="cite"><div><span>_______________________________________________</span><br><span>erlang-questions mailing list</span><br><span><a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a></span><br><span><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br></div></blockquote></div><br>_______________________________________________<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" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div>Richard Jonas</div><div>Erlang Solutions Hungary Kft</div><div><br></div><div>Address:</div><div> Riverpark Office K.32</div><div> Közraktár street 32. 3/1.</div><div> 1093 Budapest</div><div> Hungary</div><div>Phone/fax:</div><div> <a href="tel:%2B36-1-7000-654" value="+3617000654" target="_blank">+36-1-7000-654</a></div></div></div>
</font></span></div>
</blockquote></div><br></div>