https://github.com/klarna/avlizer
Avro Data Serializer for Erlang
https://github.com/klarna/avlizer
klarna-featured
Last synced: 4 months ago
JSON representation
Avro Data Serializer for Erlang
- Host: GitHub
- URL: https://github.com/klarna/avlizer
- Owner: klarna
- License: apache-2.0
- Created: 2018-03-21T09:16:41.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-14T18:39:20.000Z (over 1 year ago)
- Last Synced: 2025-09-05T18:55:30.221Z (4 months ago)
- Topics: klarna-featured
- Language: Erlang
- Homepage:
- Size: 40 KB
- Stars: 20
- Watchers: 10
- Forks: 15
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# avlizer - Avro Serializer for Erlang
`avlizer` is built on top of [erlavro](https://github.com/klarna/erlavro)
The design goal of this application is to provide APIs for users to serialize
or deserialize data with minimal overhead of schema management.
# Integrations
## Confluent Schema Registry
[Confluent schema registry](https://github.com/confluentinc/schema-registry)
provides REST APIs for schema registration and lookups.
### Config
Make sure schema registry URL is present in `sys.config` as below
```
{avlizer, [{avlizer_confluent, #{schema_registry_url => URL}}]}
```
Or set os env variable:
`AVLIZER_CONFLUENT_SCHEMAREGISTRY_URL`
### Authentication support
avlizer currently supports `Basic` authentication mechanism, to use it make sure `schema_registry_auth` tuple `{Mechanism, File}`, is present in `sys.config`, where File is the path to a text file which contains two lines, first line for username and second line for password
```
{avlizer, [{avlizer_confluent, #{
schema_registry_url => URL,
schema_registry_auth => {basic, File}}
}]}
```
Or set authorization env variables:
`AVLIZER_CONFLUENT_SCHEMAREGISTRY_AUTH_MECHANISM`
`AVLIZER_CONFLUENT_SCHEMAREGISTRY_AUTH_USERNAME`
`AVLIZER_CONFLUENT_SCHEMAREGISTRY_AUTH_PASSWORD`