/introduction-to-avro

Supporting code for 'Introduction to Apache Avro' presentation in #12 Athens API Meetup

Primary LanguageJavaScript

Introduction to Avro

Supporting code for 'Introduction to Apache Avro' presentation in #12 Athens API Meetup.

##Requirements

You will need Node Js to run the sample codes and to install the dependencies using npm:

$ npm install

##Structure

.
├── schemas
│   ├── brand.avsc
│   ├── color.avsc
│   └── shoe.avsc
├── registry.js
├── read.js
└── write.js

Repository consists of some schema definitions found in ./schemas directory and are parsed using avsc node module in ./registry.js.

write.js & read.js are convinient scripts to demonstrate write/read binary files with the avro serialization.

##Schema Evolution

V1

$ node write.v1.js
$ node read.v1.js
$ node read.v2.v1_compatible.js

V2

$ node write.v2.js
$ node read.v2.js
$ node read.v1.v2_compatible.js