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

   > > > 3. 
由于客户端中的getschema方法需要的返回值都是GetSchemaResponse类型,因此我的缓存value也保存这个类型的值。这样的优点在于能够直接返回缓存中的value,但是缺点在于占用更多的空间,并且在register的过程中可能无法更新缓存(因为数据无法拼接成一个GetSchemaResponse)。我暂时没有想到更好的办法
   > > 
   > > 
   > > 最佳做法应该是在 restservice 中对 response 进行一次拆包和封装,转为类似 SchemaInfo 的类 @humkum 
可以看看做一下封装
   > 
   > 嗯嗯。我觉得或许不应该直接暴露GetSchemaResponse给用户,这样也方便在客户端进行缓存。如果 @humkum 
同学在做这个封装的话,我希望能够一起合作~
   
   
如果能有一个统一的封装来返回给用户,而不是直接使用GetSchemaResponse/UpdateSchemaReponse/RegisterSchemaResponse的话,我觉得会大大减轻客户端缓存的空间,操作也会更便捷


-- 
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