May 2017
Intermediate to advanced
414 pages
13h
English
import akka.actor.{Actor, ActorSystem, Props} import akka.pattern.{CircuitBreaker, ask} import akka.util.Timeout import scala.concurrent.duration._
case class FetchRecord(recordID: Int) case class Person(name: String, age: Int)
object DB { val data = Map(1 -> Person("John", 21), 2 -> Person("Peter", 30), 3 -> Person("James", 40), 4 -> Person("Alice", 25), 5 -> Person("Henry", 26), 6 -> Person("Jackson", 48)) }
Read now
Unlock full access