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.

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 shopping cart

Beginner

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
Windows 10+
mvn archetype:generate ^
  -DarchetypeGroupId=io.akka ^
  -DarchetypeArtifactId=akka-javasdk-archetype ^
  -DarchetypeVersion=3.0.0