Reactive Programming

Employee-Self-Service: Reactive and Non-Blocking Database Access using Play Framework and Anorm – (Part-3)

Reading Time: 1 minute Last week, We have added Reactive and Non-Blocking behaviour in Employee-Self-Service  application. Now we have implemented Database Access as Reactive and Non-Blocking: Before def list() = Action.async { implicit request => Employee.list match { case Right(data) => Promise.timeout(Ok(html.list(data)), 1 seconds) case Left(error) => Promise.timeout(Ok(html.list(Nil)), 1 seconds) } } After def list() = Action.async { implicit request => val futureEmpList = scala.concurrent.Future { Employee.list } val timeoutFuture = Promise.timeout(“Oops”, 10.second) Continue Reading

How to use Cookies in Play framework

Reading Time: 2 minutes Play framework is being used by every Scala developer now a days. In this post we’ll learn about using Cookies in Play framework. Play has a stateless architecture so in order to keep the data across multiple HTTP request we can use Session & Flash. But both Session & Flash loose data as soon as browser is closed. So, to retain data even after closing the browser, we Continue Reading

Monthly Scala News Letter – March 2014

Reading Time: 1 minute We are back again with April 2014, Newsletter. Here is this Monthly Scala News letter – March 2014 In this news letter, you will find some new organizations which are adopting Scala, Akka in their daily project, some new books to become expert of Scala, Akka and a new way to convince your boss to use typesafe platform. So, if you haven’t subscribed to the Continue Reading

Knoldus Pune Careers - Hiring Freshers

Get a head start on your career at Knoldus. Join us!