Nowadays, all web applications have to connect with external services. Delegating difficult or complex computations to them or interacting on a social network are just some examples among thousands. Indeed, this means that our application can focus on what it is built for and it will ask other applications for specific needs.
This leads to the SOA architecture, which is more prone to the separation of concerns among services that have a clean and simple definition. A web service is one such dedicated service but is available online. In this chapter, we will discuss how to integrate a Play! Framework 2 application with such an architecture involving web services.
This kind of distributed architecture can lead to some problems because it relies on remote services, which most of the time don't have guaranteed SLAs. So they might block the server until a response is given or a timeout has occurred; meanwhile, other users who could have sent requests to...