Project

avrodrome

0.0
No commit activity in last 3 years
No release in over 3 years
An in memory drop in replacement for an Avro Schema Registry
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.17
~> 1.9
~> 0.12
~> 10.0
~> 3.0
 Project Readme

Avrodrome

Avrodrome, just like an aerodrome is a place to store aircraft, avrodrome is a place to store Avro schemas. Designed to be use as an in memory drop in replacement for AvroTurf/Avromatic registry, instead of using Webmock and stubbing calls for testing. It can also be used in development, as it will behave exactly like talking to an Avro schema registry

Installation

Add this line to your application's Gemfile:

gem 'avrodrome'

And then execute:

$ bundle

Or install it yourself as:

$ gem install avrodrome

Configuration

Avrodrome.configure do |config|
	config.logger = Logger.new(STDOUT) #Default
end

Usage

Designed to be used as a replacement for the registry class in AvroTurf/Avromatic

require 'avrodrome'

Avromatic.configure do |config|
	config.schema_store = Avro::Builder::SchemaStore.new(path: 'path/to/store')
	config.schema_registry = Avrodrome.build_adaptor
	config.build_messaging!
end

or

avro = AvroTurf::Messaging.new(registry: Avrodrome.build_adaptor)
avro.encode({...})

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/adamcarlile/avrodrome.

License

The gem is available as open source under the terms of the MIT License.