Sample code for the Akka Typed blog series
Scala Java
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
project
src/main Migrate to akka typed 2.5.7 Nov 25, 2017
.gitignore
COPYING initial build May 3, 2017
LICENSE initial build May 3, 2017
README.md code for Cluster Tools blog post Oct 4, 2017
build.sbt
pom.xml add maven pom and instructions of how to run May 5, 2017

README.md

Sample Code for Introducing Akka Typed Blog Posts

Akka Typed Version

Use akka-typed 2.5.7-M1 or later.

Blog Posts

Blog Posts and their main classes that can be run with sbt or maven:

  • Akka Typed: Hello World in the new API
    • Java
      • blog.classic.javadsl.HelloWorldApp1
      • blog.typed.javadsl.HelloWorldApp1
      • blog.classic.javadsl.HelloWorldApp2
      • blog.typed.javadsl.HelloWorldApp2
    • Scala
      • blog.classic.scaladsl.HelloWorldApp1
      • blog.typed.scaladsl.HelloWorldApp1
      • blog.classic.scaladsl.HelloWorldApp2
      • blog.typed.scaladsl.HelloWorldApp2
  • Akka Typed: Coexistence
    • Java
      • blog.typed.javadsl.CoexistenceApp1
      • blog.typed.javadsl.CoexistenceApp2
    • Scala
      • blog.typed.scaladsl.CoexistenceApp1
      • blog.typed.scaladsl.CoexistenceApp2
  • Akka Typed: Mutable vs. Immutable
    • Java
      • blog.typed.javadsl.MutableRoundRobinApp
      • blog.typed.javadsl.ImmutableRoundRobinApp
    • Scala
      • blog.typed.scaladsl.MutableRoundRobinApp
      • blog.typed.scaladsl.ImmutableRoundRobinApp
  • Akka Typed: Supervision
    • Java
      • blog.typed.javadsl.FlakyWorkerApp
    • Scala
      • blog.typed.scaladsl.FlakyWorkerApp
  • Akka Typed: Signal
    • Java
      • blog.typed.javadsl.FlakyWorkerApp2
    • Scala
      • blog.typed.scaladsl.FlakyWorkerApp2
  • Akka Typed: Timers
    • Java
      • blog.typed.javadsl.BuncherApp
    • Scala
      • blog.typed.scaladsl.BuncherApp
  • Akka Typed: New Cluster API
    • Local router
      • blog.typed.cluster.scaladsl.LocalRouterApp
    • Cluster router
      • sbt "runMain blog.typed.cluster.scaladsl.ClusterRouterApp 2551"
      • sbt "runMain blog.typed.cluster.scaladsl.ClusterRouterApp 2552"
      • sbt "runMain blog.typed.cluster.scaladsl.ClusterRouterApp 2553"
  • Akka Typed: New Cluster Tools API
    • Distributed Data
      • sbt "runMain blog.typed.cluster.scaladsl.CounterApp 2551"
      • sbt "runMain blog.typed.cluster.scaladsl.CounterApp 2552"
      • sbt "runMain blog.typed.cluster.scaladsl.CounterApp 2553"
    • Singleton
      • sbt "runMain blog.typed.cluster.scaladsl.SequenceNumberApp 2551"
      • sbt "runMain blog.typed.cluster.scaladsl.SequenceNumberApp 2552"
      • sbt "runMain blog.typed.cluster.scaladsl.SequenceNumberApp 2553"
    • Sharding
      • sbt "runMain blog.typed.cluster.scaladsl.ClusterShardingBlogPostApp cassandra"
      • sbt "runMain blog.typed.cluster.scaladsl.ClusterShardingBlogPostApp 2551"
      • sbt "runMain blog.typed.cluster.scaladsl.ClusterShardingBlogPostApp 2552"
      • sbt "runMain blog.typed.cluster.scaladsl.ClusterShardingBlogPostApp 2553"

How to Run with sbt

sbt run

Select the main class to run. Press ENTER to exit the system

How to Run with maven

mvn compile exec:java -Dexec.mainClass="blog.classic.javadsl.HelloWorldApp1"

Press ENTER to exit the system