On Wed, Jan 15, 2014 at 12:11 PM, Dave Rawks <d...@pandora.com> wrote:

> On 01/15/2014 06:42 AM, Jesse Becker wrote:
> > On Wed, Jan 15, 2014 at 8:41 AM, Nicholas Satterly <nfsatte...@gmail.com>
> wrote:
> >> If we are to look at redoing the XML parsing next then the two
> contenders
> >> that come to mind are gzipped JSON and Google Protocol Buffers.
> >>
> >> PB is meant to be very efficient and therefore faster, however it seems
> >> people have gotten comparable results with gzipped JSON. An obvious
> >> advantage of gzipped JSON is that it would be simple to make the output
> >> human readable though we could easily develop a CLI tool that allowed
> us to
> >> query and decode ganglia PB data for testing.
> >
> > I think there are large advantages to using standard and widely
> > adopted formats, so JSON gets my vote there.  That's not to say PB
> > isn't widely used, but I suspect there are a lot more tools and
> > programming language bindings to read and process JSON data.
> >
> > Or...why not just use XDR for bulk data transport, instead of
> > introducing a third format (XML, XDR, and JSON/PB)?   I'm not hugely
> > familiar with XDR, so apologies if I'm missing an obvious reason why
> > it wouldn't work here.
> >
> >
> >
>
>
> +1 vote for XDR, it works great it is pretty damned efficient and the
> code to use it is ubiquitous.


The only downside I can see to PB or XDR is that there are not easy ways to
make them dynamically extensible for changes to the protocol, IIRC. The
main benefit to JSON (or gzipped JSON) besides readability is that adding a
new field doesn't break older versions.

XDR is pretty easily parseable, but I've personally put together at least
two different XDR reading or writing implementations for languages which
didn't support it yet -- and JSON is far more ubiquitous, as far as
language support goes.

Jeff
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to