Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Scala at journi

Scala at journi

Review of using Scala and Play Framework for 2 years at journi.

Christian Papauschek

October 28, 2014
Tweet

Other Decks in Programming

Transcript

  1. Challenges Web & Mobile platform 15000 users, 800 daily active

    users Real time (push-)notifications Storing lots of pictures (GBs / day) Handling Apple featurings …
  2. (Java libraries we use ;-) • ImgScalr • Amazon S3

    Library • Twitter4J • LogEntries (Cloud logging) • Metadata extractor (EXIF) Started replacing them with Play-WS
  3. Our experience • We love Scala. • We love Play

    Framework 2. • We have a love / hate relationship with Slick 2.
  4. • Having type-safe db access is great. • Having generated

    SQL in combination with ancient query optimizers is not so great. • Had to write SQL manually in some cases :(
  5. Framework 2 • Very stable • Very performant (something else

    will be slow :D) • Team-friendly • Akka in the backend opens up possibilities • Exciting future (ScalaJS + Play2, anyone?)
  6. Project structure 4 project modules web mobile common tools JS/HTML

    JSON API everything and the kitchen sink command-line helpers
  7. Where to run a Play 2 app? • Huge performance

    differences (SSD!) • Huge price differences • We evaluated AWS / DigitalOcean / Linode / Hetzner