avromatic icon indicating copy to clipboard operation
avromatic copied to clipboard

Add optional schema registration to `Avromatic::Model::Messaging` Module

Open dstrates opened this issue 6 months ago • 4 comments

Feature Request

Update the Avromatic::Model::MessagingSerialization module to make schema registration with the schema registry optional.

Current Behaviour

Currently, the MessagingSerialization module automatically registers the Avro schemas (both key and value schemas) with the schema registry when the register_schemas! method is called. This behaviour is always on, with no option to disable it.

Proposed Change

Introduce a class-level configuration option to control whether schemas should be registered automatically. This will allow developers to opt-in or opt-out of schema registration based on their specific use cases. This could potentially take the form of a class-level variable and methods to toggle the registration behaviour.

dstrates avatar Aug 21 '24 00:08 dstrates