On Mon, Apr 20, 2015 at 10:38 PM, Nweike Onwuyali <nweikeonwuy...@gmail.com>
wrote:

> Hi,
> Thanks for your response. I want to query a couchDB using REST. However, i
> want to put the business logic of doing so in Actors(Akka) instead of Play
> models. The Actors will perform the request and also receive the response
> from the database. The Actors can then forward the results to Play
> Controller.
>
> How can i achieve this?
>

I'm afraid your question is too broad for me to be able to give any advice
on this.

One nice activator template that is using Play and backend actors is Reactive
Maps <https://typesafe.com/activator/template/reactive-maps>.

/Patrik


>
>
> On Monday, April 20, 2015 at 11:21:41 AM UTC+1, Patrik Nordwall wrote:
>>
>> If the CouchDB API is HTTP based you can use an async http client, such
>> as the Spray HTTP client, Akka HTTP client or Play WS API, and convert the
>> responses to actor messages if you want to process the result in actors.
>> Perhaps I misunderstand the question completely?
>>
>> /Patrik
>>
>> On Thu, Apr 16, 2015 at 10:05 AM, Nweike Onwuyali <nweikeo...@gmail.com>
>> wrote:
>>
>>> Hello All,
>>> I am a newbie to the Typesafe framework so i might be asking a naive
>>> question.
>>> I am building a new application using Play and CouchDB as my database. I
>>> want to make my connection to the CouchDB a non-blocking operation. Also i
>>> want to connect to CouchDB using the JSON API.
>>>
>>> I will prefer not to use spray-http Marshalling and Unmarshalling
>>> support. Will it be appropriate to have Actors receive raw  HttpRequest and
>>> send message to CouchDB and receive a response using HttpResponse?.
>>>
>>> I need a guide on how to architect the system.
>>>
>>>
>>>  --
>>> >>>>>>>>>> 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+...@googlegroups.com.
>>> To post to this group, send email to akka...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/akka-user.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>>
>> Patrik Nordwall
>> Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
>> Twitter: @patriknw
>>
>>   --
> >>>>>>>>>> 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 http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Patrik Nordwall
Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
Twitter: @patriknw

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

Reply via email to