On Wednesday, 4 September 2013 at 22:18, jszczepa...@gmail.com wrote:
Hi,I am writing simple TCP server using akka (2.2 and new IO), I am starting with akka so excuse me if I am asking some obvious things. I have a small problem where to store the conversation state with individual client connected to server. Every conversation changes its state independently from each client. Given the example:I have the following questions:1. Am I wright that conversation state (related to state of the session communication with specific client according to the custom protocol) should be stored in SimplisticHandler.class if not then where?
2. I am using the following snipped:(...)init = TcpPipelineHandler.withLogger(log, sequence(sequence(sequence(new StringByteStringAdapter("utf-8"),new DelimiterFraming(1024, ByteString.fromString("\n"), true)),new TcpReadWriteAdapter()),new BackpressureBuffer(1000, 10000, 1000000)));(...)Should I keep this init object exclusiveliy for each session (SimplisticHandler actor instance)?
PS. Akka is cool :)Thanks,Jarek
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>> 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/groups/opt_out.
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>> 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/groups/opt_out.