Scala + Play + Akka
Created by MeStudent / @MeStudentTech
Michał Tomański / @michaltomanski
Overview
- Who am I?
- What is Scala?
- What is Akka?
- What is Play?
- Basics of Play
- Sample application
- Questions
International students platform
Scala, Play, Akka, MySQL
React, TypeScript, SASS
Michał Tomański / @michaltomanski
Scala
- Scalable language
- Runs on JVM
- Strongly and statically typed
- Mix OOP with FP
- Functions as first-class citizens
Akka
- Extremely powerful toolkit for Scala (and Java)
- Main focus - actors
- Message-based and asynchronous concurrency
- Parallel computing
Play
- Built-in Netty server
- stateless - no JEE session
- Used mainly for RESTful APIs
- Scala and Java API
Play basics
- Start with empty project
- Simple controller
- Routing
- JSON handling
- Add Akka actor
Sample application
- Fetching Tweets filtered by word
- Opening sockets for each user
- Streaming those Tweets to every socket
- Additional filtering for each socket
- Tests, tests, tests...
https://github.com/MeStudent
Questions?
Created by MeStudent / @MeStudentTech
Michał Tomański / @michaltomanski
deck
By Michał Tomański
deck
- 1,231