TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Best way to handle user authentication for a high volume Node.js App

8 pointsby tcarnalmost 8 years ago
I am considering Passport since it seems to have pretty good documentation, but I want to make sure I'm not missing out on something better. This app could have a ton of traffic, so I am trying to build it very efficiently right from the start.

4 comments

whatnotestsalmost 8 years ago
If you&#x27;re using bcrypt for authenticating passwords, that may end up being the most compuationally-expensive part of your entire application.<p>Consider running your authentication service as a separate node server so it can scale independent of the rest of your application.
1ba9115454almost 8 years ago
It&#x27;s unlikely you&#x27;ll have efficiency problems at the user acquisition stage.<p>It&#x27;s generally 1 insert into a user table.<p>The most important thing is your users security. The passwords need to be hashed and salted.
trcollinsonalmost 8 years ago
I use auth0 and have been very pleased with its performance and documentation. I would suggest you take a look.
borplkalmost 8 years ago
What&#x27;s &quot;high volume&quot;?