Re: [akka-user] [akka-cluster-sharding] Create shard entity actors based checking some condition.

2017-09-25 Thread Evgeny Shepelyuk
Thank you понеділок, 25 вересня 2017 р. 21:36:08 UTC+3 користувач Justin du coeur написав: > > Sure, but I think you're thinking about it incorrectly. Don't worry about > creating the Sharding entity itself, which has no lasting effect -- > instead, focus on not *persisting* anything unless

Re: [akka-user] [akka-cluster-sharding] Create shard entity actors based checking some condition.

2017-09-25 Thread Justin du coeur
Sure, but I think you're thinking about it incorrectly. Don't worry about creating the Sharding entity itself, which has no lasting effect -- instead, focus on not *persisting* anything unless the wallet is already valid. The preStart idea isn't bad, but probably expensive (assuming the external

[akka-user] [akka-cluster-sharding] Create shard entity actors based checking some condition.

2017-09-25 Thread Evgeny Shepelyuk
Hello I'd like to implement cluster sharding enabled service with following scenario # *Wallet *service manages users' wallets # Each *wallet* is represented as persistent actors / shard entity # Shard clients are sending deposit / withdraw commands to wallets # Wallet creation is a dedicated