Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using AWS glue schema registry with confluent SerDe clients

For supporting schema registry on my MSK topic, I found two options -

  • AWS Glue Schema Registry; and
  • Confluent Schema Registry

Since, Glue SR is fully managed by AWS, I would prefer to use that. However, my producer and consumer clients are written in python, which limits me from using SerDe libraries provided by AWS in java.

I went on to search whether the confluent schema registry API (part of confluent kafka library in python) can be made to work with the Glue Schema Registry, since my initial assumption is that the schema registry implementations are generic across confluent and glue.

When reading confluent documentation, I found that a schema registry connection can be established by supplying url for schema registry using url property (https://docs.confluent.io/platform/current/clients/confluent-kafka-python/#).

I cannot find such url for the glue registry I created. Their java client does take in properties like region name, registry name and other properties (https://docs.aws.amazon.com/glue/latest/dg/glue-dg.pdf#schema-registry). Is there any way this url can be found out, or should I switch to confluent SR, which is not a managed service?

like image 414
hapathak Avatar asked Jan 28 '21 03:01

hapathak


People also ask

What is AWS Glue schema?

The AWS Glue Schema Registry is a new feature that allows you to centrally discover, control, and evolve data stream schemas. A schema defines the structure and format of a data record.

What is confluent schema registry?

Schema Registry provides a serving layer for your metadata. It provides a RESTful interface for storing and retrieving Avro schemas. It stores a versioned history of all schemas, provides multiple compatibility settings and allows evolution of schemas according to the configured compatibility setting.


1 Answers

AWS Glue Schema Registry does not have the notion of a URL endpoint. You interact with the service through the AWS APIs given a region and a registry name.

AWS has provided a library

https://github.com/awslabs/aws-glue-schema-registry

like image 89
Dude0001 Avatar answered Oct 19 '22 12:10

Dude0001