View All Posts
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

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.


Related Posts

Improving my blog using AI - Part 2 - Images - Over time, I've realized that my blog's front page looked a tad dull due to the absence of header images for some of the older posts. Hence, I decided to put AI-powered image generation platforms, DALL-E 2 and Midjourney, to the test. While DALL-E 2 offered some promising results, Midjourney stole the show with aesthetically pleasing images, despite the lack of API support and strict rules against automation. Despite these limitations, I managed to generate and download quality images from Midjourney, revamping my blog's appearance and learning a lot in the process.
Step 6: Add a Custom Domain and SSL to Elastic Beanstalk - In this post, we successfully set up a custom domain name for our Elastic Beanstalk environment and secured it using SSL. By creating a CNAME or an ALIAS pointing at our environment URL (found on the dashboard screen), we made our app accessible via the new domain name. We then used AWS Certificate Manager to add SSL to our environment for access over HTTPS, which was confirmed by visiting the secured site. Now we have a Rails application that can not only be deployed by a CI server, but is also SSL secured with a custom domain.
ChatGPT Plugins - First Impressions and Stats - Now having been two weeks since the release of my Chess plugin on the ChatGPT plugin store, I've decided to share some preliminary stats & thoughts. Initially achieving a day high of 1,800 games, we unfortunately experienced a user drop-off while the plugin was temporarily unverified. The plugin's return saw fewer users, likely due to an influx of new plugins. Despite this, I'm enthusiastic to see an average of 10 moves per game, with many players managing to beat the AI. The operating costs are minimal, mostly carried by storing secrets on AWS Secrets Manager. There's room for improvement such as plugin discoverability on the store, but I anticipate positive developments ahead.

Related Videos

The Hacker News Effect - The Website Didn't Catch Fire - Let's look at the traffic - Witness the Hacker News effect in action as the author's blog skyrocketed to popularity, easily handling massive traffic thanks to efficient hosting and Cloudfront!
Automating Blog Improvements with AI: Summaries, Tags, and Related Articles - Learn how to use ChatGPT to enhance your blog's homepage, create summaries and tags, find related articles, and generate post images with ease, leveraging AI to save valuable time and effort.
1.8 Million Views: Secrets of a Viral Wireless LED Video - Dive into the intriguing world of YouTube success as we analyze a viral video with 1.8 million views, from its impact on subscribers to the elusive algorithm behind it. But here's a twist: you're requested not to subscribe!
Is it time to change my batteries? Amazon thinks so! - Got a heads up from Amazon that one of my device batteries was low. Gotta give it to the battery, it lasted quite longer than I anticipated. So, I peeked into the device usage history, which was a trove of data Amazon has kindly stored. In fact, I wrote a web scraper to download all this data. Sadly, records only go back to two weeks. Nevertheless, I plotted the data and surprisingly the pattern revealed that battery level gets affected by temperature change. Cool, isn't it? Finally managed to change the battery. Also, I might just plug in a rechargeable one next time so as to not be a part of the 'throw-away battery' culture. All in all, quite an interesting discovery, courtesy of my Amazon device battery.
Still got it! - Dive into the world of video transcripts and unveil their transformative power on content accessibility, SEO, and audience engagement
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


> Image


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