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 Slide

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

    View 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 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 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 Slide

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

    View 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 Slide

  8. Practice

    View Slide

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

    View Slide

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

    View Slide