bencebalogh / avro-schema-registry

Confluent Schema Registry implementation in javascript to easily serialize and deserialize kafka messages
MIT License
28 stars 30 forks source link

Feature request: Encode by topic name #22

Closed katsanva closed 5 years ago

katsanva commented 5 years ago

Hello.

I do have the next scenario for the kafka messaging:

Due to this - encode-function.js needs to be extended with something like byTopic(registry): (topic: string, msg: any, parseOptions?: any)) => Promise<any> to get a schema by a topic name from registry and encode with it.

@bencebalogh What do you think?