Questions tagged [akka-persistence]

Akka persistence enables stateful actors to persist their internal state so that it can be recovered when an actor is started, restarted after a JVM crash or by a supervisor, or migrated in a cluster.

Akka persistence enables stateful actors to persist their internal state so that it can be recovered when an actor is started, restarted after a JVM crash or by a supervisor, or migrated in a cluster.

The key concept behind Akka persistence is that only changes to an actor's internal state are persisted but never its current state directly (except for optional snapshots). These changes are only ever appended to storage, nothing is ever mutated, which allows for very high transaction rates and efficient replication. Stateful actors are recovered by replaying stored changes to these actors from which they can rebuild internal state. This can be either the full history of changes or starting from a snapshot which can dramatically reduce recovery times. Akka persistence also provides point-to-point communication channels with at-least-once message delivery semantics.

Source: http://doc.akka.io/docs/akka/snapshot/scala/persistence.html

297 questions
0
votes
1 answer

shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for ActorSystem[mpe] java.lang.StackOverflowError: null

I am working on a fix which needs to accept a SOAP XML Request which is less than 1,00,000 threshold value. So that we can validate large xml documents before processing. Now, I am confused about the error reporting by akka when the threshold value…
0
votes
1 answer

Why is the parent's name used as part of the PersistenceId in Akka Sharding?

I was looking at sharding example and noticed that the parent's name is used as part of the PersistenceId? PersistenceId = Context.Parent.Path.Name + "-" + Self.Path.Name; My questions: Is the parent's name the ShardId? What is the purpose of…
user3587180
  • 1,317
  • 11
  • 23
0
votes
0 answers

How to configure ssl for data in transit when using akka persistence with mysql and dnvriend (dnvriend / akka-persistence-jdbc)

I want to enable encryption of data in transit for akka FSM. I am using dnvriend / akka-persistence-jdbc with Mysql. What are the steps involved in enabling ssl for db connections? How do I verify that the data is encrypted? If I use the url…
sini
  • 1
0
votes
0 answers

Akka persistent query reader as competing consumer

I'm dabbling around with Akka and persistence query. Below design shows what I'm doing here. When I run multiple instances of the "persistence reader actor", all the actors (#6 below) receive the same message. Ideally, I would want one of the…
Sahas
  • 3,046
  • 6
  • 32
  • 53
0
votes
1 answer

How to share EntityModel between write and read in CQRS akka peristence

I'm trying out Akka persistence with CQRS in mind. On my Write side, I've the entity like case class Evt(data:String) My persist code looks like persist(Evt(s"${data}")) All works on the write side. I'm using Redis journal plugin. When I attempt…
Sahas
  • 3,046
  • 6
  • 32
  • 53
0
votes
2 answers

Akka persistance custom TCK plugin , How to support non java serialization for Tagged type?

I am building Akka persistence plugin with Apache ignite , I have a question when it comes to event tagging , if i disable java serialization(allow-java-serialization = no) , Tagged type failed to be serialized properly as i am using Protobuf for…
0
votes
0 answers

Not able to persist Actor

I want to persist events in Akka only when there is a failure in the actor. I am trying the following code to achieve persistence. package persistence import akka.actor._ import akka.persistence._ case class Cmd(data: String) case class Evt(data:…
Prog_G
  • 1,539
  • 1
  • 8
  • 22
0
votes
1 answer

Lagom / Akka readside Processor

I have implemented a readside processor to put the processed events and maintain a read side cassandra table. However found that the event sourcing fails after some time with this error. [error] a.a.OneForOneStrategy -…
vin
  • 960
  • 2
  • 14
  • 28
0
votes
1 answer

How to wait for Akka Persistent Actor to persistAll?

I want to send a reply after I have persisted and updated the state of the actor using persistAll. Unfortunately I have not found a callback or onSucces handler to send back a reply after the last event has been persisted.
Andrew
  • 1,109
  • 1
  • 15
  • 27
0
votes
1 answer

Unable to resolve akka.pattern.AskTimeoutException: Ask timed out

I am trying to replace the default LevelDB in OpenDaylight with Apache Ignite which i am unable to do after making changes to the akka.conf file and deploying the akka-persistence-ignite jar that i found here.…
AksTester
  • 121
  • 1
  • 9
0
votes
1 answer

How do I handle messages sent to actors being passivated

I have to create a set of persistent actors and route messages to them by some id. When I do this, in my router actor I look up the target one using something like: context.child(id) getOrElse create(id) - creating actors by context.actorOf() and…
kiwi
  • 31
  • 3
0
votes
1 answer

Unable to use Apache Ignite persistence in OpenDaylight

I am trying to replace the default LevelDB in OpenDaylight with Apache Ignite which i am unable to do after making changes to the akka.conf file and deploying the akka-persistence-ignite jar that i found …
AksTester
  • 121
  • 1
  • 9
0
votes
1 answer

Can actor wakes up after passivation from publisher

Please, answer if a persistent actor is up and subscribes to a topic with PubSubMediator for the communication with counterparts and after some timeout the actor system passivates non-active this actor. Could this actor wakes up if he receives a…
Denys
  • 31
  • 5
0
votes
1 answer

What happens internally when an akka.conf file is read?

I am using OpenDaylight and trying to replace the default distributed database with Apache Ignite. I am using the jar obtained by using the source code here: https://github.com/Romeh/akka-persistance-ignite and deployed it in OpenDaylight karaf…
AksTester
  • 121
  • 1
  • 9
0
votes
1 answer

Is the following akka.conf file valid?

I am using OpenDaylight and trying to replace the default distributed database with Apache Ignite. I am using the jar obtained by the source code here. https://github.com/Romeh/akka-persistance-ignite However, the class IgniteWriteJournal does not…