Routing Bug in The Broker

bug.gif

This morning I was trying to figure out this very nasty intermittent bug I was having with a client hitting my Greek Engine from The Broker. Very frustrating, because I've been thinking I got this guy at least a half-dozen times before, but every few days it pops up again. The problem was two-fold: first, there was a real bug in The Broker that routed away requests for services that were local, and the fact that I had two machines so the routing could take place. This meant that all the fixes I was making to a service weren't really being uniformly tested because many times they were routing away to a broken service. No fun.

The solution was to fix the bug in The Broker to sort the different instances of the same service properly, and that placed the local services at the top of the list - thus killing the "away routing". The next helpful thing was to drastically simplify the service I was writing to be self-contained. This means that it's not hitting that many other services asking them for data. This keeps the dependencies down, the speed up, and the vulnerability to routing mistakes to a minimum.

Good to get done. Not easy to find, to be sure, but nice to fix.