Unbalanced

It’s 2011.

Scenario:

  • I need data from your web service.
  • In order to retrieve said data, I have to call another web service from you that returns the most appropriately load-balanced URL from which to retrieve data.
  • I now call the appropriately load-balanced URL at the time of my first request to get the data I need from your web service.

Problems:

  • 2 HTTP requests > 1 HTTP request to request data from your web service.
  • What happens if in-between those 2 HTTP requests, the URL that I am going to use to request data from your web service is not the most appropriately load-balanced URL?

Solutions:

  • Seinfeld “Movie Phone” aka “Why don’t you just send me to the most appropriately load-balanced URL?”

It’s 2011. Stop being stupid about that fact.