[infinispan-dev] Shipping logical address String in Hot Rod protocol v1.1?

Dan Berindei dan.berindei at gmail.com
Wed Nov 30 04:28:42 EST 2011


On Wed, Nov 30, 2011 at 10:04 AM, Bela Ban <bban at redhat.com> wrote:
>
>
> On 11/30/11 8:59 AM, Dan Berindei wrote:
>
>>> Why don't you send the UUID as a (16 byte) string then ?
>>>
>>
>> Yeah, that would work. However, a UUID is not always a valid UTF-8
>> string, so we should probably define it in the protocol as an array of
>> bytes (without any meaning).
>
>
> Yes. We did something similar in JGroups, take a look at
> ENCRYPT.byteArrayToHexString().
>

Since HotRod is a binary protocol I meant to send the UUID as it is
(no encoding whatsoever).

I think sending the UUID as a hex-encoded string, a raw byte array, or
a 32-bit hash (since that's all we need on the client) are all valid
choices.

> --
> Bela Ban
> Lead JGroups (http://www.jgroups.org)
> JBoss / Red Hat
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev


More information about the infinispan-dev mailing list