Running services on an OptiPlex 7070 with an i5-10400 and 16GB RAM means always focusing on squeezing every bit of performance out of the setup. The journey to optimize this website's speed led to a revelation that changed everything, and it wasn't about upgrading hardware.
The Performance Puzzle
The optimization journey started by using Chrome DevTools MCP to test the site's speed. The results were humbling, a self-hosted site couldn't compete with production websites like Apple or even the company behind a recent job application. Naturally, that led to AI assistants and research to understand why their websites performed so well.
One pattern emerged quickly: most high-performance sites were paying for premium hosting services. Meanwhile, here was a setup running on self-hosted electricity and internet instead. That raised the question of whether the setup was adequate at all.
The Self-Hosting Reality Check
After some calculations, the OptiPlex 7070 setup turned out to be quite competitive compared to paid hosting options. Think about it: to get 6 vCPUs from a hosting provider, you'd typically pay around $20 per month. That's $240 per year, and you'd still be limited to just hosting your website.
This setup, on the other hand, handles not just the website but a lot of other self-hosted services. The hardware investment was a one-time cost, and while there's an ongoing electricity and internet bill (about $50/month for internet alone), the flexibility and learning opportunities are worth far more.
Self-hosting isn't just about saving money, it's about understanding networking, troubleshooting real-world problems, and learning from the pitfalls. You can't get that kind of hands-on experience with managed hosting.
The Internet Bottleneck
The initial diagnosis seemed clear: the problem was the internet connection. With inconsistent speeds and limited bandwidth, the website was struggling with a 2-second Time To First Byte (TTFB) and 5-second overall load times. These numbers were disappointing, especially compared to professional sites that loaded almost instantly.
It seemed like the limits of what self-hosting could achieve had been reached. After all, if your internet is the bottleneck, what else can you do? Accepting these speeds as "good enough" for a self-hosted setup felt like the only option.
The CDN Revelation
Then came the lightbulb moment: CDN (Content Delivery Network) caching wasn't actually well understood.
The domains were already registered with Cloudflare, and CDN was known to cache pages in theory, but it hadn't been properly configured. Performance was being left on the table without realizing it.
After diving into CDN caching configuration, everything changed. The website's TTFB dropped from 2 seconds to under 200ms, a 10x improvement. Pages that used to take 5 seconds to load were now appearing almost instantly for repeat visitors.
The catch: performance is inconsistent because not all cache hits are successful. When the cache misses, visitors still experience the slower load times from the home server. But when the cache hits, which is most of the time for popular pages, the experience is blazing fast.
Key Takeaways
- Hardware isn't always the bottleneck. The mid-range OptiPlex was never the problem, it was network latency and configuration.
- Self-hosting is viable. With proper CDN configuration, self-hosted sites can compete with professionally hosted ones, even on residential internet.
- Understanding matters. The breakthrough didn't come from spending money on better hosting, it came from understanding how CDN caching works and configuring it properly.
- Learning by doing. Self-hosting forces you to understand the entire stack. When something doesn't work, you have to dig deep and figure out why. That's invaluable experience.
The Road Ahead
Work is ongoing to improve cache hit rates and optimize which content gets cached and for how long. But the transformation from 2-second TTFB to sub-200ms response times has validated the decision to self-host.
For anyone considering self-hosting: don't let initial performance numbers discourage you. Often, the solution isn't better hardware or faster internet, it's understanding and properly configuring the tools already at your disposal.
Sometimes the best optimization isn't an upgrade, it's finally learning how to use what you already have.