* fix links to samples * remove activator links to fsm-sample * we are reducing the number of samples to maintain and since samples are mostly interesting for new users most of them will be based on Akka Typed
3.3 KiB
Example projects
The following example projects can be downloaded. They contain build files and have instructions of how to run.
Quickstart
@scala[Quickstart Guide] @java[Quickstart Guide]
The Quickstart guide walks you through example code that introduces how to define actor systems, actors, and messages as well as how to use the test module and logging.
FSM
@java[@extrefFSM example project] @scala[@extrefFSM example project]
This project contains a Dining Hakkers sample illustrating how to model a Finite State Machine (FSM) with actors.
Cluster
@java[@extrefCluster example project] @scala[@extrefCluster example project]
This project contains samples illustrating different Cluster features, such as subscribing to cluster membership events, and sending messages to actors running on nodes in the cluster with Cluster aware routers.
It also includes Multi JVM Testing with the sbt-multi-jvm plugin.
Distributed Data
@java[@extrefDistributed Data example project] @scala[@extrefDistributed Data example project]
This project contains several samples illustrating how to use Distributed Data.
Cluster Sharding
@java[@extrefSharding example project] @scala[@extrefSharding example project]
This project contains a KillrWeather sample illustrating how to use Cluster Sharding.
Persistence
@java[@extrefPersistence example project] @scala[@extrefPersistence example project]
This project contains a Shopping Cart sample illustrating how to use Akka Persistence.
CQRS
@java[@extrefCQRS example project] @scala[@extrefCQRS example project]
This project contains a Shopping Cart sample illustrating how to use Akka Persistence. The events are tagged to be consumed by even processors to build other representations from the events, or publish the events to other services.
Multi-DC Persistence
@java[@extrefMulti-DC Persistence example project] @scala[@extrefMulti-DC Persistence example project]
Illustrates how to use Lightbend's Multi-DC Persistence with active-active persistent entities across data centers.
Cluster with Docker
@java[@extrefCluster with docker-compse example project] @scala[@extrefCluster with docker-compose example project]
Illustrates how to use Akka Cluster with Docker compose.
Cluster with Kubernetes
@extrefCluster with Kubernetes example project
This sample illustrates how to form an Akka Cluster with Akka Bootstrap when running in Kubernetes.