Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not disable cache when fetching a schema #48

Conversation

dstendardi
Copy link
Contributor

@dstendardi dstendardi commented Aug 9, 2021

Description of the problem

This issue refers to the initial question : #47

We are considering using this library in our producers however given the throughput we aim it feels not right to hit the schema registry on every call.

Proposed solution

This change aligns the behavior of the caching with the java implementation.
See: https://github.com/confluentinc/schema-registry/blob/8c4385c0f3b14bb5fb1046661f9bb5ff532de2d1/schema-serializer/src/main/java/io/confluent/kafka/serializers/AbstractKafkaSchemaSerDe.java#L202

Who wants to disable caching can do it via the CacheEnabled(boolean) method.

…ionWithArbitrarySubject

This change align the behavior of the caching with the java implementation.
See: https://github.com/confluentinc/schema-registry/blob/8c4385c0f3b14bb5fb1046661f9bb5ff532de2d1/schema-serializer/src/main/java/io/confluent/kafka/serializers/AbstractKafkaSchemaSerDe.java#L202

User who want to disable caching can do it via the `CacheEnabled(boolean)` method.
@riferrei riferrei merged commit 663329a into riferrei:master Aug 9, 2021
@dstendardi dstendardi deleted the do-not-disable-cache-when-fetching-schema branch August 9, 2021 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants