O'Reilly logo

Play Framework Cookbook by Alexander Reelsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Including a Twitter search in your application

This example shows you how to include the result of a Twitter search in your application. This time it is not client based as the first recipe of this chapter. The result will be downloaded to the server, and then displayed to the client. This poses a possible problem.

What happens if your server cannot reach Twitter? There might be a number of different reasons. For example, your DNS is flaky, Twitter is down, the routing to Twitter is broken, or you are pulling off too many requests resulting in a ban, and many, many more. However, this should not affect your application. It might, of course, affect what data is displayed on the page – it may however never stop, or block any of your services. Your ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required