At the Web 2.0 Expo from the 22nd to the 25th

I'll be at the Web 2.0 Expo at SF from the 22nd to 25th. If you're nearby and want to meet up, drop me a line at sriramk@microsoft.com/mail@sriramkrishnan.com

 

Yet another Flickr change, yet another mutiny

Flickr related change - check
User revolt with protest groups - check
A blog post from Zooomr CEO Thomas Hawk, supporting the protest - check

Sometimes, I feel really sorry for Flickr. They can't seem to make *any* change without drawing the ire of some really vocal users. Here are some incidents from the top off my head

- Flickr getting acquired by Yahoo
- Flickr moving to using Yahoo's login system
- Flickr potentially getting acquired by Microsoft

Now, I love Flickr. I think Stewart Butterfield and Caterina Fake have created something wonderful. I've gifted Pro accounts to friends and I have some valuable photos up there. But I think there's a line between 'being vocal fans' and 'harming the site's progress'. It's almost as if a lot of people have a frozen mental image of Flickr as it was when they first joined it and want to preserve that site forever, at the cost of the site growing.

"But shouldn't Flickr stick to what it does best? Photos?"

No.

Let me illustrate with a short history lesson from Microsoft's past. Microsoft was originally a languages and tools company - BillG wrote the first BASIC interpreter. If it had stuck to just doing one thing well - languages, it would have never built Windows and Office. Similarly, a decade ago, Microsoft was primarily known as a consumer company and didn't have a credible presence on the backend. SQL Server, Exchange, IIS and the Windows Server products changed all that. At each point in time, if Microsoft had stuck to what users thought it did best, it wouldn't have grown.

In my view, Flickr users are doing Flickr a disservice if they want to shoehorn into an online photo site. I would rather see Flickr evolve beyond photos into an friendly online forum where people post creations, regardless of their nature. Flickr's management seems to understand this well - the 90-second limit on the videos is a master-stroke. It stops people turning Flickr into another Youtube and forces them to some extent to post original content.

The Thomas Hawk Affair

Thomas Hawk's involvement in each of these protests makes me a bit uncomfortable since I'm a fan of his photography and enjoy reading his blog. At the end of the day, he is the CEO of a company that competes with Flickr. For him to lead every Flickr user protest and claim that there is no conflict of interest is a bit...stretched. A friend compared this to Tom Anderson (hypothetically) protesting Facebook's beacon implementation. Even though Thomas' arguments are probably being made on good faith, the fact remains that he stands to gain from Flickr users leaving to join his service.


 

Popfly - now using Cacheman

John beat me to the post. Popfly is now running on top of Cacheman and we're seeing anywhere between a 2x-6x perf improvement depending on the mashup you're running. This is also the first time Cacheman has been put to real production usage and so far, it has been handling all of Popfly's traffic without breaking a sweat.

This has to be the first time one of my pet projects has proven remotely useful so I'm pretty pleased :-)

 

Slicehost

I spent a lot of my weekend moving my website from Dreamhost to Slicehost. Slicehost is a VPS provider with a platform based on Xen. This was not really due to any problem with Dreamhost (they're really good and I would recommend them instantly) but more due to how good Slicehost was. In fact, I have to say that Slicehost, at this early stage, is by far the best host I've worked with.

Shared hosts vs Virtual Private Servers vs dedicated servers

A quick primer on shared hosts vs VPS vs dedicated servers (most of you can probably skip this section - but you'll be surprised how many people confuse these).

A shared host, like the name implies, means that you get a machine that is shared. Your website will run on the same box as several other websites with some security ACLs in place to make sure you don't trample over someone else's files. Depending on the host, your access to the machine might range from just FTPing files over to a shell account where you can log in and run programs yourself. However, you'll never have root/administrator access to the box and you'll usually need to go through cPanel/some-really-ugly administrative control panel to request changes to your configuration or setting up new software. However, these security settings can't really protect against other type of bad behavior from individual websites. For example, if your website happens to be on the same machine as another website undergoing a Digg/Slashdot-effect, your performance will be affected as there is no real effective throttling mechanism. Most shared hosts will either kill the website hogging resources or perform some manual magic, like moving it to a different box.

A dedicated server is the other end of the spectrum - you get a full machine to yourself. Depending on which company you work and/or how much money you pay, this might be from a low-end provider or in a colo facility or in a big datacenter along with thousands of other boxes. You don't share the machine with anyone and you can party on it to your heart's content. However, since these require a 1:1 mapping between customer and hardware box, they're typically expensive.

A VPS falls in the middle. They offer you most of the benefits of dedicated servers (full root access on the box) without the 'bad-neighbour' problems of shared hosts. They tackle the latter problem by using some form of virtualization and use a hypervisor or a virtual machine to act as a sandbox and throttle resources. In Slicehost's case, they use Xen. In the screenshot below from my slice, you can see the custom Xen kernel in action as well as the 256mb limit imposed on my slice though the actual underlying hardware probably supports multiple GBs.

image

Some random notes


 

Running Ubuntu on Windows Server 2008 Hyper-V

I'm hoping this post saves people the trouble I had with getting Ubuntu 7.10 to boot on Win2k8 Hyper-V.

If you're trying to install Ubuntu 7.10 (either server or desktop) on a VT-enabled machine, you'll be probably get stuck at the "Loading..." screen. If you're interested in the gory details, check out this bug - the issue seems to be around emulation of real mode instructions and the graphics instructions that ISOLinux uses to boot.

The fix is simple - get the patch from this thread and patch your ISO images (the patch makes a small change to your isolinux.cfg.

Ubuntu is now purring away happily on my Win2k8 box :-)

 

Cacheman update (0.0.2)

I've just put out a new Cacheman release (0.0.2 for those of you keeping count). You can get the bits from the link at the bottom of http://www.sriramkrishnan.com/blog/2008/02/cacheman-fast-distributed-hashtable-for.html (which will always point to the latest release).

There are no new features in this release but a *ton* of bug fixes. I had fun stomping out several race conditions that had crept into the code. I've also tested it on a bunch of diverse environments (single-core and multi-core, x86 and x64, Windows XP/Vista and Windows Server 2003/2008) so you shouldn't see some of the OS specific issues that were present in the last release.

I would like to thank Ayende for taking the trouble to find and report a lot of the bugs in the last release. Thanks Ayende!

 

Cacheman - a fast distributed hashtable for Windows

Cacheman is a fast, distributed hashtable for Windows, implemented purely in managed code. This is a personal side-project which I started and abandoned several months ago and picked up a few weekends ago. If you just want the binaries, scroll to the bottom of the post to get the raw, early bits (and I do mean raw and early!)

It all started with my fascination with memcached and how well it works for several heavy-traffic sites. I set off to create a bare bones hashtable with a set of requirements in mind

Note that memcached meets a lot of the requirements above. My biggest reason for starting from scratch was to just see 'whether I could do it' :-).

I'll walk you through a little demonstration before digging into how it works and why certain design decisions were made.

A quick tour

If you grab the binaries below, you'll see 3 binaries - the server, a console/client and a library that you can link to your own apps.

image

image

How stuff works (with a few design detours and some pretty perf graphs)

The Bits

There is a lot of work left to be done (a better client, wrapping the server into a NT service, making things more ops friendly, lock-free internal data structures,etc) but I wanted to try the 'release-early-release often' approach for once. Things are quite busy at work (some kick-a** Popfly features in the pipeline as usual) so only expect bug fixes over the weekend :)

Be warned - these are really early, really raw bits. Stuff will crash or not work. The next version will change everything. Demons will be pulled out of your nose. Use at your own risk! Have fun and send feedback through the comments or to mail@sriramkrishnan.com or sriramk@microsoft.com

Download - Cacheman_0_0_2.zip

Acknowledgements

I don't usually have an 'acknowledgements' section but I just had to have one this time. A shout out to my friends who saw very little of me these past weekends. :) And to Brad Fitzpatrick and the rest of the Memcached folks for their awesome work.

Updated 2nd March 2008 - Updated link to Cacheman_0_0_2.zip which has a ton of bug fixes


Archives

November 2004   January 2006   June 2006   July 2006   August 2006   September 2006   October 2006   November 2006   December 2006   January 2007   February 2007   March 2007   April 2007   May 2007   June 2007   July 2007   August 2007   September 2007   October 2007   December 2007   January 2008   February 2008   March 2008   April 2008