Development
To run the registry locally:
docker-compose up
To tail the logs:
# Replace CONTAINER_ID with the container's ID
docker exec -it CONTAINER_ID bash -c "supervisorctl tail -f schema-registry"
Glossary
This glossary shall help you when reading the code and understanding Schema Registry at large.
| Term | Description |
|---|---|
| subject | The full name to be used to group a schema history. Consists of a namespace and a name. |
| namespace | The initial part of a subject. e.g. domain.your-project.some-feature |
| name | The final part of a subject. e.g. User |
| version | The object containing id and the schema. Its own id is not global, but unique for each subject. |
| registryId | The global id of a schema version. Retrieved by register. |
References
Publishing a new version
- Create a new branch
- Update
CHANGELOG.mdwith all the relevant changes since the last release by comparing commits since last release - Bump the
package.jsonversion and create a corresponding tag usingnpm version <major | minor | patch> - Push changes to your branch
- Create PR, wait for successful builds
- Merge PR
- Push tags
git push --tags, this will trigger a CI job which publishes the new version onnpm.