Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gklijs/schema_registry_test_app
Java Application that consumes different types of messages supported by Schema Registry, and produces a similar kind to the same topic.
https://github.com/gklijs/schema_registry_test_app
avro kafka
Last synced: 2 months ago
JSON representation
Java Application that consumes different types of messages supported by Schema Registry, and produces a similar kind to the same topic.
- Host: GitHub
- URL: https://github.com/gklijs/schema_registry_test_app
- Owner: gklijs
- License: mit
- Created: 2020-06-27T07:51:43.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-11T05:53:09.000Z (3 months ago)
- Last Synced: 2024-10-12T13:13:57.339Z (3 months ago)
- Topics: avro, kafka
- Language: Java
- Homepage:
- Size: 16.6 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Schema registry test app
Test app to test compatibility for reading and writing to Kafka using the Confluent Schema Registry.
For now, it just writes a test message using the three by default supported formats, Avro, Protobuf, Protobuf with
Google common proto and JSON Schema.
The topics it uses respectively are testavro, testproto, testgoogle and testjson. You can run the app
with `mvn exec:java`, from
your ide or as jar.It's using a lot of 'sensible defaults', like the schema registry url and topic names.
For now only the Schema Registry Url (`SCHEMA_REGISTRY_URL`) and the Bootstrap Servers(`BOOTSTRAP_SERVERS`) can be
overwritten using environment variables.## Register the schema's
You should register the schema's using the schema registry plugin before use, as it's explicitly configured not to auto register schema's.
This can be triggered by running `mvn schema-registry:register` in the root of the project.
Optionally you can add `-Dschema-registry-url=something` after mvn to overwrite the default url.