HiI'm implementing a TCP protocol (Lumberjack2/Beats) in Akka Streams. It is a streaming application level protocol where each messages varies data length. In Akka streams I get ByteStrings fed through the stream but I can't find any information about how these correlate with TCP packets sent over wire.
Without that knowledge I have to create a buffer for partial message and handle all theoretical cases that could occur when ByteString does not correlate 1:1 with TCP payloads. The resulting implementation becomes quite hairy.1. What are the guarantees around correlation between Akka ByteStrings and TCP packets?
2. Examples of TCP protocols implemented with Akka streams that uses dynamic framing examples?
--/Magnus
>>>>>>>>>> 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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
Solved it by doing my own version of something similar to the framing classes.
Perhaps a custom stage is what I should use for problems like a protocol with variable length payloads, acking on application level, messages received in a specific order?
Doing it with flows or graphs seemed to create tons of boilerplate and was not really easy to follow along with. I'd really like to do some type of state machine for this, mixing Akka FSM and streams. Do you know of any idiomatic examples doing something like that?
/Magnus
You received this message because you are subscribed to a topic in the Google Groups "Akka User List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/akka-user/o8djg3OKV3Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to akka-user+...@googlegroups.com.