Ok, so Django has a pretty good caching engine build right into the framework, right? So why would i be trying to implement a caching solution for my Django project? I'm a masochist. that's why.
My sites are hosted on a VPS (with very sparse memory allocation), so i'm looking to minimise memory usage wherever possible. I also had the joy of watching my Django FCGIs for http://the-hive-mind.com get completely annihilated by metafilter.org a few weeks ago - i think it stood up to the first 200-300 requests.. then completely died.
Anyway, I have just launched a website for a friend in Nepal, who runs a trekking business (he comes highly recommended if you ever want to go hiking in that region). Basically, I decided to try and load test the Django instances on the site, to see how much traffic it could handle... i downloaded and installed siege.. which (as the name suggests) lays siege to your web server.
My out of the box Django FCGI being called by a Nginx instance was only capable of reliably handling up to about 10 concurrent connections before it started dropping requests.. not really acceptable (caching, at this point.. was completely turned off).
So I set about sorting out caching. I read the Django documentation.. and quickly decided that the built in caching wasn't quite to my liking. I already knew a little about memcached, and wanted to use it to cache my generated responses, so the fact that Django supported it was nice. However the idea of using a the Django cache middleware doesn't really cut it. Nginx supports memcached.. so why would i ...
Posted yesterday Read full article + one comment
Nepal Trek Tours is a website showcasing the guiding services for a customer oriented trekking company based out of Kathmandu, ... See pictures + details
monitter allows you to monitor twitter and see relevant tweets in real time. See pictures + details
There are two camps in the web world regarding microblogging tools like Twitter. Half of us think they're great the other half are still scratching their heads wondering what possible purpose these tools can serve.
Aug. 5, 2008
Read full article +
four comments
I've always used prototype and scriptaculous to do JS stuff in the past. However I've been hearing a lot of good things about jQuery and i'd noticed that sites i'd seen using jQuery seemed to have much smoother animation etc.
July 28, 2008
Read full article +
three comments
While I don't consider myself to be an apple "fanboy", I am definitely and advocate of apple computers. However, this week two things have pissed me off regarding apple...
July 22, 2008
Read full article +
five comments