[erlang-questions] binary typed schema-less protocol

Mon Jul 29 19:28:40 CEST 2013

Also, slightly off topic, but not totally, is a serialization system I wrote about 15 years ago and which has been in continuous production since (it logged all traffic Goto.com/Overture.com/Yahoo did, as well as traffic at AT&T and OpenX, so I'd guess somewhere in the 100s of trillions of messages sent).


Unlike some of the others mentioned (but similar to ASN.1 IIRC), is that it is self describing, so doesn't require compiling bindings.  It's original purpose was to pass dictionaries between language's (so send a Java HashMap  receive a perl hash, or an erlang dict).  The values in the dictionaries have evolved somewhat, but we've kept things backwards compatible.

It's serialization format is length and type prefixed, so doesn't suffer from the issues Richard pointed out in tnetstrings, however since it's meant to send somewhat smallish bits of data over UDP there's not usually a memory concern.

Anyway, just throwing it out there as its worked well for particular problems for many years for me.


On Jul 29, 2013, at 7:25 AM, Wojtek Narczyński <wojtek@REDACTED> wrote:

> W dniu 2013-07-26 11:20, Ulf Wiger pisze:
>> At Feuerlabs, we use (among other things) BERT [1] and
>> Yang [2] (RFC 6020) to accomplish RPCs with contract checking.
>> In addition, our BERT implementation has access control lists and
>> is pretty flexible about transport and authentication (with the option
>> of an authentication plugin), and our Yang compiler (developed in
>> cooperation with Tail-f) can generate Erlang code from a spec and
>> has a facility to validate a JSON-style RPC against the 'contract'.
>> Documentation is a bit sparse (hrm…) but our support staff can be very helpful.
>> [1] https://github.com/Feuerlabs/bert
>> [2] https://github.com/Feuerlabs/yang
> It makes me wonder, what is wrong with ASN.1?
> I have never used it, but on paper it looks superior to any more recent schema description language.
> Sorry for being off-subject.
> --Kind regards,
> Wojtek Narczynski
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

More information about the erlang-questions mailing list