Play Framework Cookbook

More Information
  • Write own render methods to return custom formats for creating custom PDFs or RSS and ATOM feed responses
  • Understand internal caching and implement your own cache in just a few lines of code
  • Use existing modules to incorporate legacy spring or guice applications
  • Integrate external APIs into your own application without affecting your application during downtimes
  • Add custom monitoring points deep inside your application to simplify bottleneck detection
  • Create your own API which gets exposed to the world wide web
  • Leverage the validation abilities of the play framework to make sure you always handle valid data to your backend
  • Create your own modules to make your application as reusable as possible
  • Improve performance by setting up multi node environments without struggling through the usual pitfalls
  • Provide integration to your operation monitoring systems like nagios or icinga
  • Implement messaging capabilities by connecting to apache camel or rabbitmq
  • Improve searching of data in a multi node setup by searching via apache solr



The Play framework is the new kid on the block of Java frameworks. By breaking with existing standards the play framework tries not to abstract away from HTTP as most web frameworks do, but tightly integrates with it. This means quite a shift for Java programmers. Understanding these concepts behind the play framework and its impact on web development with Java are crucial for fast development of applications.

The Play Framework Cookbook starts where the beginner documentation ends. It shows you how to utilize advanced features of the Play framework – piece by piece and completely outlined with working applications!

The reader will be taken through all layers of the Play Framework and provided with in-depth knowledge from as many examples and applications as possible. Leveraging the most from the Play framework means to think simple again in a java environment. Implement your own renderers, integrate tightly with HTTP, use existing code, improve site performance with caching and integrate with other web services and interfaces. Learn about non-functional issues like modularity or integration into production and testing environments. In order to provide the best learning experience during reading Play Framework Cookbook, almost every example is provided with source code, so you can start immediately to integrate recipes into your own play applications.

  • Make your application more modular, by introducing you to the world of modules.
  • Keep your application up and running in production mode, from setup to monitoring it appropriately.
  • Integrate play applications into your CI environment
  • Keep performance high by using caching
  • Learn how to leverage external APIs without letting your application go down on problems
  • Use the play framework as a provider for your API systems
  • Implement your own authorization mechanisms, and different output formats
Page Count 292
Course Length 8 hours 45 minutes
ISBN 9781849515528
Date Of Publication 7 Aug 2011


Alexander Reelsen

Alexander Reelsen is a software engineer living in Munich, Germany, where he has been working on different software systems such as a touristic booking engine, campaign management, and messaging platform, and a B2B e-commerce portal. He began using the Play Framework in 2009, and was immediately astonished by the sheer simplicity of this framework, while still dealing with pure Java. Other interests include scaling shared-nothing web architectures and NoSQL databases.

Being a system engineer, when he started playing around with Linux at the age of 14, Alexander got to know about software engineering during his studies and decided that web applications are more interesting than system administration.

When not doing something hacky, he enjoys playing a good game of basketball or street ball.

Sometimes he even tweets at and can be reached anytime at