Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dalelane/avro-explorations
Sample code to illustrate a few points about how Avro deserializing works
https://github.com/dalelane/avro-explorations
Last synced: 24 days ago
JSON representation
Sample code to illustrate a few points about how Avro deserializing works
- Host: GitHub
- URL: https://github.com/dalelane/avro-explorations
- Owner: dalelane
- Created: 2023-11-15T18:00:27.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2023-11-17T01:11:14.000Z (12 months ago)
- Last Synced: 2024-05-16T01:03:37.924Z (6 months ago)
- Language: Java
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# avro-explorations
This is a Java application written to illustrate the blog posts:
- [You need two schemas to deserialize an Avro message… but which two?](https://dalelane.co.uk/blog/?p=5031) (dalelane.co.uk)
- [You need two schemas to deserialize an Avro message… but which two?](https://community.ibm.com/community/user/integration/blogs/dale-lane1/2023/11/16/avro-deserializing) (community.ibm.com)It produces messages to Kafka topics, serialized as binary-encoded Avro using a variety of Avro schemas.
It then consumes them, using different schemas to illustrate what happens if you don't use schemas correctly.
### To build:
```sh
./0-compile.sh
```Create a file called `app.properties` and add the config for your Kafka cluster to it.
### To produce test messages:
```sh
./1-produce.sh
```
[example output](./output-produce.txt)### To consume test messages and display the results:
```sh
./2-consume.sh
```
[example output](./output-consume.txt)