Skip to content

An in memory AvroTurf compatible schema registry adaptor

License

Notifications You must be signed in to change notification settings

adamcarlile/avrodrome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An in memory AvroTurf compatible schema registry adaptor

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published