• Stars
    star
    134
  • Rank 263,201 (Top 6 %)
  • Language
    Scala
  • License
    Apache License 2.0
  • Created almost 10 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Akka-persistence-inmemory is a plugin for akka-persistence that stores journal and snapshot messages memory, which is very useful when testing persistent actors, persistent FSM and akka cluster

akka-persistence-inmemory

Join the chat at https://gitter.im/dnvriend/akka-persistence-inmemory Build Status Download Codacy Badge License

akka-persistence-inmemory is a plugin for akka-persistence that stores journal and snapshot messages memory, which is very useful when testing persistent actors, persistent FSM and akka cluster.

Installation

Add the following to your build.sbt:

// the library is available in Bintray repository
resolvers += Resolver.bintrayRepo("dnvriend", "maven")

// akka 2.5.x
libraryDependencies += "com.github.dnvriend" %% "akka-persistence-inmemory" % "2.5.15.2"

// akka 2.4.x
libraryDependencies += "com.github.dnvriend" %% "akka-persistence-inmemory" % "2.4.20.1"

Contribution policy

Contributions via GitHub pull requests are gladly accepted from their original author. Along with any pull requests, please state that the contribution is your original work and that you license the work to the project under the project's open source license. Whether or not you state this explicitly, by submitting any copyrighted material via pull request, email, or other means you agree to license the material under the project's open source license and warrant that you have the legal authority to do so.

License

This code is open source software licensed under the Apache 2.0 License.

Configuration

Add the following to the application.conf:

akka {
  persistence {
    journal.plugin = "inmemory-journal"
    snapshot-store.plugin = "inmemory-snapshot-store"
  }
}

Configuring the query API

The query API can be configured by overriding the defaults by placing the following in application.conf:

inmemory-read-journal {
  # Absolute path to the write journal plugin configuration section to get the event adapters from
  write-plugin = "inmemory-journal"

  # there are two modes; sequence or uuid. If set to "sequence" and NoOffset will be requested, then
  # the query will return Sequence offset types. If set to "uuid" and NoOffset will be requested, then
  # the query will return TimeBasedUUID offset types. When the query is called with Sequence then
  # the query will return Sequence offset types and if the query is called with TimeBasedUUID types then
  # the query will return TimeBasedUUID offset types.
  offset-mode = "sequence"

  # ask timeout on Futures
  ask-timeout = "10s"

  # New events are retrieved (polled) with this interval.
  refresh-interval = "100ms"

  # How many events to fetch in one query (replay) and keep buffered until they
  # are delivered downstreams.
  max-buffer-size = "100"
}

Clearing Journal and Snapshot messages

It is possible to manually clear the journal an snapshot storage, for example:

import akka.actor.ActorSystem
import akka.persistence.inmemory.extension.{ InMemoryJournalStorage, InMemorySnapshotStorage, StorageExtension }
import akka.testkit.TestProbe
import org.scalatest.{ BeforeAndAfterEach, Suite }

trait InMemoryCleanup extends BeforeAndAfterEach { _: Suite =>

  implicit def system: ActorSystem

  override protected def beforeEach(): Unit = {
    val tp = TestProbe()
    tp.send(StorageExtension(system).journalStorage, InMemoryJournalStorage.ClearJournal)
    tp.expectMsg(akka.actor.Status.Success(""))
    tp.send(StorageExtension(system).snapshotStorage, InMemorySnapshotStorage.ClearSnapshots)
    tp.expectMsg(akka.actor.Status.Success(""))
    super.beforeEach()
  }
}

From Java:

ActorRef actorRef = extension.journalStorage();

InMemoryJournalStorage.ClearJournal clearJournal = InMemoryJournalStorage.clearJournal();
tp.send(actorRef, clearJournal);
tp.expectMsg(new Status.Success(""));

InMemorySnapshotStorage.ClearSnapshots clearSnapshots = InMemorySnapshotStorage.clearSnapshots();
tp.send(actorRef, clearSnapshots);
tp.expectMsg(new Status.Success(""));

offset-mode

akka-persistence-query introduces akka.persistence.query.Offset, an ADT that defines akka.persistence.query.NoOffset, akka.persistence.query.Sequence and akka.persistence.query.TimeBasedUUID. These offsets can be used when using the queries akka.persistence.query.scaladsl.EventsByTagQuery2 and akka.persistence.query.scaladsl.CurrentEventsByTagQuery2 to request and offset in the stream of events.

Because akka-persistence-inmemory implements both the Sequence-based number offset strategy as the TimeBasedUUID strategy it is required to configure the inmemory-read-journal.offset-mode="sequence". This way akka-persistence-inmemory knows what kind of journal it should emulate when a NoOffset type is requested. EventEnvelope will contain either a Sequence when the configuration is sequence or a TimeBasedUUID when the configuration is uuid.

By default the setting is sequence.

query and event-adapters

Write plugins (ie. akka-persistence-plugins that write events) can define event adapters. These event adapters can be reused when executing a query so that the EventEnvelope contains the application domain event and not the data-model representation of that event. Set the inmemory-read-journal.write-plugin="inmemory-journal" and configure it with the write plugin name (defaults to the inmemory-journal).

Refresh Interval

The async query API uses polling to query the journal for new events. The refresh interval can be configured eg. "1s" so that the journal will be polled every 1 second. This setting is global for each async query, so the allPersistenceId, eventsByTag and eventsByPersistenceId queries.

Max Buffer Size

When an async query is started, a number of events will be buffered and will use memory when not consumed by a Sink. The default size is 100.

How to get the ReadJournal using Scala

The ReadJournal is retrieved via the akka.persistence.query.PersistenceQuery extension:

import akka.persistence.query.scaladsl._

lazy val readJournal = PersistenceQuery(system).readJournalFor("inmemory-read-journal")
 .asInstanceOf[ReadJournal
    with CurrentPersistenceIdsQuery
    with AllPersistenceIdsQuery
    with CurrentEventsByPersistenceIdQuery
    with CurrentEventsByTagQuery
    with EventsByPersistenceIdQuery
    with EventsByTagQuery]

How to get the ReadJournal using Java

The ReadJournal is retrieved via the akka.persistence.query.PersistenceQuery extension:

import akka.persistence.query.PersistenceQuery
import akka.persistence.inmemory.query.journal.javadsl.InMemoryReadJournal

final InMemoryReadJournal readJournal = PersistenceQuery.get(system).getReadJournalFor(InMemoryReadJournal.class, InMemoryReadJournal.Identifier());

Persistence Query

The plugin supports the following queries:

AllPersistenceIdsQuery and CurrentPersistenceIdsQuery

allPersistenceIds and currentPersistenceIds are used for retrieving all persistenceIds of all persistent actors.

import akka.actor.ActorSystem
import akka.stream.{Materializer, ActorMaterializer}
import akka.stream.scaladsl.Source
import akka.persistence.query.PersistenceQuery
import akka.persistence.inmemory.query.journal.scaladsl.InMemoryReadJournal

implicit val system: ActorSystem = ActorSystem()
implicit val mat: Materializer = ActorMaterializer()(system)
val readJournal: InMemoryReadJournal = PersistenceQuery(system).readJournalFor[InMemoryReadJournal](InMemoryReadJournal.Identifier)

val willNotCompleteTheStream: Source[String, NotUsed] = readJournal.allPersistenceIds()

val willCompleteTheStream: Source[String, NotUsed] = readJournal.currentPersistenceIds()

The returned event stream is unordered and you can expect different order for multiple executions of the query.

When using the allPersistenceIds query, the stream is not completed when it reaches the end of the currently used persistenceIds, but it continues to push new persistenceIds when new persistent actors are created.

When using the currentPersistenceIds query, the stream is completed when the end of the current list of persistenceIds is reached, thus it is not a live query.

The stream is completed with failure if there is a failure in executing the query in the backend journal.

EventsByPersistenceIdQuery and CurrentEventsByPersistenceIdQuery

eventsByPersistenceId and currentEventsByPersistenceId is used for retrieving events for a specific PersistentActor identified by persistenceId.

import akka.actor.ActorSystem
import akka.stream.{Materializer, ActorMaterializer}
import akka.stream.scaladsl.Source
import akka.persistence.query.scaladsl._

implicit val system: ActorSystem = ActorSystem()
implicit val mat: Materializer = ActorMaterializer()(system)

lazy val readJournal = PersistenceQuery(system).readJournalFor("inmemory-read-journal")
 .asInstanceOf[ReadJournal
    with CurrentPersistenceIdsQuery
    with AllPersistenceIdsQuery
    with CurrentEventsByPersistenceIdQuery
    with CurrentEventsByTagQuery
    with EventsByPersistenceIdQuery
    with EventsByTagQuery]

val willNotCompleteTheStream: Source[EventEnvelope, NotUsed] = readJournal.eventsByPersistenceId("some-persistence-id", 0L, Long.MaxValue)

val willCompleteTheStream: Source[EventEnvelope, NotUsed] = readJournal.currentEventsByPersistenceId("some-persistence-id", 0L, Long.MaxValue)

You can retrieve a subset of all events by specifying fromSequenceNr and toSequenceNr or use 0L and Long.MaxValue respectively to retrieve all events. Note that the corresponding sequence number of each event is provided in the EventEnvelope, which makes it possible to resume the stream at a later point from a given sequence number.

The returned event stream is ordered by sequence number, i.e. the same order as the PersistentActor persisted the events. The same prefix of stream elements (in same order) are returned for multiple executions of the query, except for when events have been deleted.

The stream is completed with failure if there is a failure in executing the query in the backend journal.

EventsByTag and CurrentEventsByTag

eventsByTag and currentEventsByTag are used for retrieving events that were marked with a given tag, e.g. all domain events of an Aggregate Root type.

import akka.actor.ActorSystem
import akka.stream.{Materializer, ActorMaterializer}
import akka.stream.scaladsl.Source
import akka.persistence.query.scaladsl._

implicit val system: ActorSystem = ActorSystem()
implicit val mat: Materializer = ActorMaterializer()(system)

lazy val readJournal = PersistenceQuery(system).readJournalFor("inmemory-read-journal")
 .asInstanceOf[ReadJournal
    with CurrentPersistenceIdsQuery
    with AllPersistenceIdsQuery
    with CurrentEventsByPersistenceIdQuery
    with CurrentEventsByTagQuery
    with EventsByPersistenceIdQuery
    with EventsByTagQuery]

val willNotCompleteTheStream: Source[EventEnvelope, NotUsed] = readJournal.eventsByTag("apple", 0L)

val willCompleteTheStream: Source[EventEnvelope, NotUsed] = readJournal.currentEventsByTag("apple", 0L)

To tag events you'll need to create an Event Adapter that will wrap the event in a akka.persistence.journal.Tagged class with the given tags. The Tagged class will instruct the persistence plugin to tag the event with the given set of tags. The persistence plugin will not store the Tagged class in the journal. It will strip the tags and payload from the Tagged class, and use the class only as an instruction to tag the event with the given tags and store the payload in the message field of the journal table.

import akka.persistence.journal.{ Tagged, WriteEventAdapter }
import com.github.dnvriend.Person.{ LastNameChanged, FirstNameChanged, PersonCreated }

class TaggingEventAdapter extends WriteEventAdapter {
  override def manifest(event: Any): String = ""

  def withTag(event: Any, tag: String) = Tagged(event, Set(tag))

  override def toJournal(event: Any): Any = event match {
    case _: PersonCreated ⇒
      withTag(event, "person-created")
    case _: FirstNameChanged ⇒
      withTag(event, "first-name-changed")
    case _: LastNameChanged ⇒
      withTag(event, "last-name-changed")
    case _ ⇒ event
  }
}

The EventAdapter must be registered by adding the following to the root of application.conf Please see the demo-akka-persistence-jdbc project for more information. The identifier of the persistence plugin must be used which for the inmemory plugin is inmemory-journal.

inmemory-journal {
  event-adapters {
    tagging = "com.github.dnvriend.TaggingEventAdapter"
  }
  event-adapter-bindings {
    "com.github.dnvriend.Person$PersonCreated" = tagging
    "com.github.dnvriend.Person$FirstNameChanged" = tagging
    "com.github.dnvriend.Person$LastNameChanged" = tagging
  }
}

You can retrieve a subset of all events by specifying offset, or use 0L to retrieve all events with a given tag. The offset corresponds to an ordered sequence number for the specific tag. Note that the corresponding offset of each event is provided in the EventEnvelope, which makes it possible to resume the stream at a later point from a given offset.

In addition to the offset the EventEnvelope also provides persistenceId and sequenceNr for each event. The sequenceNr is the sequence number for the persistent actor with the persistenceId that persisted the event. The persistenceId + sequenceNr is an unique identifier for the event.

The returned event stream contains only events that correspond to the given tag, and is ordered by the creation time of the events, The same stream elements (in same order) are returned for multiple executions of the same query. Deleted events are not deleted from the tagged event stream.

Storage extension

You can change the default storage to store a journal by defined property keys using this configuration. This can be useful to configure a behavior similar to cassandra key spaces.

# the storage in use
inmemory-storage {
  # storage using inmemory journal for each different value for the configured property keys
  class = "akka.persistence.inmemory.extension.StorageExtensionByProperty"
  # property keys in journal plugin configuration, for each different value a own journal will be stored
  property-keys = ["keyspace"]
}

Changelog

2.5.15.2 (2019-06-28)

  • Scala 2.11.x, 2.12.x, 2.13.x support
  • Akka 2.5.15 -> 2.5.23

2.4.20.1 (2019-06-28)

  • Merged PR #59 "Pluggable storage" by Beat Sager, thanks!

2.5.15.1 (2018-09-09)

  • Java 8 binary release

2.5.15.0 (2018-08-29)

  • Applied PR #50 "Fix for Akka Typed Persistence" by Lukasz Sanek, thanks!
  • Java 10 binary release

2.4.20.0 (2018-08-29)

  • Merged PR #50 "Fix for Akka Typed Persistence" by Lukasz Sanek, thanks!
  • Merged PR #52 "Provide nice Java API for clearing journal" by Christopher Batey, thanks!

2.5.1.2 (2018-08-14)

2.4.18.2 (2017-12-03)

  • Merged PR #42 "Scala 2.12.4 support" by sullis, thanks!

2.5.1.1 (2017-05-23)

  • Fix for issue #35 "no serializer for internal plugin messages"

2.4.18.1 (2017-05-23)

  • Fix for issue #35 "no serializer for internal plugin messages"

2.5.1.0 (2017-05-03)

  • Akka 2.5.0 -> 2.5.1

2.4.18.0 (2017-05-03)

  • Akka 2.4.17 -> 2.4.18

2.5.0.0 (2017-04-13)

  • Support for Akka 2.5.0

2.5.0.0-RC2 (2017-04-03)

  • Support for Akka 2.5.0-RC2

2.5.0.0-RC1 (2017-03-21)

  • Support for Akka 2.5.0-RC1

2.5.0.0-M2 (2017-02-24)

  • Support for Akka 2.5-M2
  • Changed to a simpler Time-based UUID generator.

2.4.17.3 (2017-02-24)

  • Changed to a simpler Time-based UUID generator.

2.4.17.2 (2017-02-16)

  • Fix for issue #33 'InMemoryReadJournal.eventsByPersistenceId returns deleted messages'

2.5.0.1-M1 (2017-02-16)

  • Fix for issue #33 'InMemoryReadJournal.eventsByPersistenceId returns deleted messages'
  • Fix for PR #31 'eventsByTag including substrings of tag' by jibbers42, thanks!
  • Tags will be matched against the whole tag so tag 'foo' will be matched against 'foo' and not 'fo' or 'f' which was the previous behavior.

2.4.17.1 (2017-02-12)

  • Fix for PR #31 'eventsByTag including substrings of tag' by jibbers42, thanks!
  • Tags will be matched against the whole tag so tag 'foo' will be matched against 'foo' and not 'fo' or 'f' which was the previous behavior.

2.4.17.0 (2017-02-11)

  • Akka 2.4.16 -> 2.4.17

2.4.16.0 (2017-01-29)

  • New versioning scheme; now using the version of Akka with the akka-persistence-inmemory version appended to it, starting from .0
  • Support for Akka 2.4.16
  • Support akka 2.11.x and 2.12.x
  • Changed how the byTag queries work, the requested offset is excluding, so if a materialized stream is created, when you ask for Sequence(2) for example, you will get Sequence(3) and so on so this is for the use case when you store the lastest offset on the read side, you can just put that value in the query and the stream will continue with the next offset, no need to manually do the plus-one operation.

2.5.0.0-M1 (2017-01-29)

  • New versioning scheme; now using the version of Akka with the akka-persistence-inmemory version appended to it, starting from .0
  • Support for Akka 2.5-M1
  • Support akka 2.11.x and 2.12.x
  • You need Java 8 or higher
  • Please read the Akka 2.4 -> 2.5 Migration Guide
  • Changed how the byTag queries work, the requested offset is excluding, so if a materialized stream is created, when you ask for Sequence(2) for example, you will get Sequence(3) and so on so this is for the use case when you store the lastest offset on the read side, you can just put that value in the query and the stream will continue with the next offset, no need to manually do the plus-one operation.

1.3.18 (2016-12-21)

  • Akka 2.4.14 -> 2.4.16

1.3.17 (2016-12-08)

  • Scala 2.12.0 -> 2.12.1

1.3.16 (2016-11-22)

  • Akka 2.4.13 -> 2.4.14

1.3.15 (2016-11-19)

  • Akka 2.4.12 -> 2.4.13

1.3.14 (2016-11-03)

  • cross scala 2.11.8 and 2.12.0 build

1.3.13 (2016-11-01 - Birthday Edition!)

  • Implemented support for the akka.persistence.query.TimeBasedUUID.
  • You should set the new configuration key inmemory-read-journal.offset-mode = "uuid", defaults to sequence to produce EventEnvelope2 that contain TimeBasedUUID offset fields.

1.3.12 (2016-10-28)

  • Akka 2.4.11 -> 2.4.12
  • Support for the new queries CurrentEventsByTagQuery2 and EventsByTagQuery2, please read the akka-persistence-query documentation to see what has changed.
  • The akka-persistence-inmemory plugin only supports the akka.persistence.query.NoOffset or akka.persistence.query.Sequence offset types.
  • There is no support for the akka.persistence.query.TimeBasedUUID offset type. When used, akka-persistence-inmemory will throw an IllegalArgumentException.

1.3.11 (2016-10-23)

  • Scala 2.11.8 and 2.12.0-RC2 compatible

1.3.10 (2016-09-30)

  • Akka 2.4.10 -> 2.4.11

1.3.9 (2016-09-22)

  • Adapted version of PR #28 by Yury Gribkov - Fix bug: It doesn't adapt events read from journal, thanks!
  • As event adapters are no first class citizins of akka-persistence-query (yet), a workaround based on the configuration of akka-persistence-cassandra has been implemented in the inmemory journal based on the work of Yury Gribkov. Basically, the query-journal will look for a write-plugin entry in the inmemory-read-journal configuration of your application.conf that must point to the writePluginId that will write the events to the journal. That writePlugin has all event adapters configured and if applicable, those event adapters will be used to adapt the events from the data-model to the application-model effectively you should have application-model events in your EventEnvelope if configured correctly.
  • Removed the non-official and never-to-be-used bulk loading interface

1.3.8 (2016-09-07)

  • Akka 2.4.9 -> Akka 2.4.10

1.3.7 (2016-08-21)

  • Fix for EventsByPersistenceId should terminate when toSequenceNumber is reached as pointed out by monktastic, thanks!

1.3.6 (2016-08-20)

  • Akka 2.4.9-RC2 -> Akka 2.4.9

1.3.6-RC2 (2016-08-06)

  • Akka 2.4.9-RC1 -> 2.4.9-RC2

1.3.6-RC1 (2016-08-03)

  • Akka 2.4.8 -> 2.4.9-RC1

1.3.5 (2016-07-23)

  • Support for the non-official bulk loading interface akka.persistence.query.scaladsl.EventWriter added. I need this interface to load massive amounts of data, that will be processed by many actors, but initially I just want to create and store one or more events belonging to an actor, that will handle the business rules eventually. Using actors or a shard region for that matter, just gives to much actor life cycle overhead ie. too many calls to the data store. The akka.persistence.query.scaladsl.EventWriter interface is non-official and puts all responsibility of ensuring the integrity of the journal on you. This means when some strange things are happening caused by wrong loading of the data, and therefor breaking the integrity and ruleset of akka-persistence, all the responsibility on fixing it is on you, and not on the Akka team.

1.3.4 (2016-07-17)

  • Codacy code cleanup release.

1.3.3 (2016-07-16)

  • No need for Query Publishers with the new akka-streams API.

1.3.2 (2016-07-09)

  • Journal entry 'deleted' fixed, must be set manually.

1.3.1 (2016-07-09)

  • Akka 2.4.7 -> 2.4.8,
  • Behavior of akka-persistence-query *byTag query should be up to spec,
  • Refactored the inmemory plugin code base, should be more clean now.

1.3.0 (2016-06-09)

  • Removed the queries eventsByPersistenceIdAndTag and currentEventsByPersistenceIdAndTag as they are not supported by Akka natively and can be configured by filtering the event stream.
  • Implemented true async queries using the polling strategy

1.2.15 (2016-06-05)

  • Akka 2.4.6 -> 2.4.7

1.2.14 (2016-05-25)

  • Fixed issue Unable to differentiate between persistence failures and serialization issues
  • Akka 2.4.4 -> 2.4.6

1.2.13 (2016-04-14)

  • Akka 2.4.3 -> 2.4.4

1.2.12 (2016-04-01)

  • Scala 2.11.7 -> 2.11.8
  • Akka 2.4.2 -> 2.4.3

1.2.11 (2016-03-18)

  • Fixed issue on the query api where the offset on eventsByTag and eventsByPersistenceIdAndTag queries were not sequential

1.2.10 (2016-03-17)

  • Refactored the akka-persistence-query interfaces, integrated it back again in one jar, for jcenter deployment simplicity

1.2.9 (2016-03-16)

  • Added the appropriate Maven POM resources to be publishing to Bintray's JCenter

1.2.8 (2016-03-03)

  • Fix for propagating serialization errors to akka-persistence so that any error regarding the persistence of messages will be handled by the callback handler of the Persistent Actor; onPersistFailure.

1.2.7 (2016-02-18)

  • Better storage implementation for journal and snapshot

1.2.6 (2016-02-17)

  • Akka 2.4.2-RC3 -> 2.4.2

1.2.5 (2016-02-13)

  • akka-persistence-jdbc-query 1.0.0 -> 1.0.1

1.2.4 (2016-02-13)

  • Akka 2.4.2-RC2 -> 2.4.2-RC3

1.2.3 (2016-02-08)

  • Compatibility with Akka 2.4.2-RC2
  • Refactored the akka-persistence-query extension interfaces to its own jar: "com.github.dnvriend" %% "akka-persistence-jdbc-query" % "1.0.0"

1.2.2 (2016-01-30)

  • Code is based on akka-persistence-jdbc
  • Supports the following queries:
    • allPersistenceIds and currentPersistenceIds
    • eventsByPersistenceId and currentEventsByPersistenceId
    • eventsByTag and currentEventsByTag
    • eventsByPersistenceIdAndTag and currentEventsByPersistenceIdAndTag

1.2.1 (2016-01-28)

  • Supports for the javadsl query API

1.2.0 (2016-01-26)

  • Compatibility with Akka 2.4.2-RC1

1.1.6 (2015-12-02)

  • Compatibility with Akka 2.4.1
  • Merged PR #17 Evgeny Shepelyuk Upgrade to AKKA 2.4.1, thanks!

1.1.5 (2015-10-24)

1.1.4 (2015-10-17)

  • Compatibility with Akka 2.4.0
  • Merged PR #12 Evgeny Shepelyuk Live version of eventsByPersistenceId, thanks!

1.1.3 (2015-10-02)

  • Compatibility with Akka 2.4.0
  • Akka 2.4.0-RC3 -> 2.4.0

1.1.3-RC3 (2015-09-24)

  • Merged PR #10 Evgeny Shepelyuk Live version of allPersistenceIds, thanks!
  • Compatibility with Akka 2.4.0-RC3
  • Use the following library dependency: "com.github.dnvriend" %% "akka-persistence-inmemory" % "1.1.3-RC3"

1.1.1-RC3 (2015-09-19)

  • Merged Issue #9 Evgeny Shepelyuk Initial implemenation of Persistence Query for In Memory journal, thanks!
  • Compatibility with Akka 2.4.0-RC3
  • Use the following library dependency: "com.github.dnvriend" %% "akka-persistence-inmemory" % "1.1.1-RC3"

1.1.0-RC3 (2015-09-17)

  • Merged Issue #6 Evgeny Shepelyuk Conditional ability to perform full serialization while adding messages to journal, thanks!
  • Compatibility with Akka 2.4.0-RC3
  • Use the following library dependency: "com.github.dnvriend" %% "akka-persistence-inmemory" % "1.1.0-RC3"

1.1.0-RC2 (2015-09-05)

  • Compatibility with Akka 2.4.0-RC2
  • Use the following library dependency: "com.github.dnvriend" %% "akka-persistence-inmemory" % "1.1.0-RC2"

1.0.5 (2015-09-04)

  • Compatibilty with Akka 2.3.13
  • Akka 2.3.12 -> 2.3.13

1.1.0-RC1 (2015-09-02)

  • Compatibility with Akka 2.4.0-RC1
  • Use the following library dependency: "com.github.dnvriend" %% "akka-persistence-inmemory" % "1.1.0-RC1"

1.0.4 (2015-08-16)

  • Scala 2.11.6 -> 2.11.7
  • Akka 2.3.11 -> 2.3.12
  • Apache-2.0 license

1.0.3 (2015-05-25)

  • Merged Issue #2 Sebastián Ortega Regression: Fix corner case when persisted events are deleted, thanks!
  • Added test for the corner case issue #1 and #2

1.0.2 (2015-05-20)

  • Refactored from the ConcurrentHashMap implementation to a pure Actor managed concurrency model

1.0.1 (2015-05-16)

  • Some refactoring, fixed some misconceptions about the behavior of Scala Futures one year ago :)
  • Akka 2.3.6 -> 2.3.11
  • Scala 2.11.1 -> 2.11.6
  • Scala 2.10.4 -> 2.10.5
  • Merged Issue #1 Sebastián Ortega Fix corner case when persisted events are deleted, thanks!

1.0.0 (2014-09-25)

  • Moved to bintray

0.0.2 (2014-09-05)

  • Akka 2.3.4 -> 2.3.6

0.0.1 (2014-08-19)

  • Initial Release

Have fun!

More Repositories

1

akka-http-test

A study project how akka-http works
Scala
114
star
2

intro-to-akka-streams

Scala
69
star
3

akka-concurrency-test

Study on what Threads, ThreadPools, Executors, ExecutorServices, ExecutionContext, Futures are and how to configure them
Scala
69
star
4

reactive-programming

Principles of Reactive Programming
Scala
60
star
5

sbt-sam

Plugin and library to create enterprise-cloud applications leveraging SBT and the SAM component model
Scala
34
star
6

akka-serialization-test

Study on akka-serialization using ProtoBuf, Kryo and Avro
Scala
31
star
7

demo-akka-persistence-jdbc

A small akka-persistence-jdbc demo project
Scala
18
star
8

docker-timezone-test

How to work with timezones with Scala and Docker and how to process messages that have a timezone embedded
Scala
13
star
9

design-patterns-study

a study into object oriented and functional design patterns
Scala
12
star
10

reactive-activemq

An akka-streams implementation to consume and produce messages from ActiveMq queues and topics.
Scala
11
star
11

lagom-test

A small study project on lagom-scala
Scala
11
star
12

jboss-wildfly-test

study project into Wildfly using docker, including how to configure the server, data sources, jms and users
Scala
10
star
13

reactive-frameworks

A small study project on the capabilities of reactive frameworks
Scala
10
star
14

akka-persistence-jounal-writer

Write events directly to an akka-persistence journal bypassing persistent-actor lifecycle overhead
Scala
9
star
15

akka-elasticsearch

An ElasticSearch extension for Akka
Scala
7
star
16

kafka-streams-scala

A fluent Scala API for kafka-streams
Scala
7
star
17

spark-scala

Basic wrapper for the great SparkJava project
Java
7
star
18

type-classes-example

A small study project on type classes, level of entry is 'beginner'
Scala
7
star
19

aws-rds-to-google-cloud-sql

A small study project on migrating databases from AWS to GCP
7
star
20

study-distributed-computing

A smal study project on distributed computing
Scala
6
star
21

sbt-plugin-seed.g8

A sbt-plugin seed template project
Scala
6
star
22

akka-persistence-query-extensions

non-official akka-persistence-query-extensions contain components that are very handy to have for using akka-stream, akka persistence and akka query
Scala
5
star
23

slick3-test

Study into Slick3 and Reactive Slick (reactive-streams) and interoperability with RxScala/RxJava using the adapter library
Scala
5
star
24

study-sbt

A quick study on sbt the Scala Build Tool
Scala
5
star
25

scala-jdbc

A small library that makes working with JDBC databases a whole lot easier.
Scala
5
star
26

docker-networking-test

docker network study that has been added to docker v1.9
Shell
4
star
27

akka-avro-serialization-test

A small study project how to serialize with apache Avro and akka-persistence using a single serializer
Scala
4
star
28

jdbc-scala

Quick view at the three JDBC database access libraries for Scala I like, spring-scala, ScalikeJdbc and Slick
Shell
4
star
29

sam-mini-platform

A mini platform for ingesting, processing, and analyzing data.
Scala
4
star
30

intellij-tips

A small study project on how to use IntelliJ effectively.
Scala
3
star
31

akka-persistence-fsm

How to persist FSM and how to shard them in a cluster
Scala
3
star
32

akka-camel-ping-pong

Example using Akka-Camel, ActiveMQ and Actors sending each other Ping/Pong messages
Scala
3
star
33

akka-stream-extensions

non-official extension library for akka-stream that contains operations like zipWithIndex, Source.fromTry and so on
Scala
3
star
34

akka-fuse-test

How to get Akka to work on JBoss Fuse
Scala
2
star
35

sam-seed.g8

An sbt-sam template for creating public accessible, stateless applications
Scala
2
star
36

macwire-test

A small study project on macwire a lightweight and nonintrusive Scala Dependency Injection library
Scala
2
star
37

slick-3.2.0-test

A small test project for slick 3.2.0 Milestone and Release Candidate releases
Scala
2
star
38

brew-documentation

2
star
39

akka-stream-xml-test

Study on xml processing with akka streams
Scala
2
star
40

akka-persistence-jdbc-play

An example play project using akka-persistence-jdbc
Scala
2
star
41

cinnamon-slf4j-mdc-test

A small study project on lightbend cinnamon and slf4j MDC for futures and actors
Scala
1
star
42

sam-schema-repo-seed.g8

A template project for quickly creating a serverless avro schema repository
Scala
1
star
43

airflow-test

A small study project on apache airflow
1
star
44

demo-akka-persistence-inmemory

A small demo project for akka-persistence-inmemory
Scala
1
star
45

aws-meetup-2018-05-07-lambda-fargate-shake-that-shit

The demo project for Amsterdam AWS Meetup 2018-05-07 - lambda-fargate-shake-that-shit
Scala
1
star
46

sbt-native-packager-demo

A small study project on the sbt-native-packager
Scala
1
star
47

akka-http-crypto

A small study project on akka-http how to create a cryptographic service fast!
Scala
1
star
48

akka-persistence-query-test

A small study project on the akka-persistence-query API as there is no TCK
Scala
1
star
49

terraform-test

A small study project on Terraform - Infrastructure as Code
HCL
1
star
50

kafka-test

small study project on Apache Kafka
Shell
1
star
51

my-scala-notes

my-scala-notes, because I've to put them somewhere
Scala
1
star
52

elasticsearch-cluster

Shell
1
star
53

akka-persistence-jdbc-serialization-json

A JSON serializer for akka-persistence-jdbc
Scala
1
star
54

rabbitmq-akka-stream

Upgraded Activator template to study RabbitMQ and akka-streams
Scala
1
star
55

typescript-tutorial

A small study project on Typescript
TypeScript
1
star
56

conductr-test

A small study project on Lightbend Conductr
Scala
1
star
57

serverless-test

A small study project on the serverless-framework
Scala
1
star
58

apache-cassandra-test

A small study project on Apache Cassandra
Shell
1
star
59

akka-elasticsearch-logger

An ElasticSearch Logger for Akka, to be used with akka-elasticsearch
Scala
1
star
60

docker-logging-logstash-test

test how to link syslog messages of docker containers to logstash and ultimately to elasticsearch for exploration and visualization
Shell
1
star
61

play-di-test

A small study project on how play's dependency injection works
Scala
1
star
62

anorm-test

A small project on standalone-anorm.
Scala
1
star
63

shapeless-test

A small study project on shapeless
Scala
1
star
64

reactive-kafka-test

Scala
1
star
65

sbt-parser-test

A small study project on sbt parser combinators
Scala
1
star
66

sam-dynamodb-seed.g8

A template project for quickly creating stateful serverless applications using dynamodb.
Scala
1
star
67

scalacheck-test

A small study project on scalacheck
Scala
1
star