Hi,

I am new to Akka and I am reading the "Getting Started Guide".

In the part 5 of the tutorial 
(https://doc.akka.io/docs/akka/current/guide/tutorial_5.html) we can find 
the following paragraph:

"One approach for implementing the query involves adding code to the group 
device actor. However, in practice this can be very cumbersome and error 
prone. Remember that when we start a query, we need to take a snapshot of 
the devices present and start a timer so that we can enforce the deadline. 
In the meantime, *another query* can arrive. For the second query, of 
course, we need to keep track of the exact same information but in 
isolation from the previous query. This would require us to maintain 
separate mappings between queries and device actors."

I think it gives good reasons why not to implement the query in the 
DeviceGroupActor, but I also think that it missed a more important reason: 
messages are not processed in parallel by a given actor instance, so if a 
query is being executed by a DeviceGroupActor and a new query arrives, the 
new query will have to wait for the first one to be finished.

Still on this paragraph I think "device group actor" would be preferable to 
"group device actor".

Regards,
    Constantino

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to