Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provider如何异步处理请求 #177

Closed
Spectrumleeee opened this issue Nov 19, 2015 · 3 comments
Closed

provider如何异步处理请求 #177

Spectrumleeee opened this issue Nov 19, 2015 · 3 comments

Comments

@Spectrumleeee
Copy link

provider端实现接口的时候,能否获取客户端连接的channel呢?这样服务端就可以异步处理客户端请求了,似乎channel已经被封装到了dubbo架构的底层了,服务端只能同步处理完请求就返回。

最近看到可以通过参数回调的方式实现服务端异步处理客户端请求,但是还是想知道能否有
RpcContext.getContext().getRemoteAddressString()的类似的api在服务端获取与客户端的channel,从而实现异步处理请求。

@luoyan35714
Copy link

Dubbo支持Future和Callback两种类型的异步调用
http://dubbo.io/User+Guide-zh.htm#UserGuide-zh-%E5%8F%82%E6%95%B0%E5%9B%9E%E8%B0%83

@afredlyj
Copy link

afredlyj commented Dec 1, 2015

dubbo 处理异步时,会把异步的标志位往下传输,导致获取处理结果失败。

@diecui1202
Copy link

@Spectrumleeee We have provided a new async invoke implementation in 2.7.x

check #1957 for more infos.

Feel free to reopen it. &READY-TO-CLOSE&

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants