Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.53 KB

README.adoc

File metadata and controls

54 lines (40 loc) · 1.53 KB

Avro Demo

8e2458d3288ad6632db4a4fe6a57635e89e4c03e7d63d5bdcf avro demo

Table of Contents

Purpose

This source demonstrates some Apache Avro features, also when used with the Confluent Schema Registry.

Running

Prerequisites

You need Bazelisk installed, with HomeBrew just use brew install bazelisk.

Demo

for action in sample decode schema encode; do
    for model in dynamic json reflect specific; do
        echo "--- $model $action ---"
        bazel run //:avro_demo -- -m $model $action
    done
done
bazel run //:avro_demo -- -m reflect compatible
bazel run //:avro_demo -- transitive
for model in dynamic json reflect specific; do
    echo "--- $model decode ---"
    bazel run //:confluent_demo -- -m $model decode
done
bazel run //:confluent_demo -- encode
for model in dynamic json reflect specific; do
    echo "--- $model compatible ---"
    bazel run //:confluent_demo -- -m $model compatible
done