Hi,

I'm playing around a bit with cluster sharding and considering trying it 
for my new service prototype. Although it'll start with only one node and 
doesn't have any scalability issue yet, I found this actor-per-entity model 
with built-in passivation support very useful when implementing DDD with 
Akka.

It's very common in web applications that when a request comes in, the app 
checks whether requested resource exists and if not it returns 400 (Not 
Found) error. However, I couldn't found any way to ask for the existence of 
an entity to a ShardRegion.

Currently, there are two possible workarounds:

   - Start each actor in 'empty' state by default. When a check message 
   arrives before the state is changed by an explicit creation message, reply 
   with negative result and stop the actor immediately.
   - Maintain global or per-cluster singleton registry.
   
Or we might add a feature to ShardRegion checking the existence of an 
entity by its id. What do you think?

Regards,
Jisoo

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: http://akka.io/faq/
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to