[FEATURE REQ] Provide a easy way to use Azure Schema Registry in Spring Cloud Azure #41041
Open
2 tasks done
Labels
azure-spring
All azure-spring related issues
azure-spring-eventhubs
Spring event hubs related issues.
azure-spring-servicebus
Spring service bus related issues.
Client
This issue points to a problem in the data-plane of the library.
Is your feature request related to a problem? Please describe.
In this sample: Use Azure Schema Registry in Spring Boot Application, Using Azure Schema Registry only need to configure a Kafka Serializer or Kafka Deserializer. But when customer use Event Hub or Service Bus without Kafka protocal, it's not easy to use Azure Schema Registry.
Describe the solution you'd like
Provide a feature to help customer easily use Azure Schema Registry with Event Hub or Service Bus without using Kafka protocal.
Describe alternatives you've considered
If use sdk, customer can do serialize and deserizlize by themself. Example code:
azure-sdk-for-java/sdk/schemaregistry/azure-data-schemaregistry-apacheavro/src/samples/java/com/azure/data/schemaregistry/apacheavro/SchemaRegistryWithEventHubs.java
Lines 80 to 87 in 85861d0
But for Spring Cloud Azure users, it's not easy to achieve this.
Additional context
![image](https://private-user-images.githubusercontent.com/171773178/346600367-6f249ade-4214-4b83-b986-153d2a19a6df.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE3NjMxMDMsIm5iZiI6MTcyMTc2MjgwMywicGF0aCI6Ii8xNzE3NzMxNzgvMzQ2NjAwMzY3LTZmMjQ5YWRlLTQyMTQtNGI4My1iOTg2LTE1M2QyYTE5YTZkZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzIzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyM1QxOTI2NDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lNmVhNmExMjZiYzU0YWYzZTI2YjdkMGY2NGJmNmRiNmVmYTEwNzMxY2VhMmNhYzE4ZGViYzk5N2M5Njg3YWZhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.V6lT4MFCQ1jejcfDQScBmjmDYSgMXkWc_-lTakWNifE)
In above sample, the schema validation is done in kafka client. Here is a screenshot about using serializer:
But in this repository, schema validation can NOT be done in sdk level, because the sdk level not have information of schema, you can refer to related code to confirm that. But it can be done in Spring Cloud Azure level.
In Spring Cloud Azure, every place use sdk to send/receive message using Event Hub or Service Bus can be a candidate to enhance. Here is a sample analyze of service bus:
Items with green background color is a potential enhance point.
Need more investigation and analyzation before implement this function.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: