DoneCal homepage now able to do 10,000 requests/second

13 February 2011   0 comments   DoneCal

Powered by Fusion×

I've done some work refactoring the homepage of DoneCal so that it does no logic other than just serving HTML. What it used to do was some basic security checks and stuff so that it says "Hi Peter" and a log out link. Now all of that has been moved to one simple piece of AJAX call.


# ab -n 1000 -c 10
Requests per second:    353.65 [#/sec] (mean)


# ab -n 1000 -c 10
Requests per second:    9796.78 [#/sec] (mean)

# ab -n 1000 -c 10
Requests per second:    3756.25 [#/sec] (mean)

The reason why loading the index.html can be so fast is because I'm using Nginx directly. In my Nginx config I have to not use the static file if the request isn't a GET request or if it has a query string. I'll need to remove that stuff too and then it means that I can push the index.html file out to my AWS CloudFront CDN using a CNAME.

DoneCal is my first web application that is this Javascript heavy. It raises the bar in terms of optimal HTTP optimization to get the best user experience possible. I love learning this new way of working.


Your email will never ever be published

Related posts

EditDistanceMatcher - NodeJS script for doing edit distance 1 matching 05 February 2011
How I profile my Nginx + proxy pass server 16 February 2011
Related by keywords:
Fastest way to uniqify a list in Python 14 August 2006
mincss "Clears the junk out of your CSS" 21 January 2013
fcgi vs. gunicorn vs. uWSGI 09 April 2010
Is Nginx obsolete now that we have Amazon CloudFront? 28 July 2012
Gzip rules the world of optimization, often 09 August 2014
How I stopped worrying about IO blocking Tornado 18 September 2012
The awesomest way possible to serve your static stuff in Django with Nginx 24 March 2010
Optimization of getting random rows out of a PostgreSQL in Django 23 February 2011
Hosting Django static images with Amazon Cloudfront (CDN) using django-static 09 July 2010
RequireJS versus HeadJS 09 January 2011
How to uninstall nginx with apt 28 March 2008
How much faster is Nginx+gunicorn than Apache+mod_wsgi? 22 March 2012