5 ms·
As the public entry point towards many internal APIs. Its lighter and faster than any scripting language. Gorilla toolbox made it very easy to write.
by bliti 13y ago
As the public entry point towards many internal APIs. Its lighter and faster than any scripting language. Gorilla toolbox made it very easy to write.
- vram22 13y agoInteresting use case.
- bliti 13y agoIt was to simplify a rather complicated system that used bots. Each bot would report home by requesting different URLs. That seemed overly complicated to me, because one URI change would break every single bot. I then created the public interface and simplified it to one URI. Then the data structure being sent to the APIs got an additional parameter. It told the public interface which API had to get that data. This was a very simple change, because the data structure was defined by the APIs and common among all. It ended up being very fast and allowed the bots to spend less time waiting for a response. Was planning to add a messaging queue but then I left the project (I was a consultant).
- vram22 13y ago>Then the data structure being sent to the APIs got an additional parameter. It told the public interface which API had to get that data. Nice technique.
- bliti 13y agoI call it the "Boarding Pass Pattern." I modeled it after the typical airplane boarding pass where everyone has the same data structure yet is going to different places/doing different things. :)
- vram22 13y agoGood name :) Another possible name could be the Differentiator Pattern (heh, just a wild try), since it differentiates between calls which otherwise have the same data. Or even the Call Router pattern, for obvious reasons ...