Why it matters

Play is major Scala web framework. Understanding shapes options.

Advertisement

The architecture

Routes file: URL → controller mapping.

Controllers: return Future[Result].

Play stackRoutesURL mappingControllersFuture resultsAkka underneathasyncRecent versions use Pekko instead of Akka (license change)
Play components.
Advertisement

How it works end to end

Twirl templates: server-side rendering.

JSON: Play JSON or Circe.

DB: Slick or Doobie.

WebSocket + streaming support.