Improve avro-d2-example with async calls.