ferrirW commented on issue #49:
URL: 
https://github.com/apache/rocketmq-schema-registry/issues/49#issuecomment-1408130086

   > 3. 
由于客户端中的getschema方法需要的返回值都是GetSchemaResponse类型,因此我的缓存value也保存这个类型的值。这样的优点在于能够直接返回缓存中的value,但是缺点在于占用更多的空间,并且在register的过程中可能无法更新缓存(因为数据无法拼接成一个GetSchemaResponse)。我暂时没有想到更好的办法
   
   最佳做法应该是在 restservice 中对 response 进行一次拆包和封装,转为类似 SchemaInfo 的类 @humkum 
可以看看做一下封装
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to