Extending the "value" object during production

18 views
Skip to first unread message

tmaus

unread,
Nov 18, 2010, 5:36:17 AM11/18/10
to project-voldemort

Lets assume that I need to extend my "value" object by a couple of
primitives or even complex objects.

How could this be achieve during cluster runtime ?

gxm

unread,
Nov 20, 2010, 2:13:40 PM11/20/10
to project-voldemort
I've achieved this using Protocol Buffers, and you could use Thrift as
well. Both are quite adept at versioning.
Both are also supported by Voldemort, however, this support requires
you to use the generated objects when interacting with Voldemort.

I prefer using POJOs that don't know anything about Voldemort and
serialization.
To do that, I implement the voldemort.serialization.Serializer
interface, which limits the scope of the generated code in my project.
You will also need to implement a SerializerFactory to return the
correct serializers.

Tatu Saloranta

unread,
Nov 20, 2010, 2:24:49 PM11/20/10
to project-...@googlegroups.com
On Sat, Nov 20, 2010 at 11:13 AM, gxm <moul...@gmail.com> wrote:
> I've achieved this using Protocol Buffers, and you could use Thrift as
> well.  Both are quite adept at versioning.
> Both are also supported by Voldemort, however, this support requires
> you to use the generated objects when interacting with Voldemort.
>
> I prefer using POJOs that don't know anything about Voldemort and
> serialization.
> To do that, I implement the voldemort.serialization.Serializer
> interface, which limits the scope of the generated code in my project.
> You will also need to implement a SerializerFactory to return the
> correct serializers.

Related to this, I was wondering how many users are using true JSON
for storing data? (not JSON-like format Voldemort supports, as it
stores things bit different internally).
Reason I am asking this is that I work with Jackson JSON processor,
and I know many use it with other K/V stores (MongoDB, CouchDB), but I
haven't heard from many Voldemort users. I assume this is not
necessarily due to lack of usage, but it would be nice to know, since
K/V store data binding is becoming a very important use domain, and we
want to support it best we can.

-+ Tatu +-

Tom Chen

unread,
Nov 22, 2010, 1:25:31 PM11/22/10
to project-...@googlegroups.com
Hi Tatu,

We use json strings for our message clobs at my startup. We migrated
from storing our messages from mysql to voldemort. We use a simple
string, and string storage to give us flexibility for changes.

Tom

> --
> You received this message because you are subscribed to the Google Groups "project-voldemort" group.
> To post to this group, send email to project-...@googlegroups.com.
> To unsubscribe from this group, send email to project-voldem...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/project-voldemort?hl=en.
>
>

--
Tom Chen
Software Architect
GOGII, Inc
t...@gogii.net
650-468-6318

Tatu Saloranta

unread,
Nov 22, 2010, 8:27:20 PM11/22/10
to project-...@googlegroups.com
On Mon, Nov 22, 2010 at 10:25 AM, Tom Chen <t...@gogii.net> wrote:
> Hi Tatu,
>
> We use json strings for our message clobs at my startup. We migrated
> from storing our messages from mysql to voldemort.   We use a simple
> string, and string storage to give us flexibility for changes.

Yeah, I figured this is common, similar to using BLOBs for xml or json.

-+ Tatu +-

Reply all
Reply to author
Forward
0 new messages