Iain Hull

Akka Typed Test Probes

Missing Akka TestKit with Akka Typed.

It is no secret that I love types and have been using Akka for a number of years, so I could not wait to play with Akka Typed. Akka Typed is quite different from its untyped cousin. Every time I reach for my favorite class or idiom I find it works differently or maybe doesn’t even exist at all. One of the big differences is that there is not TestKit for typed actors.

Akka Dynamo 1

First experiments with implementing Dynamo in Akka.

http://lethain.com/hands-on-review-of-the-dynamo-paper/ Setup Install sbt brew install sbt Create an akka project mkdir akka-dynamo cd akka-dynamo mkdir -p src/main/scala mkdir -p src/test/scala Create build.sbt name := "Akka Dynamo" scalaVersion := "2.9.2" resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/" retrieveManaged := true libraryDependencies ++= Seq("com.typesafe.akka" % "akka-actor" % "2.0.3", "com.typesafe.akka" % "akka-remote" % "2.0.3", "com.typesafe.akka" % "akka-testkit" % "2.0.3" % "test", "org.specs2" %% "specs2" % "1.9" % "test", "junit" % "junit" % "4.5" % "test") The messages Scala is a strongly typed language so the message types have to be defined.