[erlang-questions] bcrypt message queues

Paul Oliver <>
Mon May 30 23:27:03 CEST 2016


Hi Richard,

I have a fork that uses a pool of ports. It's being used in production and
has been verified to process requests concurrently.

https://github.com/puzza007/erlang-bcrypt

Paul.

On Tue, 31 May 2016, 02:45 Richard Jonas, <
> wrote:

> Hey guys,
>
> 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.
>
> https://github.com/chef/erlang-bcrypt
>
> 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.
>
> 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?
>
> --
> Richard Jonas
> Erlang Solutions Hungary Kft
>
> Address:
>   Riverpark Office K.32
>   Közraktár street 32. 3/1.
>   1093 Budapest
>   Hungary
> Phone/fax:
>   +36-1-7000-654
> _______________________________________________
> 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/20160530/bd204429/attachment.html>


More information about the erlang-questions mailing list