Hello Akka users :)

I am implementing a rest service using akka and spray.

The system can take 20.000 request per minute on a machine with 4 cores and
uses only 20% with cpu, so this is GREAT.

We use cassandra as the dao server.

I the request to cassandra are made with Futures,  so when the request
arrives on the application,  the Spray actors pass the message to our
service actors.
The service actor pass the message to the business actor, and finally it
gets to the DAO actor.

The dao actor calls the manager that is  NOT an actor put the function
returns a future.

So for example the work flow is like that


"manager.get(id) pipeTo sender"

We created a different ExecutionContext for the manager, and it works great

BUT,  if I try to make a pool (Pros.withRouter(.....) of this dao actors
that connect to the manager,  we begin to have this illegal cyclic
reference.

Note that inside the manager function there is a lot of reflection being
made to turn the object to be inserted on cassandra.

So,  I have no idea what is happening,  why it does not work with the pool.
IMPORTANT , it works if I set the pool with one actor,  so it seems to be a
problem with the actor context swtich


If We can fix this,  we will have a great use case for akka and spray :)
thanks a lot

-- 
>>>>>>>>>>      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