qizha commented on issue #592: 
【请关注】服务消费者调用服务提供者接口时,目前缺少接口级别或者动态的超时设置能力,无法满足服务接口差异化诉求
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/issues/592#issuecomment-372915556
 
 
   
实际上你的要求是如何在微服务之间进行异步操作。命令-等候-查询结果的方式是其中的一种解决方案。而拉大调用的超时时间并不是好的方案,因为这个操作治标不治本,并不能根本解决你异步操作的问题,一旦异步的过程时间长了,就有问题了。
   我推荐的方式是使用类似callback的方式,这个是REST的标准。可以参考OpenAPI的Specification:
   https://swagger.io/specification/#callbackObject
   也可以参考这个文章:https://dzone.com/articles/rest-callbacks

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to