当前位置:网站首页>zfoo中的providers和consumers标签
zfoo中的providers和consumers标签
2022-07-23 20:02:00 【zfoo-framework】
providers: 一般是表明自己是生产者,这样子可以在服务器启动时,把自己注册到zk中,只有一个元素。
consumers: 指定自己作为消费者要消费的接口。 可以有多个,这样子直接syncAsk请求服务提供方,其实就是rpc,这样子在自己启动时会从zk中获取自己关心的消费者,从而连接他们。
通过NetContext.getConsumer() 获取到一个session(ClientSessionMap中的一个元素),从而给服务提供者发送消息。
边栏推荐
- Reduced order method of linear algebraic determinant calculation method
- osgearth2.8编译siverlining云效果
- What if there is no word document in win11? There is no word document solution tutorial in win11
- shell命令及运行原理
- Relevant interfaces of [asp.net core] option mode
- Osgearth2.8 compiling silvering cloud effect
- Non local mean filtering / attention mechanism
- The full text of Li Hongzhang's deathbed poem
- 17.生命周期
- Top ten shrinking industries in China in the first half of 2022
猜你喜欢

next数值型数据类型()出现输入错误后,下次依然能正常输入
![[unity project practice] level unlocking](/img/14/a12ad9aa7741599222aa4db8688713.png)
[unity project practice] level unlocking

Flink Catalog解读

使用TinkerPop框架对GDB增删改查

Failure after reinstalling the system (error: Reboot and select proper boot device or insert boot media in selected boot device)

Atelier macoll - notes de développement de la secte de l'ours 2

Osgearth uses sundog's Triton ocean and silverlining cloud effects

Prepare for pressure test with JMeter and visualvw

如何合理地估算线程池大小

When using polymorphism, two ideas to judge whether it can be transformed downward
随机推荐
梅科尔工作室-小熊派开发笔记2
【pdd面试】分析手机中的应用(相机)的活跃情况
Prepare for pressure test with JMeter and visualvw
种树最好的是现在
TASK03|回归
Meiker Studio - Huawei 14 day Hongmeng equipment development practical notes 6
What antenna is used for ant interface_ There is an interface at the back of the TV that says standard ant 75 Euro input. What does it mean, antenna? Can you connect the closed route "Suggested collec
20. Ref and props
最新版Confluence+Docker+MySQL8部署教程
关于网段CIDR的笔记
did you register the component correctly
【Unity项目实践】关卡解锁
21. Mix in details
微软网站上关于在Edge浏览器中打开或关闭smartScreen的说明有误
Is the income of CICC securities' new financial products 6 percent? I want to open an account and manage money
I deliberately leave a loophole in the code. Is it illegal?
Shell command and operation principle
OneFlow v0.8.0正式发布
QT with OpenGL (frame cache)
Adobe Acrobat两个强大的插件