Monday, 7 March 2016

Play Framework 2.5.0 New Features

In this post, we are going to discuss about Play Framework new version 2.5.0 New features. 

Introduction

TypeSafe (LightBend) team has released Play Framework 2.5.0 version on March 04th, 2016 with lot of new features.


Here I have listed out all new Features of Play Framework 2.5. We will discus each new feature in-detail with some useful examples in my coming posts.


Play Framework 2.5.0 New Features:

1. New Stream API

Current Play Framework versions are using Play’s iteratee-based asynchronous IO API. Play 2.5.0 is going to move from Play’s iteratee-based asynchronous IO API to Akka streams.

2. WebSocket Frames Improvements


The Play Framework v.2.5 WebSocket API gives us more direct control over WebSocket frames. 

We can send and receive binary, text, ping, pong and close frames. If we don’t need this facility, Play Framework will automatically convert our request/response JSON or XML data into the right kind of frame.

3. Java API Updated to use JAVA SE 8

We can use SAM(Functional Interfaces) like Consumer,Runnable,Predicate etc and also Optional.

4. Supports other Logging Frameworks

Current versions of Play Framework supports only built-in Logback logging framework. Now, Play Framework 2.5 onwards, it supports other logging frameworks too like it also supports SL4FJ logging framework.


5. Performance Improvements

6. WS Improvements

7. ScalaTest Improvments

Play Framework 2.5 supports Scalatest 3.0 version.

8. Netty Server Improvements

Play Framework 2.5 supports Netty 4.0 server as Native Socket transport. 


Here I have listed out all new Features of Play Framework 2.5. We will discus each new feature in-detail with some useful examples in my coming posts.

Please drop me a comment if you like my post or have any suggestions or issues.

Thank you.