Posts

What’s worse than having NO website visitors? Having TOO MANY! You might dream of getting 100,000’s of visitors but large traffic spikes can be a real problem for websites hosted on underpowered servers. In this blog post, I’ll show you how we handled 1.2 million visitors without breaking the bank.

It’s worth noting that a typical ‘off the peg’ shared hosting package from GoDaddy or Hostgator won’t withstand a sudden surge in visitor numbers. In fact, many hosting companies specifically forbid websites hogging server resources. If your site becomes popular and starts hogging CPU resources don’t be surprised if your hosting company pulls the plug on the offending website without warning. However, if you follow the tips here you’ll be able to utilise a budget hosting plan and still accommodate big visitor numbers.

So what happens when a site suddenly experiences an explosion in traffic? It’s a problem we know all too well because for the last ten years we’ve operated a horse racing portal which generates insane levels of traffic. I’m talking about 40,000+ active users on the site at any given time. To complicate matters further the traffic increase only lasts for a few days per year. Making the situation more like a classic ‘Hug Of Death‘ or ‘Slashdot‘ effect. Of course, we could spend big bucks on a server which could accommodate the traffic, but most of the time we’d only use a fraction of its power, potentially wasting thousands of pounds in hosting costs.

 

We could place the site on a cheaper server for 11 months of the year and move it to a more powerful one just before the traffic volumes increase. However, that runs the risk of something going wrong during the move and anyone who’s ever migrated a server will tell you they rarely run smoothly, plus you still have the hassle of moving the site back once the traffic levels return to normal. It goes without saying that this approach also won’t help those people with websites that suddenly become popular overnight.

So how can you make sure your website is capable of handling millions of visitors without spending a fortune?

The Problem…

Imagine your website server is acting like the automatic door at shopping mall entrance. A shopper walks up to the door and the sensor detects them approaching, in response the door swings open. If two people walk up to the door they can enter the shopping mall without any problems. However, if five hundred people attempt to enter simultaneously the doorway will become clogged and each shopper will take longer to gain access to the mall.

This is what happens when your website server becomes stressed with too many visitors. The volume of people trying to access the site will have a negative effect on the load time. Eventually, the server will crash under the stress.

By optimising your website and pushing server requests away from your hosting account you will be able to handle traffic spikes more effectively.

The Solution…

A quick word before I start… I have used this method for managing traffic spikes on many different hosting plans, ranging from $8 per month shared servers to $50 per month cloud server. I’ve never suffered from a crash or seen a negative impact on load times, even using the cheapest hosting plan.

Even if your site never suffers from the dreaded ‘Hug Of Death’, optimising it will still pay dividends. The majority of our sites run on WordPress, which is a brilliant CMS platform, but it has a reputation for causing high server CPU usage. Excessive and poorly coded WordPress plugins can exacerbate the problem further.

Before you do anything else, get rid of any unused or unnecessary plugins – do you really need that snow effect? Test your WordPress site with P3 Plugin Profiler to find out which plugins are negatively affecting load times and get rid of them!

The next step is to find a theme that loads super fast. StudioPress produce the quickest loading themes I’ve ever used and they’re also optimised for SEO which means you’ll need one less plugin (Yoast SEO). Having said that Studiopress themes can be a little basic for some people’s needs. If you want a fast loading theme with all the bells and whistles then look no further than Kriesi themes. So now you’ve addressed the basics by swapping to a fast loading theme and restricting the number of plugins to a bare minimum – what else should you do?

1. Caching

What the hell does this mean? Well, have you noticed that when you return to a website it loads quicker the second time round? That’s caching, your browser is storing elements of the website within its own memory. It’s much quicker than requesting the information again from the server – this is known as browser caching, but you can speed up this process more by adding server side caching.

Serving a copy of your web pages is much faster and uses fewer resources than requesting the original. This is especially true if you’re using WordPress because it stores information in a database and each visitor to the site will trigger a complicated database retrieval process which places a server under stress. You can drastically reduce this burden by using a WordPress caching plugin and the plugin will store copies of recently accessed pages and deliver those instead of querying the database.

Over the years we’ve used all the leading caching plugins available; W3 Total Cache, WP Super Cache and QuickCache. Of that trio my personal favourite was QuickCache, mainly because until now it was the easiest to set-up. W3 Total Cache is by far the most powerful but it is also the most difficult to configure. Recently I started using WP Rocket, a plugin with the power of W3 Total Cache and the usability of QuickCache. The only downside to WP Rocket is that it costs $39 to use it on your site. However, it’s worth every cent and I couldn’t recommend it highly enough. Check out the video review of WPRocket below.

Before implementing the tweaks mentioned above, test the current load time of your site using Pingdom Tools or GTmetrix. Once you’ve made some changes you can retest and compare the before and after load times – you should start see a big improvement.

2. Image Optimisation

One of the quickest way to speed up a website is by reducing the image file size. No one will thank you for forcing them to render a 2meg photo! The only exception to this rule is photography websites, where the need for quality outweighs the need for speed. Everyone else should be compressing images to the bone. I usually do my image optimising in Fireworks or Photoshop before upload. However, If you don’t have access to these software programmes then try the excellent and free WP.Smush.it, a nifty little WordPress plugin which will automatically optimise images as you upload them.

3. Cloudflare

By now you should have a fast loading theme, optimised images and have WPRocket installed, the next step is to add the Cloudflare service to your site. I could try to explain the concept of Cloudflare, but It would take ages and bore you to death – so why not watch this short entertaining video which explains the benefits…

CloudFlare can be used by anyone with a website and their own domain, regardless of your choice in platform. From start to finish, setup takes most website owners less than 5 minutes. Adding your website requires only a simple change to your domain’s DNS settings. There is no hardware or software to install or maintain and you do not need to change any of your site’s existing code.

During our traffic spike, Cloudflare was able to handle 96% of requests! Only a fraction of people who viewed our website hit OUR server and the remaining 4% viewed a cached page generated by the WPRocket plugin. That means our site never came close to crashing or slowing down and we maintained a healthy 2 second load time for the duration of the spike.

So you’re probably thinking this Cloudflare service is expensive? Well, the basic features are FREE. If you want to aggressively cache everything as we did and get access to enhanced features such as page rules and real time stats then you’ll need Pro Plan ($20 a month) bargain! Nevertheless, the free plan is more than capable of handling high traffic situations.

It was my intention to detail the settings we use for Cloudflare in this post, but I eventually decided against it, mainly as it would require a lengthy explanation and this post is already too long. I will write a post which deals solely with Cloudflare settings at a later date – I will post a link here when it’s finished. However, don’t let that put you off using Cloudflare right now. The default settings will turbo charge your website like nothing else can. In my experience just adding the basic (free) plan offered by Cloudflare will cut your load time in half.

Conclusion…

I would expect all of the above tweaks to reduce an average websites load time to under 2 seconds. I’ve even managed to get some sites loading in under 1 second using this method. It might seem daunting to take on these changes but don’t be frighten by the techy stuff, the majority of these tweaks are simple to implement and easy to undo if something goes wrong. Plus you’ll glad you made those changes when the traffic spikes!

If you’ve never heard of QR Codes (Quick Response Codes) then prepare to experience the next big thing in Web/Mobile/Marketing convergence. Like most technological innovations this one started in Japan.

DENSO Corporation invented the system to track automobile parts around it’s various factories. QR Codes are basically barcodes that can store lots of data and what makes them unique is that you don’t need a barcode scanner to read them, just a mobile phone with a camera and some free QR reader software.

Already Sony Ericsson is signed up to include free QR and 2D Barcode reader software on it’s phones. The apple iPhone already has a numerous QR reader apps available to download for free on the app store.

OK, so far I can tell you’re not impressed!
Why would anyone want to use this system? Well all I can say is that once you try it, you’ll instantly see it’s real world possibilities. Here’s just a few way to use QR Codes…

Embed Website Addresses In QR Codes
You can embed a website URL into a QR Code because as we know typing URL’s into cell phones can be tedious and mistyping a URL is a common problem. Wouldn’t it be much easier to print a QR Code on a poster or press ad and have the reader snap the code on a camera phone and be directed to the website instantly? Remember not everyone in the world uses the standard English alphabet! QR Codes will overcome language barriers and make visiting websites easier than ever before.

Embed Geotags Into QR Codes
Let’s say that you’re holding a special event or sale and you want to direct people to it, just embed the Geo co-ordinates of the event into a QR Code. Nearly all high end mobile phones now have GPS and google maps as standard (soon even low cost phone will have them) and Embeded QR Code geotags can link directly to google maps on the users phone and let them know where to go. Large shopping malls or stores can use this to guide shoppers. Even tourist boards in major cities can use it to direct visitors to attractions and places of interest.

Send SMS Messages With QR Codes
That’s right, you can even embed SMS messages directly into QR Codes. As a business you might run a special offer or promotion via SMS service and explaining the instructions to customers can often be long winded and confusion can easily arise. Why tell someone to “TEXT ‘OFFER’ to 2654”? Why not just show them a QR Code! I can imagine that QR Codes will soon be flashed up on TV screens to enable people to vote in reality TV shows or to receive a promo code from advertisers.

Basic Information QR Codes
How about using QR Codes to give basic information? Your business card may have your phone number, address and email details buy why not just print a QR code on a business card and link it to a webpage with your full contact details? If you ever change premises or telephone number, just update the website. No more reprinting business cards!

These are just a few of the real world ways to use QR Codes and I’m sure, over time, people will come up with even more innovative ways to use them. Eddison-Media is really excited about technology, so much so that we’ve registered a few QR Code domains already. So far we have qrcodez.com, qr-barcodes.co.uk and qr-code.me.uk. We also plan to run a QR Code promotion in the next few weeks.

If you want to test a QR Code then try this one! It links to one of our websites.

qrcode

A quick video to show you how fast QR codes work.

You can find out more about QR Codes and 2D Barcodes by following the links below.

Make Your Own QR Codes

QR Code Article On Wikipedia

QR Codes On Mashable

QR Codes On BCC Click

If you need a free QR Code reader for your mobile phone then try these…

Barcode Scanner ~ Android OS

QuickMark QR Reader ~ Various Phones Including: Nokia, HTC, Samsung, iPhone

Bet-Calculator.co.uk is one of our oldest websites and has just been relaunched with a brand new look and feel. The original Bet Calculator site was very popular despite only being four pages in total. The new site will be much larger and will include betting guides and betting news.

The popularity of the Bet Calculator was largely down to the fact that the actual calculator was displayed prominently on the homepage. Visitors could work out their bets quickly with a minimum of clicks. This was a feature of the old site that we really needed to keep. The calculator (which uses macromedia flash technology) still has pride of place on the front page and is even larger than it was on the original site.

We also added a number of other calculators to help visitors with their betting. The biggest addition being the Arb Calculator, if you trade on Betfair then his calc can be a real god send. We also added a Liability Calculator for those wishing to hedge bets. We have been really pleased with the redesign and already we are seeing an uplift in site traffic.