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
$ node write.v1.js
$ node read.v1.js
$ node read.v2.v1_compatible.js
$ node write.v2.js
$ node read.v2.js
$ node read.v1.v2_compatible.js