You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2020/01/11 07:27:18 UTC

[GitHub] [servicecomb-java-chassis] zhufeizzz edited a comment on issue #1525: CSE能支持服务端异步吗?

zhufeizzz edited a comment on issue #1525: CSE能支持服务端异步吗?
URL: https://github.com/apache/servicecomb-java-chassis/issues/1525#issuecomment-573291100
 
 
   > 不用。 java-chassis的运行机制和SpringMVC不同。 默认情况下,java-chassis的业务执行都是在独立线程池执行,不占用http请求。 不需要`@async`标签。 你还可以非常简洁的通过配置将某个不同的业务接口,[配置为使用独立的线程池执行](https://docs.servicecomb.io/java-chassis/zh_CN/build-provider/thread-pool.html)
   > 
   > 可以通过[设计](https://servicecomb.apache.org/cn/docs/open-design/)、[线程池模型](https://docs.servicecomb.io/java-chassis/zh_CN/general-development/thread-model.html)和[Spring Boot集成](https://docs.servicecomb.io/java-chassis/zh_CN/using-java-chassis-in-spring-boot/using-java-chassis-in-spring-boot.html)了解运行时差异
   
   你们可能没理解我的意思,我是想长任务立马返回Null给客户端,释放HTTP连接。因为我只要确保服务调用了,不关注结果。
   如果自己写代码的话就是接收到请求,放入线程池队列,然后return void.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services