examples icon indicating copy to clipboard operation
examples copied to clipboard

[clients/avro] Avro IDL example

Open OneCricketeer opened this issue 5 years ago • 2 comments

AVSC is nice, but JSON is verbose and can be consolidated using Avro IDL (AVDL) syntax.

OneCricketeer avatar Oct 22 '18 20:10 OneCricketeer

@cricket007 : what level of adoption do you see of AVSC compared to AVDL? My general understanding is that more customers use AVSC?

ybyzek avatar Oct 23 '18 00:10 ybyzek

I mostly see AVSC being used in non Java code or when trying to teach people Avro is really just a strongly typed JSON record.

IDL on the other hand allows composition rules (imports), and multiple records can be defined in a single "protocol". This allows a more natural inheritance design rather than heavily nesting and repetitive copying of JSON objects in AVSC definitions.

It works better for comparing to a Thrift & Protobuf knowledge base.

The Maven plugin supports both, so just was going to offer a translation of the existing AVSC code

OneCricketeer avatar Oct 23 '18 00:10 OneCricketeer