Article Image
Article Image
View All Posts
read
Want to keep up to date with the latest posts and videos? Subscribe to the newsletter
HELP SUPPORT MY WORK: If you're feeling flush then please stop by Patreon Or you can make a one off donation via ko-fi
#AWS #CLOUDFRONT #HACKER NEWS #JEKYLL #TRAFFIC

The last post I wrote made it onto Hacker News - a very popular site for nerds and geeks. At one point it was number 2 which is pretty impressive.

Hacker News

In the space of one day the site received over 45,000 requests for the page, and according to my logs that was over 29,000 unique IP addresses. To put that into perspective here’s the daily stats from Google Analytics for december:

Daily Views From Google Analytics

This sudden influx of people is known as the “Hacker News Effect”. For a lot of websites - especially ones that have complex functionality - this can cause the site to completely collapse and stop serving traffic. Fortunately for my blog, there’s not really an issue, it’s s statically generated site made using Jekyll, so it’s just plain HTML, CSS and images. I’m also hosting my site on Amazon AWS and serving everything via CloudFront, so in theory, it should be able to handle a lot of traffic.

It’s also pretty cheap to run - I had a look at the costs around the time period and in total it was about 12 cents.

AWS Costs

I’m sure there are even cheaper ways to host the site, but this is what I’m used to and it works well enough for me.

I did recently set up traffic logging on CloudFront, which means I’ve got some quite nice logs of the hacker news effect. Using the IP-Addresses from the logs we can work out the approximate location of the requests. It’s not always perfect - but it does get you pretty close to where the traffic is coming from - though sometimes all you can get is the country.

It’s pretty interesting to see the world light up as people get out of bed and check the latest news.

You can watch a really nice animation of this at the end of this video.

And you can play with the map here.

#AWS #CLOUDFRONT #HACKER NEWS #JEKYLL #TRAFFIC

Related Posts

What does a successful YouTube video look like? - Discover the fascinating analysis of a YouTube video amassing 1.8 million views, its influence on channel growth, revenue generation, and audience engagement, and the elusive recipe for creating repeat hits.
Welcome to Jekyll! - Learn about the seamless transition of my blog to GitHub Pages and Jekyll, enhancing both user experience and website performance.
Sales stats update - Two months on the app store - Experience the impressive impact of SudokuGrab app being featured on the app store's front page, boosting sales and finally breaking into the highly-competitive US market.
Sales stats update - 5 or 6 months on the app store - Discover the impact of SudokuGrab's App Store feature on its downloads and sales, reaching impressive 25,000 paid downloads milestone.
A Life in Tech - The Early Years - Take a nostalgic walk through the author's experiences growing up with early home computers like the ZX Spectrum and Atari ST, discovering the impact of these groundbreaking technologies on a life in tech, and the valuable skills they gained in assembly language and electronics along the way.

Related Videos

The Hacker News Effect - The Website Didn't Catch Fire - Let's look at the traffic - Experience the Hacker News effect firsthand with a blog that soared to 45,000 requests in a day, managing the load seamlessly with Amazon AWS, Cloudfront, and Jekyll static site generation.
Surprisingly Interesting - The Blog Gets a Facelift Courtesy of ChatGPT - Discover the power of ChatGPT as a blog-enhancement tool; automate the creation of summaries, tags, related articles, and post images using AI technologies, saving time while making your blog more visually appealing and functional.
Why was the Wireless LEDs video so successful? - Unravel the mysteries behind a YouTube video's skyrocketing success with 1.8 million views, and discover the impact it had on the content creator's channel, while we explore the enigmatic algorithm that fuels it all.
ESP32 HTTP Web Server With Content Served from SPIFFS Filesystem - Unlock the potential of ESP32 web servers with this comprehensive tutorial on creating a user interface using HTML and JavaScript, controlling LEDs via HTTP endpoints, and serving compressed content from SPIFFS. Don't miss out on transforming your device into a self-contained powerhouse.
Hacking with a USB stick? - Discover the risks of using random USB devices such as power banks and how they can be exploited to hack computers, underlining the need for heightened computer security and vigilance.
HELP SUPPORT MY WORK: If you're feeling flush then please stop by Patreon Or you can make a one off donation via ko-fi
Want to keep up to date with the latest posts and videos? Subscribe to the newsletter
Blog Logo

Chris Greening


Published

> Image

atomic14

A collection of slightly mad projects, instructive/educational videos, and generally interesting stuff. Building projects around the Arduino and ESP32 platforms - we'll be exploring AI, Computer Vision, Audio, 3D Printing - it may get a bit eclectic...

View All Posts