talira

Play Framework

The high velocity web framework for Java and Scala

open sourceApache-2.0free

Play is a web framework for Java and Scala with a lightweight, stateless architecture. It runs on a fully asynchronous, non-blocking model built on Apache Pekko (Play 3) or Akka (Play 2), so apps scale predictably with modest CPU, memory and threads. Development is hit-refresh: change code and reload the browser. It is RESTful by default, treats JSON as first class, supports WebSockets and server-sent events, and includes testing tools and a console. It is maintained by its community and funded through Open Collective.

Problems it solves

  • build a scalable web app or REST API in Java or Scala
  • see code changes by refreshing the browser instead of restarting the JVM server
  • handle many concurrent connections on the JVM without a thread per request

Features

  • hit-refresh development workflow
  • asynchronous, non-blocking I/O on Pekko or Akka
  • stateless web tier
  • JSON, WebSockets and server-sent events
  • built-in testing tools

Alternatives

The same job

These do what Play Framework does.

  1. http4s Typeful, functional, streaming HTTP for Scala
  2. Spring Boot Create stand-alone, production-grade Spring based applications that you can "just run"
  3. Javalin A simple, lightweight web framework for Java and Kotlin, on top of Jetty

Compare Play Framework with the top 3