Samples

New to Akka? Start here:

This sample is recommended for beginners and provides a foundational understanding of Akka. Start here before exploring other samples.

Other samples are available that demonstrate important patterns and abstractions. These can be downloaded as zip files. Please refer to the README file in each zip for setup and usage instructions.

Sample Level

Build a customer registry with query capabilities

Intermediate

Build a funds transfer workflow between two wallets

Intermediate

Build a user registration service implemented as a Choreography Saga

Advanced

It is also possible to deploy a pre-built sample project in the Akka console, eliminating the need for local development.

Maven archetype

To create the build structure of a new service you can use the Maven archetype. From a command window, in the parent directory of the new service, run the following:

Linux or macOS
mvn archetype:generate \
  -DarchetypeGroupId=io.akka \
  -DarchetypeArtifactId=akka-javasdk-archetype \
  -DarchetypeVersion=3.0.0-M11
Windows 10+
mvn archetype:generate ^
  -DarchetypeGroupId=io.akka ^
  -DarchetypeArtifactId=akka-javasdk-archetype ^
  -DarchetypeVersion=3.0.0-M11