Here is another quick tool built on GAE. This one is super simple, but pretty handy. Today Twitter went down, and somewhere in our system we were using the Twitter API to display one of our status feeds. Them being down became us being slow.
Well, I wanted to do some quick tests to keep this from happening again, but by the time I got to it Twitter was responsive again. To fix it I would need to create a bad URL. The crappy thing is I wanted a slow response time, not exactly a bad response/error. Creating a 404 error is easy, just go to some url that doesn’t exists and test. But I want a slowwwww response.
I quickly searched Google for something I could use, and didn’t find one. When I realized I would have to create a fake pause endpoint somewhere I figured someone else out there might benefit from a quick public version of this system. So, I created fake response server. The first default endpoint available sleeps for a variable time.
and add a sleep param to change the sleep time seconds
(The default is 10 seconds)
Nothing major, but why not publicize the tool in case it can help some other shmuck out there like me
Updated Oct 2015:
Added support for POST and PUT methods
Added support for OPTION method
Updated Feb 2015:
Added params to change response status (500, 404, etc), and allow for setting a return a JSON package. It now includes instructions built into the response as well.