Cluster Sharding: move an PersistentActor to another DataCenter
up vote
0
down vote
favorite
I have a use case, when my stateful Akka Actor fails to talk to remote servies/DB in one data center, I would like to retry an attempt in a different data center. Akka Actor is stateful, persistent Actor created using Cluster Sharding, so I would like to re-create this actor in a different data center and stop actor in a current data center.
I found that ClusterSharding has a method to create an actor in a different data center (using .shardRegionProxy(typeName, dataCenter)), but I would like to create an actor with the same persistenceId and be able to load the latest snapshot from DB.
What is the best approach to do that?
Also, can ClusterSharding be aware of actors created in different data centers?
akka akka-cluster akka-persistence
add a comment |
up vote
0
down vote
favorite
I have a use case, when my stateful Akka Actor fails to talk to remote servies/DB in one data center, I would like to retry an attempt in a different data center. Akka Actor is stateful, persistent Actor created using Cluster Sharding, so I would like to re-create this actor in a different data center and stop actor in a current data center.
I found that ClusterSharding has a method to create an actor in a different data center (using .shardRegionProxy(typeName, dataCenter)), but I would like to create an actor with the same persistenceId and be able to load the latest snapshot from DB.
What is the best approach to do that?
Also, can ClusterSharding be aware of actors created in different data centers?
akka akka-cluster akka-persistence
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a use case, when my stateful Akka Actor fails to talk to remote servies/DB in one data center, I would like to retry an attempt in a different data center. Akka Actor is stateful, persistent Actor created using Cluster Sharding, so I would like to re-create this actor in a different data center and stop actor in a current data center.
I found that ClusterSharding has a method to create an actor in a different data center (using .shardRegionProxy(typeName, dataCenter)), but I would like to create an actor with the same persistenceId and be able to load the latest snapshot from DB.
What is the best approach to do that?
Also, can ClusterSharding be aware of actors created in different data centers?
akka akka-cluster akka-persistence
I have a use case, when my stateful Akka Actor fails to talk to remote servies/DB in one data center, I would like to retry an attempt in a different data center. Akka Actor is stateful, persistent Actor created using Cluster Sharding, so I would like to re-create this actor in a different data center and stop actor in a current data center.
I found that ClusterSharding has a method to create an actor in a different data center (using .shardRegionProxy(typeName, dataCenter)), but I would like to create an actor with the same persistenceId and be able to load the latest snapshot from DB.
What is the best approach to do that?
Also, can ClusterSharding be aware of actors created in different data centers?
akka akka-cluster akka-persistence
akka akka-cluster akka-persistence
asked Nov 8 at 19:05
SupperSlonic
5615
5615
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53214526%2fcluster-sharding-move-an-persistentactor-to-another-datacenter%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown