Black Friday black out protection with HAProxyRetail Published on •3 mins Last updated
The media industry had lots of fun at the expense of e-commerce outlets on Black Friday mercilessly reporting on site crashes and outages.
My wife yelled that I needed to 'fix the Internet' when Argos.co.uk would not respond immediately to her demands on Friday evening. However on closer inspection i.e. reading the page Argos was handling the situation in a very fair and simple way.
If you need to implement this kind of functionality for your e-commerce site then it is pretty simple to do with the Loadbalancer.org appliance:
What we basically need to do is track the number of valid users shopping on the web site with an application cookie, and set a limit on the total number we think our application can safely handle.
For this configuration we are setting the limit at 5000 users over a 10 minute period (you don't want to time people out when they spend 5 minutes just looking for their credit card!).
On the Loadbalancer.org appliance v7.6.3 you would configure this VIP as a Layer 7 Manual Configuration; this new functionality ensures that you have complete control of the configuration file and yet the system overview still shows the servers and allows you to you to control them.
Back to the actual configuration (heavily borrowed from HAProxy Over Usage Protection)
I think this is a very powerful and useful feature for any e-commerce site trying to deal with Black Friday type events.
Interestingly enough most of the people I talk to disagree with me and say that these sites should have invested more money in capacity to avoid the massive loss of face and bad publicity...
But just how much would that cost?
And is it even achievable if your database is overloaded? (without a complete architecture re-design) we are not all Amazon after all.
I used to manage the IT infrastructure for Crocus.co.uk way back in 2003 and recall implementing this kind of fix at the application layer for the Valentines day rush.
We were very close to losing the site from the sheer volume of people trying to do last minute valentine flower orders. If we had not done the fix then the site would have collapsed and 25,000 pre-ordered bunches of roses would have gone to waste.
But what about other methods of handling traffic over load on your site?
One of the popular methods of handling traffic over-load is to use a cloud service provider such as Akamai or Queue-it, these services are great, simple to set up and do exactly what most customers require. However I always worry about latency and scalability when using an outsourced cloud provider. Its very hard to get accurate figures or specifications from these providers, and from anecdotal evidence i.e. most of the people I asked about what happened on Black Friday most of these service providers also struggled to handle the load and had major problems with consistency and reliability.
My totally un-scientific findings (word of mouth and gut-instinct) tell me that Akamai performed well and other providers struggled, I'd be interested to hear if anyone has some solid numbers on this kind of thing?
At Loadbalancer.org we are starting to focus on Security, High-Availability and real performance of application traffic management, by real performance we mean the actual performance you can expect in realistic scenarios (i.e. not just saying wire-speed) so that you can plan your deployments with confidence.