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: How do you prepare for “HN Hug of death”?

6 pointsby _448about 2 years ago
When a &quot;Show HN&quot; post is created by an app developer, the obvious effect of that is a massive load on the backend server of the app, bringing down the server. I have read posts here on HN, where developers who were unprepared for this spike in server load experienced, what is now well known as, the &quot;HN hug of death&quot;.<p>So how do you prepare for avoiding this fate before creating a &quot;Show HN&quot; post?

4 comments

rozenmdabout 2 years ago
For the frontend: put a CDN in front of it, add caching.<p>In my experience, most folks just want to see what the fuss is about, not so much make an account and start using the app. So as long as your post-login experience can take a few users simultaneously, you should be fine.
leandotabout 2 years ago
Caching&#x2F;make the homepage static if possible. I had a project some years ago that had an elastic search backend, adding redis for caching allowed it to run without problems with up to 1000 concurrent users (position 1-10 on HN if I remember right). As someone below pointed out, the majority would want to have a look, not create accounts.
ianpurtonabout 2 years ago
I use zola a static site generator and deploy the pages (for free) to cloudflare pages.<p>So there&#x27;s no impact on my servers.<p>For a product you will get a lot of people from HN reading the landing page but relatively few registrations.
smt88about 2 years ago
Autoscaling, available on most popular clouds&#x2F;hosts
评论 #35649909 未加载