Skip to content

Play! info mix

peterszatmary edited this page Feb 22, 2016 · 36 revisions

Play! info mix

Play! links

Other links

Some notes

Warning: node.js detection failed, sbt will use the Rhino based Trireme JavaScript engine instead to run JavaScript assets compilation, which in some cases may be orders of magnitude slower than using node.js.

... you need to install Nodejs (for example on Debians apt-get install nodejs). Reason is performance when play run javascript it can be much faster with Nodejs.

  • ebean deprecated, use JPA instead. reasons : 1 , 2

  • we didnt use Akka-HTTP in this project but rather standard Netty because see. Actually Akka-HTTP is written for typesafe by Spray creators. (Spray creators creates Akka-HTTP.

  • [Reactive streams] (https://www.playframework.com/documentation/2.4.x/ReactiveStreamsIntegration) in Play! are highly experimental. There is no Java API for now ! (v 2.4)

  • Future of Play! is Akka-HTTP with reactive streams.

  • Non blocking in Play! is The Play WS API, Sending/receiving messages to/from Akka actors

  • Play project structure has changed few times with new versions

  • Twirl Play! use for view rendering Twirl templating. Is default but you can use others. Is non component based but you have helpers with dynamic html elements in it. Is compiled == type checking, your IDE can helps you like with java code. (type checking). Your views are just scala functions so you can call it. Type checking on compile time.

  • Play! hooks

  • By default is Play! intended work with short requests. If you have not, long request block the Akka component of Play! app. (Akka thread pool is saturating). It can be solved by execution contexts.

  • Play! alternatives Spray, Xitrum