[zeromq-dev] Statistics protocol v0.1
Paul Colomiets
paul at colomiets.name
Mon Jun 4 01:16:51 CEST 2012
Hi Marten,
On Fri, Jun 1, 2012 at 4:19 PM, Marten Feldtmann <itlists at schrievkrom.de> wrote:
> I could also life with one name, where I concatenate
> two names before sending and do the reverse work at the collector.
Yes. This is how hostnames usually work. They represent hierarchy with
dot-separated strings. And the means to separate hostname from other
stuff is provided.
> We also consider putting even more complicated data into
> that statistic-"telegram" and serialize them via TNetString
> (or other fast serialize methods NOT like JSON or XML).
>
This is what extensions are for in the spec. You can put arbitrary
data there. There is no reason to include in protocol the data that is
not universally understandable.
> What I actually do not like very much: white spaces as seperators in
> specifications.
>
Why? As you can see in examples, its much easier to parse
space-separated values with sscanf. And being able to parse values in
C means more high-performance tools would be developed.
Space-separation is also nice for human readability.
--
Paul
More information about the zeromq-dev
mailing list