Play Java Brcrypt and execution context

Hi,

I am using Bcrypt as the password hash algorithm in my application. Bcrypt by design is supposed to be slow(er), so should this be considered as a “blocking process” and run in its own execution context/threadpool?

Thanks

Hi @chrono_b,

CPU-bound tasks like cryptography, image processing, etc… could lead to starvation of the main dispatcher if too many are scheduled at once. It’s probably a good idea to isolate them in a separate dispatcher you can fine tune more carefully.

Cheers,