[akka-user] Re: [akka-http] Some questions about akka-http

2015-08-25 Thread André
Hi Leon,

please see the discussion re. chunking here 
.

What's your use case?

Cheers,
André

On Tuesday, August 25, 2015 at 9:21:46 AM UTC+2, Leon Ma wrote:
>
> Hi,
>
> I have some general questions about akka-http:
>
> 1. Is there any concrete samples that illustrate how to return chunked 
> response with akka-http?
> 2. Does Route/Directives (high-level api) supports chunked response?
>
>
> Thanks
> Leon
>
>
>
>

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


[akka-user] Re: [akka-http] Some questions about akka-http

2015-08-25 Thread Leon Ma
Hi, André

Thanks for the quick response.

Actually I'm trying to do some prototyping to see how hard to migrate my 
spray application into akka-http.

Here're my case:

I have a facade Actor binding with Spray Http:

IO(Http) ! Http.Bind(facadeActorRef, interface, port, settings = 
Option(settings))

Within that facade actor, I will dispatch HttpRequest to some other biz 
Actors(like by uri), and some of the biz actors might return chunked 
response. 

I'm not familiar with akka-stream, but I guess I should provide some 
certain Flow to do the dispatching logic, right? 

And can I reuse my biz actors as much as possible like adapting them into 
some akka-stream's artifact (Source?)



Really appreciate your help!

Thanks
Leon




在 2015年8月25日星期二 UTC-7上午12:49:00,André写道:
>
> Hi Leon,
>
> please see the discussion re. chunking here 
> .
>
> What's your use case?
>
> Cheers,
> André
>
> On Tuesday, August 25, 2015 at 9:21:46 AM UTC+2, Leon Ma wrote:
>>
>> Hi,
>>
>> I have some general questions about akka-http:
>>
>> 1. Is there any concrete samples that illustrate how to return chunked 
>> response with akka-http?
>> 2. Does Route/Directives (high-level api) supports chunked response?
>>
>>
>> Thanks
>> Leon
>>
>>
>>
>>

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


[akka-user] Re: [akka-http] Some questions about akka-http

2015-08-25 Thread André
Hi Leon,

I'd recommend against putting transfer encoding specifics into your 
business model.

There are multiple ways of creating entities which should enable you to 
reuse your current model after a bit of conversion.

BTW: Chunking support is still available in the entity model as well. It 
was only removed from the routing DSL.

HTH
André

On Tuesday, August 25, 2015 at 10:51:14 AM UTC+2, Leon Ma wrote:
>
> Hi, André
>
> Thanks for the quick response.
>
> Actually I'm trying to do some prototyping to see how hard to migrate my 
> spray application into akka-http.
>
> Here're my case:
>
> I have a facade Actor binding with Spray Http:
>
> IO(Http) ! Http.Bind(facadeActorRef, interface, port, settings = 
> Option(settings))
>
> Within that facade actor, I will dispatch HttpRequest to some other biz 
> Actors(like by uri), and some of the biz actors might return chunked 
> response. 
>
> I'm not familiar with akka-stream, but I guess I should provide some 
> certain Flow to do the dispatching logic, right? 
>
> And can I reuse my biz actors as much as possible like adapting them into 
> some akka-stream's artifact (Source?)
>
>
>
> Really appreciate your help!
>
> Thanks
> Leon
>
>
>
>
> 在 2015年8月25日星期二 UTC-7上午12:49:00,André写道:
>>
>> Hi Leon,
>>
>> please see the discussion re. chunking here 
>> .
>>
>> What's your use case?
>>
>> Cheers,
>> André
>>
>> On Tuesday, August 25, 2015 at 9:21:46 AM UTC+2, Leon Ma wrote:
>>>
>>> Hi,
>>>
>>> I have some general questions about akka-http:
>>>
>>> 1. Is there any concrete samples that illustrate how to return chunked 
>>> response with akka-http?
>>> 2. Does Route/Directives (high-level api) supports chunked response?
>>>
>>>
>>> Thanks
>>> Leon
>>>
>>>
>>>
>>>

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