16bugs JavaScript: from Zero to Hero
Log in

JavaScript: from Zero to Hero

#234 isolate bcrypt to a microservice

Reported by Volkan Ozcelik · 22 Jul 2018, 21:07

Status
New
Priority
Normal
Assigned to
Volkan Ozcelik
Category
Lessons
Version
None

“Just for the record: bcrypt is very CPU-intensive. If you realize that it’s causing event-loop delay, or otherwise any slowdown in concurrent connections, I’d isolate that part as a microservice (nanoservice?) and run it on a separate server, or on a lambda faas instance etc.”

^ I comment I shared in a separate slack channel. — that can be an “advanced use case” lesson too.

I mean, refactoring CPU-intensive parts of your code as a nano service.

I’ll create a ticket for that.

History

22 Jul 2018, 21:07Volkan Ozcelik submitted the bug