Greetings, 

I am completely sold on Akka and its abilities. I am even considering it 
for a game server (though Id have no idea how to get physics in there 
without reinventing the wheel, JNI maybe). What I am wondering about is a 
common paradigm in my applications. Basically it goes like this: 

Customer calls load balancer and gets routed to a server and is requesting 
a set of JSON that contains their customer information , a sub element with 
the JSON for each order and then a sub element in each order for the items 
in the order. Now If I were to do this traditionally I would have a method 
that calls another which calls another to get the successive level of 
detail. That isn't scalable so I change it to use completable futures. Now 
when the customer makes their request, the server fires off a set of 
completable futures, one for each order which in turn fires off futures to 
get the order item details. Problem is now I am in basically executor hell. 

Now if I decide to do this with actors, one method is to use the ask 
pattern but I have seen enough articles to convince me that the ASK pattern 
doesn't leave me much better off than my completable futures. So can it be 
done only with tell? How indeed? That is the purpose of this post. 

For the sake of the answer here are the requirements: 

   1. The system must return a json of the customer object with some 
   details about the customer, a list of their orders and for each order ad 
   sub list of items. 
   2. It has to be done in one call (rebuilding front end puts the task out 
   of fiscal reach)
   3. You cant use Ask or any variant of a future. 

Any suggestions? :) 

Thanks

-- 
>>>>>>>>>>      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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to