Thanks a lot Björn! I'm still not sure how to model the scenario in which 
the server does not produce a response, but I came across the ticket for 
the bidirectional flow (https://github.com/akka/akka/issues/16416) which 
looks like it will more precisely model a socket/channel.

Thanks again,
Peter

On Friday, January 30, 2015 at 4:49:36 AM UTC-8, Björn Antonsson wrote:
>
>
> Hi Peter,
>
> In the Akka streams cookbook, 
> http://doc.akka.io/docs/akka-stream-and-http-experimental/1.0-M2/scala/stream-cookbook.html
>  , there 
> are examples for both chunking up ByteStrings based on size, and parsing 
> lines (separator based frame decoding). It also have samples for job 
> pooling and global rate limiting of a set of streams.
>
> B/
>
> On 27 January 2015 at 06:35:56, Peter Swift ([email protected] 
> <javascript:>) wrote:
>
> Hi All, 
>
> I'm having good fun with akka streams, and I while tinkering with them a 
> few questions have come up.
>
> How best to implement length-based tcp framing? With a StatefulStage that 
> defragments the incoming byte strings?
>
> How can I just send data from the client to the server without returning a 
> response? The client's connection flow can run with an OnCompleteSink to 
> learn when the connection is closed, but what should the server's 
> connection flow do? I'm not sure how to express that there is no response 
> (i.e. that I'm not writing anything to the 'output stream').
>  
> What's the 'typical' stream client/server setup for request/response style 
> interactions? Without streams I'd pool connections on the client side, and 
> use one per request/response cycle. But I'm not sure that will give me 
> proper backpressure, unless I somehow merge the connections' flows on the 
> server side.  Should I multiplex all requests and responses over a single 
> tcp connection?
>
> Cheers,
> Peter
>  --
> >>>>>>>>>> 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] <javascript:>.
> To post to this group, send email to [email protected] 
> <javascript:>.
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>
>
> -- 
> Björn Antonsson
> Typesafe <http://typesafe.com/> – Reactive Apps on the JVM
> twitter: @bantonsson <http://twitter.com/#!/bantonsson>
>
>

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