---
title: "How I Survived the Front Page of Hacker News Without Crashing My Server"
url: https://daily.dev/posts/how-i-survived-the-front-page-of-hacker-news-without-crashing-my-server-5c82mpnw0
source_url: https://danielpetrica.com/surviving-hacker-news-front-page/
type: article
source: "Daniel Petrica"
author: "Daniel, Petrica Andrei-Daniel"
published: 2026-03-31T13:40:04.873Z
updated: 2026-04-01T10:00:58.900Z
tags: ["infrastructure", "docker", "cloudflare"]
reading_time: 4
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How I Survived the Front Page of Hacker News Without Crashing My Server

**[Daniel Petrica](https://daily.dev/sources/danielpetrica)** · [@danielpetrica](https://daily.dev/danielpetrica) · 4 min read · 0 upvotes · 0 comments

## Summary

A personal account of how a self-hosted Ghost CMS blog survived a Hacker News front-page spike with 194,000 requests in a single day. The key was a two-layer caching setup: Cloudflare as a CDN/proxy with 'cache everything' rules, and properly configured Ghost cache headers in Docker Compose. With 94% of requests served from Cloudflare's edge cache, the origin server (a 4-core ARM machine running ~24 self-hosted services via Docker Compose and Traefik) never went down. The post ends with a brief TL;DR and a freelance consulting pitch.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://danielpetrica.com/surviving-hacker-news-front-page/>

## Similar posts on daily.dev

- [How We Cached Laravel News at the Edge with Fast Laravel](https://daily.dev/posts/how-we-cached-laravel-news-at-the-edge-with-fast-laravel-rbgw6huba) · Laravel News · 5 upvotes · 0 comments

---

Tags: [#infrastructure](https://daily.dev/tags/infrastructure), [#docker](https://daily.dev/tags/docker), [#cloudflare](https://daily.dev/tags/cloudflare)

[View this post on daily.dev](https://daily.dev/posts/how-i-survived-the-front-page-of-hacker-news-without-crashing-my-server-5c82mpnw0)
