Peter's Blog

Redefining the Impossible

Items filed under randomarticle


An interesting way to pass the time is the 'Random Article' feature on wikipedia. You press it and get one of 2.2 million random pages. Often they are about obscure American towns but today it turned up Amazon SimpleDB. This looks interesting, an online database where you pay for the amount of data you use.

From what I can make out, data is stored in a huge hash, although each hash entry can hold multiple items (a bag in a hash?). They compare it to a worksheet but that analogy seems to be aimed at pointy haired bosses who can't think beyond Microsoft Office. The api looks very simple, it shuns SQL.

Advantages:

  • someone else worries about scalability, administration, backups

Disadvantages:

  • not SQL: not a bad thing but it could give problems when used with applications written for SQL (i.e. most of them).
  • inversely, if you developed an application that relied on this, you better hope they keep it running.

So, it's interesting but would I want to rely on it? Probably only if it had an SQL shim on top so I could migrate away pronto, should the need arise.

Google for SimpleDb and there is lots of analysis around. 1024 bytes per item? Lexicographical comparison of dates and numbers?

I think I'll stick with SQL.


Filed under: randomarticle wikipedia


Did my daily check on statcounter and my hits for today were a little low. Checked this site and it was dead with document contains no data. Argh. Try to ssh into oneandone dedicated server and ssh refuses my username. Argh. Try to log in as root (which should not be possible, I disabled root login in sshd) and it let me in: it was running the debian rescue system. Somehow the server had rebooted into the rescue console.

Rebooted the system and it seems ok now.

Little more I can do than hope it doesn't happen again. Worrying.

Update: after posting this, went to wikipedia random article and got this. Bad omen.


Filed under: oneandone randomarticle

1 Comment