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