Hi. As I mentioned, consider me as a newbie who is only good at coding.
I want to write a project which I believe will have many simultaneous HTTP 
requests and many simultaneous DB queries being executed.
I decided to choose Akka vs Quasar at last, and want to ask about how to 
fit my scenario in order to enjoy Akka miracles.
My scenario is, client sends a request, I refer to DB in order to read 
his/her data, and then I do some processes and send a response. That's all! 
But in a very parallel manner.
So this scenario is severely blocking. You say, use futures and let your 
actor do something else. That's called transforming a synchronous model to 
an asynchronous one.
OK, I use futures, but send my actor to do what? Exactly what can I do in 
this case? Also let us assume I can suggest other jobs for this actor, how 
can I enjoy multiple threads running on a multi-core CPU? I have an actor 
which is cleaning the house until the pizza delivery arrives. So I hire 
another actor to help her, but what do I suggest to second actor? Feeding 
the cat? What if I don't have a cat?
I mean that, in blocking (synchronous) model (Quasar uses, you know) it is 
simple. If you block an actor, we create another to do the same job but in 
parallel. They can both work on different tasks, but can easily get 
blocked. I don't want this model because I have chosen Akka, and I want to 
learn how can I transform that model efficiently to a non-blocking one so I 
can enjoy efficient parallelism.
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 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