Hi Richard,<div><br></div><div>I have a fork that uses a pool of ports. It's being used in production and has been verified to process requests concurrently. </div><div><br></div><div><a href="https://github.com/puzza007/erlang-bcrypt">https://github.com/puzza007/erlang-bcrypt</a><br></div><div><br>Paul.</div><div><br><div class="gmail_quote"><div dir="ltr">On Tue, 31 May 2016, 02:45 Richard Jonas, <<a href="mailto:richard.jonas@erlang-solutions.com">richard.jonas@erlang-solutions.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey guys,<div><br></div><div>we are implementing user registration and password checking functionality and using bcrypt for password hashing. During registration and also during login we need to compute the hashes of the passwords. The problem is that bcrypt is serializing requests even when I choose nif or port mechanism.</div><div><br></div><div><a href="https://github.com/chef/erlang-bcrypt" target="_blank">https://github.com/chef/erlang-bcrypt</a></div><div><br></div><div>With nif a message queue is instantly built when multiple users log in (compute hashes for match password). With a pool size+port implementation, the message queue building has just deferred a bit.</div><div><br></div><div>Is there any alternative to creating bcrypt-like hashes? For me it seems that this library cannot be scaled well. Or have I missed something?<br clear="all"><div><br></div>-- <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>  +36-1-7000-654</div></div></div>
</div></div>
_______________________________________________<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>
</blockquote></div></div>