Comments (5)
为什么服务端要订阅,它订阅来自哪里的数据?
from rest_rpc.
现在的发布订阅使用方式是:rpc_server发布数据,rpc_client订阅数据,和我印象中的消息中间件的顺序相反(rpc_client发布数据,rpc_server订阅数据),按照现有方式也没有问题,但我发现rpc_client中有publish接口,rpc_client发布的数据由谁去订阅呢?谢谢指教。
from rest_rpc.
A客户端订阅主题a,B向服务器发布a,服务器publish这个a,A就可以收到来自B发布的消息了。
from rest_rpc.
A客户端订阅主题a,B向服务器发布a,服务器publish这个a,A就可以收到来自B发布的消息了。
不太明白,这里的B是指的rpc_client还是rpc_server?
from rest_rpc.
B可以是一个客户端,也可以是服务器端的一个业务对象,它们最终都会调用server提供的publish接口去发布消息。
from rest_rpc.
Related Issues (20)
- Upload / Download large file HOT 1
- vs2022编译错误,"result_of": 不是 "std" 的成员
- client.async_call<0> 为什么会触发超时呢? HOT 3
- 请问该工具最大支持传输 多大的数据? HOT 8
- 会支持go语言吗 HOT 1
- 连续调用客户端 close崩溃 HOT 2
- func_id碰撞问题 HOT 1
- 不能在VS2013中使用 HOT 8
- 服务端接收数据不完整 HOT 2
- 客户端publish字符串数据,服务端接收的数据错误 HOT 2
- 关于执行线程的问题 HOT 3
- imrpove rest_rpc
- rpc异常导致程序崩溃 HOT 3
- Demo崩溃 HOT 4
- 怎么设置KeepAlive
- 双网卡 HOT 1
- rpc_client 中call_back函数(rcp_client.hpp 638行)的assert(f)被触发的原因是什么 HOT 1
- 支持超大文件下载功能?
- 支持超大文件传输 HOT 3
- 为什么server端没有subscribe?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rest_rpc.