Sticky Sessions are Evil

Sticky sessions are evil.  Ok, I’ve said it.  Actually I have said it before.  In fact I am surprised at how often I have had to say it.  They seem to get used with surprising frequency without properly thinking through the repercussions.  I have been asked to explain the issues several times, so let me go walk through and document them. Continue reading “Sticky Sessions are Evil”

Bad Proxy

A fairly bizarre issue come up recently that I thought would be amusing to share.  It all started fairly simply.  One of the development teams needed to test some website changes that required overriding some of the website files without making changes to the website itself.  This is not difficult for a developer to do, but they wanted to set it up more simply for a number of testers to use.  I suggested setting up a proxy server and configure it to proxy most requests on to their normal location.  Then send requests for the files they wanted to test on to the test location.  We would only need it for a week or two during the test phase.

I had a little free time, so I decided to set it up for them.  I considered setting up an apache instance using mod_proxy and mod_rewrite.  I decided instead to write something custom in Node.js.  It took me about an hour to write a custom proxy server and add rules to detect requests for the test files and rewrite the request before proxying it.  I turned it on, tested by changing my local hosts file to direct website requests to my proxy server, and all was good. Continue reading “Bad Proxy”

SugarSync: Cloud Backup

A couple months ago my laptop got into an unbootable state after a software update.  As annoying as that was, the timing was particularly problematic.   I had documents that I urgently needed.  I worked though the issue, but it made me rethink a few things.  Namely my backups.

I did have backups, but not that covered the files I worked on the previous night.  I had a desktop computer that I used for other reasons, and I wondered why I was not able to just bring my documents up there.  This lead me to look into cloud backup offerings.  It turns out that there are quite a few. Continue reading “SugarSync: Cloud Backup”