Hi all,

I'm going to write server with custom UDP chunked protocol.
Please advisee me the right "share by communication" way.

*Client side*
Client gzips and chunks message to N parts. Each chunk has header with
count of chunks, sequential number of this chunk and unique message id
(identical for all chunks for this message).

*Server side*
Cache chunks until we get all parts with this unique message id -> then
write this message (for example) to a DB. In case of some timeout – drop
all chunks with this message id.

Chunks of the message can arrive in different order.

Thank you.

You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
postedJul 28, '13 at 8:14a
activeJul 28, '13 at 8:14a

1 user in discussion

Viacheslav Biriukov: 1 post



site design / logo © 2021 Grokbase