kaelzhang / node-dubbo Goto Github PK
View Code? Open in Web Editor NEWDubbo client for node.
License: Other
Dubbo client for node.
License: Other
现在你的实现是每次请求都建一个socket连接,是否考虑实现一个 KeepAlive agent
Error: no available children found for "/dubbo-prod/com.xxx.service.MemberService/providers"
at error (/node_modules/dubbo/lib/utils.js:22:11)
at reject (/node_modules/dubbo/lib/utils.js:28:35)
at Service._applyProviders (/node_modules/dubbo/lib/service.js:225:34)
at /node_modules/dubbo/lib/service.js:206:23
at
at process._tickDomainCallback (internal/process/next_tick.js:208:7)
github上看好像连接池已经实现了,但是npm下载后还是老代码
按例子设置了pool,发现调用还是短连接方式。查看源码也没有发现pool参数的使用?
dubbo 文档见 XML 配置 章节
标签 | 用途 | 解释 |
---|---|---|
dubbo:provider/ | 提供方配置 | 当 ProtocolConfig 和 ServiceConfig 某属性没有配置时,采用此缺省值,可选 |
提供方示例配置
<dubbo:provider timeout="3000" group="${dubbo.gra.group}"/>
提供方在 zookeepter 注册当url地址即形如
dubbo://10.204.129.197:30930/com.foo.barService?anyhost=true&application=a&default.accepts=160&default.group=x&default.threadpool=fixed&default.threads=160&dubbo=2.6.0&generic=false&interface=com.foo.barInterface&methods=plus,minus&pid=1&retries=0&revision=1.0-20181012.064632-11&side=provider&timeout=120000×tamp=1539839095326
service.js:L143
.filter(zoo => zoo.version === this._version && zoo.group === this._group)
将过滤不掉有默认组 x
情况,造成 消费方 无法 远程调用。
建议调整为
- .filter(zoo => zoo.version === this._version && zoo.group === this._group)
+ .filter(zoo => (zoo.version || zoo['default.version']) === this._version && (zoo.group || zoo['default.group']) === this._group)
刚试了一下,在const Dubbo = require('dubbo');语句就挂住了,是不是因为还不是完整包?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.