Documentation

  • in

Version 2.5.4

Getting started

New to Akka, want to get up and running and learn the basics as fast as possible? Check out the get started section of the documentation!

Akka Modules

Akka Actors

At the core of Akka: A model for concurrency and distribution without all the pain of threading primitives.

Scala

Reference API

Java

Reference API
  • sbt
  • Gradle
  • Maven
libraryDependencies ++= Seq(
  "com.typesafe.akka" %% "akka-actor" % "2.5.4",
  "com.typesafe.akka" %% "akka-testkit" % "2.5.4" % Test
)
dependencies {
  compile group: 'com.typesafe.akka', name: 'akka-actor_2.11', version: '2.5.4'
  testCompile group: 'com.typesafe.akka', name: 'akka-testkit_2.11', version: '2.5.4'
}
<dependency>
  <groupId>com.typesafe.akka</groupId>
  <artifactId>akka-actor_2.11</artifactId>
  <version>2.5.4</version>
</dependency>
<dependency>
  <groupId>com.typesafe.akka</groupId>
  <artifactId>akka-testkit_2.11</artifactId>
  <version>2.5.4</version>
  <scope>test</scope>
</dependency>

Akka Streams

An intuitive and safe way to do asynchronous, non-blocking backpressured stream processing.

Scala

Reference API

Java

Reference API
  • sbt
  • Gradle
  • Maven
libraryDependencies ++= Seq( 
  "com.typesafe.akka" %% "akka-stream" % "2.5.4",
  "com.typesafe.akka" %% "akka-stream-testkit" % "2.5.4" % Test
)
dependencies {
  compile group: 'com.typesafe.akka', name: 'akka-stream_2.11', version:'2.5.4'
  testCompile group: 'com.typesafe.akka', name: 'akka-stream-testkit_2.11', version:'2.5.4'
}
<dependency>
  <groupId>com.typesafe.akka</groupId>
  <artifactId>akka-stream_2.11</artifactId>
  <version>2.5.4</version>
</dependency>
<dependency>
  <groupId>com.typesafe.akka</groupId>
  <artifactId>akka-stream-testkit_2.11</artifactId>
  <version>2.5.4</version>
  <scope>test</scope>
</dependency>

Akka Http

Modern, fast, asynchronous, streaming-first HTTP server and client.

Scala

Reference API

Java

Reference API
  • sbt
  • Gradle
  • Maven
libraryDependencies ++= Seq(
  "com.typesafe.akka" %% "akka-http" % "10.0.10",
  "com.typesafe.akka" %% "akka-http-testkit" % "10.0.10" % Test
)
dependencies {
  compile group: 'com.typesafe.akka', name: 'akka-http_2.11', version:'10.0.10'
  testCompile group: 'com.typesafe.akka', name: 'akka-http-testkit_2.11', version:'10.0.10'
}
<dependency>
  <groupId>com.typesafe.akka</groupId>
  <artifactId>akka-http_2.11</artifactId>
  <version>10.0.10</version>
</dependency>
<dependency>
  <groupId>com.typesafe.akka</groupId>
  <artifactId>akka-http-testkit_2.11</artifactId>
  <version>10.0.10</version>
  <scope>test</scope>
</dependency>

Akka Cluster

Achieve resilience and elasticity by distributing your system over multiple nodes.

Scala

Reference API

Java

Reference API
  • sbt
  • Gradle
  • Maven
libraryDependencies += 
  "com.typesafe.akka" %% "akka-cluster" % "2.5.4"
dependencies {
  compile group: 'com.typesafe.akka', name: 'akka-cluster_2.11', version: '2.5.4'
}
<dependency>
  <groupId>com.typesafe.akka</groupId>
  <artifactId>akka-cluster_2.11</artifactId>
  <version>2.5.4</version>
</dependency>

Cluster Sharding

Distribute your actors across the cluster based on their identity.

Scala

Reference API

Java

Reference API
  • sbt
  • Gradle
  • Maven
libraryDependencies += 
  "com.typesafe.akka" %% "akka-cluster-sharding" %  "2.5.4"
dependencies {
  compile group: 'com.typesafe.akka', name: 'akka-cluster-sharding_2.11', version: '2.5.4'
}
<dependency>
  <groupId>com.typesafe.akka</groupId>
  <artifactId>akka-cluster-sharding_2.11</artifactId>
  <version>2.5.4</version>
</dependency>

Distributed Data

Eventually consistent, highly read and write available, low latency data

Scala

Reference API

Java

Reference API
  • sbt
  • Gradle
  • Maven
libraryDependencies += 
  "com.typesafe.akka" %% "akka-distributed-data" % "2.5.4"
dependencies {
  compile group: 'com.typesafe.akka', name: 'akka-distributed-data_2.11', version: '2.5.4'
}
<dependency>
  <groupId>com.typesafe.akka</groupId>
  <artifactId>akka-distributed-data_2.11</artifactId>
  <version>2.5.4</version>
</dependency>

Alpakka

Akka Stream connectors for integrating with other technologies

Scala and Java

Akka Persistence

Eventsourcing for actors allows them to reach the same state after restarts.

Scala

Reference API

Java

Reference API
  • sbt
  • Gradle
  • Maven
libraryDependencies +=
  "com.typesafe.akka" %% "akka-persistence" % "2.5.4"
dependencies {
  compile group: 'com.typesafe.akka', name: 'akka-persistence_2.11', version: '2.5.4'
}
<dependency>
  <groupId>com.typesafe.akka</groupId>
  <artifactId>akka-persistence_2.11</artifactId>
  <version>2.5.4</version>
</dependency>
Information about other releases of Akka