Archive for October 2006

Doing a Demo? Don't Rely on an API

And that’s why automated testing of the integration points are very important!

I’m currently involved in a huge project made of multiple components.
To each component corresponds a project team.
My direct upstream dependency is a web API.

In addition to our own unit tests and system tests, we’ve got a set of test scripts that monitor the features we are using. That includes:

  • validating the supplier API against their own XML Schemas (Relax-NG in our case) for the API calls used in our system
  • If both components use a common set of reference data, a test to check that the data set is the same in the API and in our component

There’s trouble only if the XML Schemas are not updated when changes are made to the API.

As the tests are run regularly we discover changes in supplier’s API quickly. If we don’t have time to make the change in our side (e.g: 5 minutes before a demo) we switch to another instance of the API with the old code (the supplier has a set of rolling instances that guarantees that the previous version of the API is always available on an instance). This is not really applicable with public APIs.

An additional step we have taken is to mock up the results of API calls into static XML. These are normally used for our internal system testing, but if the integration tests with the supplier fails and there isn’t a workable instance of their API, we can switch to the static XMLs (this situation happened once in our project).

This approach will also work with public APIs that output XML like Flickr’s API and Amazon REST service.

Doing a Demo? Don’t Rely on an API: “

Eurobuddy Matt was doing a presentation when there was an API change at GoogleMaps. He’s a quick fella, but I’ve been caught with my pants down.

(Via ONLamp.com.)

40




40

Originally uploaded by Rija [Pomme::TAB].

A poster of the 40 photos of mine considered “interesting” photos according to Flickr’ s top secret interestingness algorithm.
My personal favourites are not all in there and there are some photos that I don’t like but have been found to be “interesting”.
That’s often true for other people’s photos too.
That’s why I don’t go often to the “Explore” pages of Flickr.

Most of the photos I’ve made a blog post of are from my contact list or from the flickr groups I belong to.
The groups I like to browse regularly include:
Flickr Soup To The Soul, Utata, The world through my eyes, my own West London group and all the London group out there, and so many more …

Sunsprays




Sunsprays

Originally uploaded by Ahmed Zahid.

It’s cold here in England, so let’s share a bit of tropical warmth with this gorgeous photo from one on my flickr contacts.
I particularly like how the sun rays reveals teh details of the leaves, keeping the leaves out of their reach in the dark.
Superb.