redpanda-data / redpanda

Redpanda is a streaming data platform for developers. Kafka API compatible. 10x faster. No ZooKeeper. No JVM!
https://redpanda.com
9.65k stars 589 forks source link

Inconsistent Schema Registry Behavior in Redpanda vs Confluent #21429

Open onursahin0 opened 3 months ago

onursahin0 commented 3 months ago

Version & Environment

Description

We have observed that Redpanda's Schema Registry behaves differently compared to Confluent's Schema Registry. Our .NET applications use Kafka Flow, specifically the ISchemaRegistryTypeNameResolver for resolving schema types. We integrate with Confluent's Schema Registry for our Kafka setup and expect Redpanda's Schema Registry to behave the same.

This schema registry resolver works perfectly with the Confluence Kafka in the production, however, when we run the same code against Redpanda, the code fails because the schema registry response is different than the Confluent Kafka.

Observations:

  1. Schema Retrieval Format:
    • Confluent's Schema Registry retrieves schemas as base64-encoded proto descriptors.
    • Redpanda retrieves the schema string directly, necessitating additional conversion logic in our codebase to maintain compatibility.

For reference, here is a link to the relevant Kafka Flow code we are using for schema registry type name resolution: KafkaFlow ISchemaRegistryTypeNameResolver.

JIRA Link: CORE-5636

github-actions[bot] commented 4 weeks ago

This issue hasn't seen activity in 3 months. If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in two weeks.