[jboss-dev-forums] [Design of JBossCache] - Re: Evolution of TcpDelegatingCacheLoaders/TcpCacheServers
akluge
do-not-reply at jboss.com
Tue Apr 28 12:10:12 EDT 2009
Hi,
Sorry for taking a bit of time to get back on this, but I have been busy.
I would expect any given server to respond to both the Memcache and the Jboss Cache protocol. However, I would expect any given client to use only one of them.
I was not planning on a handshake, but to simply have the client connect, and send requests according to its chosen protocol. Even in this case you will want to have the magic bytes.
- They allow the server and the client to do a consistency check. If they see something else at the beginning of a message, they know quickly that something is wrong.
- They make it easier to handle additional message types (I expect to add event notifications over the JBC protocol).
- The Memcache binary protocol (http://code.google.com/p/memcached/wiki/MemcacheBinaryProtocol) already uses them, so at least for Memcache requests/responses they are required.
- The Memcache protocol spec also makes the point that it makes it easier for protocol analyzers to work with the magic bytes.
Thanks,
Alex
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227330#4227330
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227330
More information about the jboss-dev-forums
mailing list