A 'Ping Pong' Scala Akka actors example | Akka actors tutorial series | alvinalexander.com
By Alvin Alexander. Last updated: Jun 9, 2014 Akka actors FAQ: Can you share an "Akka Actors 101" example (a simple "Introduction to Akka Actors" example)? Sure. If you're looking for a really simple tutorial, check out my Akka Actors "Hello, world" tutorial . If that one is overly simplified and you want something more, continue on here. Quick intro: When I first started to learn about Java threading, there was a nice "Ping Pong" example you could look at to get a basic idea of how threading worked. I was surprised when there wasn't a similar tutorial for Akka actors, so I took a little time to write my own. The SBT build file First up, I created this as an SBT project, so here's my build.sbt file, updated for Scala 2.10.0 and Akka 2.1.1: name := "Akka Ping Pong Example" version := "1.1" scalaVersion := "2.10.0" resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/" libraryDependencies += "com.typesafe.akka" %% "akka-actor" % "2.1.Read full article from A 'Ping Pong' Scala Akka actors example | Akka actors tutorial series | alvinalexander.com
No comments:
Post a Comment