Implementing the Binary Memcached Protocol with Ocaml and Bitstring
andreas.github.io
Implementing the Binary Memcached Protocol with Ocaml and Bitstring
1–3 of 3 posts
Re: Implementing the Binary Memcached Protocol with Ocaml and Bitstring
#2It looks like this implementation only works on the requestor side of the conversation -- that when we create / encode / write a header, it's presumed to be a request; when we read or decode a header, it's presumed to be a response. I would choose a side-agnostic design for a reference library to be used on both sides.
Also, presuming this runs over TCP or similar protocols, I would refrain from using the term `packet` in the code, as it is both jarring and misleading. TCP users are only concerned with streams -- packets themselves are handled by the TCP stack.
EDIT: to refer to a message implemented on top of the TCP stream, I would use the term message or frame
Re: Implementing the Binary Memcached Protocol with Ocaml and Bitstring
#3A few nitpicks: It looks like this implementation only works on the requestor side of the conversation -- that when we create / encode / write a header, it's presumed to be a request; when we read or decode a header, it's presumed to be a response. I would choose a side-agnostic design for a reference library to be used on both sides. Also, presuming this runs over TCP or similar protocols, I would refrain from using…