12. What is Play?
• Easy to build web applications with Java & Scala.
• Based on a lightweight, stateless, web-friendly
architecture.
• Built on Akka, Play provides predictable and
minimal resource consumption (CPU, memory,
threads) for highly-scalable applications
13. History
• Play 1 Created By
Guillaume Bort at
Zengularity SA in 2007
• Play 2 release in 2012 by
Typesafe (rewrite using
Scala)
• Part of Typesafe Activator
14. Philosophy
• Build for Asynchronous
Programming
• Focused on Type Safety
• Native support for Java and
Scala
• Powerful Build System
• Datastore and Model
Integration
15. Full Stack Framework
• HTTP Server (Netty)
• Routing
• Body Parsers
• Action composition
• Security
• Caching
• Database
• i18n
• Dependency Injection
• Template engine (HTML,
XML...)
• HTTP forms (bindings,
validation)
• JSON, XML
• Javascript Closure Compiler
• Coffeescript, Less
21. Whats the Usecase?
User
Service
GET /github/:username
User
Controller
GITHUB
User
Repository
GET /users/list/
https://api.github.com
create(User)
update(User)
getAllUsers
allUsers():List<User>
Route Test
Functional Test
Integration Test
Unit Test
Github
Service
findUser():User
Unit Test
save(User)