APICurio Caching #2662
Replies: 2 comments 2 replies
-
Hi @Gourav2912 thanks for the question and apologies for the delay in responding. The Apicurio Registry server does not currently cache any data. We are exploring server-side caching options, but it's not a high priority at the moment. Instead, it is expected that clients (SerDes, SDKs, CLIs, etc) will perform caching logic. For example, the Apicurio SerDes classes that we provide for Kafka use-cases will cache the schemas on the client-side. Note that aggressive client-side caching should mostly be safe due to the immutability of artifact versions. |
Beta Was this translation helpful? Give feedback.
-
HI @EricWittmann , How should I cache using the V2 Registry Client? Is this something that I need to implement myself? Or are are there classes / sample implementations I could copy / be inspired by. I am thinking that for deserialize - I will keep 2 maps with keys of globalId and contentId with the value of the schema as the value. My only concern is the maps blowing up by using all the heap, so maybe we would need some cache management. WDYT? |
Beta Was this translation helpful? Give feedback.
-
Hello, I want to understand the caching mechanism used in apicurio for validation of schema, Is schema once fetched will remain in memory or everytime apicurio APIs are call for fetching schema at runtime using APICurio SDK?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions