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 2022/06/10 04:00:55 UTC
[GitHub] [servicecomb-java-chassis] hailin84 commented on issue #3051: 是否有计划支持类似于async servlet这种机制
hailin84 commented on issue #3051:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3051#issuecomment-1151910031
@liubao68 你说的跟我说的不是一回事。你指的异步是说servlet不在event-loop里执行而是在另一个单独的线程池执行吧?但是不管在哪里执行,执行完就立马响应客户端了。我说的这个场景线程可以执行完毕,但是不响应客户端。而是等到后面异步工作做完,再响应客户端。换句话说是需要将处理请求的流程分成两段,第一段是执行Controller、Filter等业务逻辑,第二段是根据把Response写回给客户端。第二段需要检查一下是否是异步,如果是,则先不写回。整个处理流程需要提供重入机制。我看代码主要是在AbstractRestInvocation里,并没有看到相应的机制。
--
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: commits-unsubscribe@servicecomb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org