Akka Toolkit 2.3 with Java 8 and Persistence Support

| by Jan Stenberg Follow 34 Followers on Mar 11, 2014. Estimated reading time: 1 minute |

The latest version of the Akka toolkit comes with persistence enabling stateful actors to persist their internal state. The recently released version 2.3.0 is also prepared for support of Java 8 lambda expressions.

In Akka persistence, instead of current state, each change to an actor’s state are persisted. Changes are appended to a journal and an actors’ internal state can be rebuilt by replaying the stored changes. Support for event sourcing and at-least-once message deliveries is also provided.
Using Java 8 and lambda expressions, both Actors and Finite State Machines (FSM) may now be implemented using lambda syntax thus removing the need for declaring anonymous inner classes.
Both the persistence module and the lambda support are marked as experimental with an ambition to improve the API based on feedback from users.

Other improvements include:

  • A cluster can from being partially unreachable now come back to working as normally again with the failure condition cleared when the affected nodes becomes responsive.
  • Cluster sharding can be used to distribute stateful actors over several nodes when the actors consume more resources than one machine can supply.
  • Removal of the experimental label from Akka IO package, but with the Pipeline infrastructure discontinued.
  • The OSGi support has been reworked to make akka-actor an OSGi bundle.

The documentation together with a getting started guide has been updated to reflect the changes in the framework. Akka is also part of a larger sample of a reactive platform.
The new release contains some structural modifications requiring code changes when upgrading from 2.2.*. Upgrading from earlier version may require some extra steps.

The Akka toolkit is an implementation of the Actor Model, available with both a Java and a Scala API. This 2.3 release is the first step in a larger milestone planned for second half of 2014.
Akka is an open source product, licensed under the Apache 2 License.

Vaughn Vernon, author of Implementing Domain-Driven Design, talked last year about actor model in reactive domain-driven design and in an earlier talk about the foundation for actor model together with DDD.

A forum for Akka users is available with more than 3000 members.

Rate this Article

Adoption Stage

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread


Login to InfoQ to interact with what matters most to you.

Recover your password...


Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.


More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.


Stay up-to-date

Set up your notifications and don't miss out on content that matters to you