Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

more protocol thoughts

  • Loading branch information...
commit 6d8b093700e1d5fa014a77225ce50c7a8dca14ce 1 parent b97f139
@jordansissel jordansissel authored
Showing with 12 additions and 3 deletions.
  1. +12 −3
@@ -18,15 +18,23 @@
* Permit bulk acknowlegements? Like TCP, perhaps.
* Should authentication be channel- or message-based?
+## Tentative Plan
+* Messaging: Length-known messages sent over an encrypted TLS channel. Messages
+ have a sequence id.
+* Serialization: versioned, minimal+documented map-like string:string serialization.
+* Authentication: ssl certs.
+* Encryption: tls
+* Compression: gzip (most common)
## Implementation Considerations
### Simple/Few/Fast Dependencies
* Serialization: msgpack, json, thrift, and protobufs are all too hard to
integrate/deploy or are too slow/complex to generate (json).
-* Serialization: A simple map-like serialization should be easy with
- 'length+payload' string encoding as well as a simple type system. Must be
- minimally featured.
+* Serialization: Maybe msgpack, it's the best (simple/easy/fast) of all options
+ it seems.
* Framing: zeromq can be easily vendored
* Encryption: openssl is fairly ubiquitous and nontrivial to reimplement.
@@ -35,3 +43,4 @@
* Serialization and Framing should be cheap on cpu. This means avoiding
serialization mechanisms that inspect and possibly modify every single byte
of a string (json's UTF-8 + escape code enforcement).
Please sign in to comment.
Something went wrong with that request. Please try again.