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

Akka intro at Amsterdam Scala Academy meetup

Akka intro at Amsterdam Scala Academy meetup

December 19 '2013

Dmitry Ivanov

December 19, 2013
Tweet

More Decks by Dmitry Ivanov

Other Decks in Programming

Transcript

  1. Akka intro!
    Amsterdam Scala Academy III!
    Dec 19 ‘2013
    +

    View full-size slide

  2. Akka
    • Akka is a toolkit and runtime for building highly
    concurrent, distributed, and fault tolerant event-
    driven applications on the JVM.

    View full-size slide

  3. Akka
    • Higly concurrent <— Actors!
    • Fault tolerance <— Supervision!
    • Distributed <— Remoting / Cluster
    akka-actor, akka-cluster, akka-persistence,
    akka-io, akka-osgi, akka-testkit, etc

    View full-size slide

  4. Akka
    • Failure: Deal with it. Viktor Klang

    http://skillsmatter.com/podcast/scala/viktor-klang!
    • The road to akka cluster. Jonas Boner

    http://skillsmatter.com/podcast/scala/jonas-boner

    View full-size slide

  5. Actors
    • Actor computation model —> Carl Hewitt, 1973.!
    • An actor is a computational entity that, in response to a
    message it receives, can concurrently:!
    • send a finite number of messages to other actors;!
    • create a finite number of new actors;!
    • designate the behavior to be used for the next message
    it receives.!
    • Actors in Scala: Scalaz, Liftweb, Scala actors, Akka

    View full-size slide

  6. Green Belt Akka
    • Akka concepts!
    • https://github.com/ajantis/akka-meetup-sthlm/
    blob/master/GREEN_BELT_AKKA.md

    View full-size slide

  7. Practice
    • Akka Kata in Scala. Authors: ! !
    • Henrik Engström : @h3nk3!
    • Björn Antonsson : @bantonsson!
    • http://github.com/ajantis/akka-meetup-sthlm!
    • > git clone [email protected]:ajantis/akka-meetup-
    sthlm.git!
    • > sbt gen-idea / sbt eclipse

    View full-size slide

  8. Practice
    • To implement:!
    • BettingService!
    • BettingProcessor

    View full-size slide

  9. Thanks!
    • Dmitry Ivanov !
    • twitter: @idajantis!
    • github: ajantis

    View full-size slide