When I worked on Birdnest last week, I realized the simplicity and how powerful framework Google App Engine provided. Google provided framework makes my job in implementation the birdnest for AppEngine really easily. As you have seen, I implemented the working prototype of Birdnest within 3-4 hours after studied the web framework. With git and Google Code, the project went to usable state within 2 days.
Nevertheless, Birdnest is not responsive and reliable as it should be. It often returns error with 304 status code which mean Gateway timeout for some users. After some investigate, @sugree and I implied this happen because App Engine limits the outgoing urlfetch, HTTP related module we’ve used to call the Twitter API, request timeout to 5 seconds and Twitter servers are not responsive enough to reply within that duration. This causes Birdnest to be terminated and throw out 504 error to the clients.
Some of you might noticed the discussion between @sugree and I over twitter, we’re now setting up Birdnest somewhere outside the Google App Engine to solve the above problem. Of course, to minimize porting time, web.py is chosen to be target framework because of its similarity to Google webapp framework. Anyway, we have to change urlfetch to httplib which is more complex and a bit harder to use. Moreover, web.py doesn’t provide some functionality we’ve rely on App Engine. However, this is still considered easier than using php or any other language. Thanks to battery included.
The contruction of this new nest is planned to be completed and ready to use within Monday and the new gateway url will be announced thereafter.
Happy tweeting
Post new comment