Thank you for the response, Luca. I didn't quite understand your statement 
I am a newbie working with Akka hope I am not repeating myself :)
Could you please give me an example if that's possible.

Or more details about what I am trying to achieve

When the server gets a request it gets a value in the request and checks to 
see if that value is same in the cache 
If the value in the cache is same as the value sent in the request then 
execute A.
otherwise, execute B 

I option that I can think of is implementing the following logic in the 
cache access actor 
     If (request.value == cache.value) 
           execute A 
     else
           execute B 

But was wondering how can I make only the cache access async. 

Hope I did not confuse

Regards
Vinay


On Saturday, June 18, 2016 at 3:37:08 AM UTC-5, Filippo De Luca wrote:
>
> Hi Vinaj,
> To use tell you have to keep the status in the caller to conciliate 
> request and response or passing a context/status along the exchanged 
> messages as it happen on the ddata protocol.
> On 17 Jun 2016 22:20, "Vinay Gajjala" <[email protected]> wrote:
>
>> Hi 
>>
>> I am trying to write actors to encapsulate the cache access by the code.
>>
>> In one of the use case I need to make a decision based on the value in 
>> the cache.
>>
>> I am trying not to use the ask() instead I want to use tell().
>>
>> I like to know is it possible to use tell() if so how ?
>>
>>
>> If you can provide me with examples that would greatly help.
>>
>> Thanks
>> Vinay
>>
>> -- 
>> >>>>>>>>>> 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 [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at https://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
>>>>>>>>>>      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 [email protected].
To post to this group, send email to [email protected].
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