You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2020/12/29 03:45:52 UTC
[GitHub] [dubbo-js] hufeng opened a new issue #229: dubbo-js Major update
hufeng opened a new issue #229:
URL: https://github.com/apache/dubbo-js/issues/229
Dear all,
Thanks to the support of the vivo open source collaboration team, we have made a major update to dubbo-js!! β€οΈπ
The new architecture is shown below:
![image](https://user-images.githubusercontent.com/533008/103256730-3e745e80-49c9-11eb-81ff-af565efe3d6c.png)
Major update
**[New Features]**
1. The core modules are re-split, abstracted into five core modules: consumer, server, registry, setting, and common
2. Added dubbo-server module to provide a complete basic capability of dubbo tcp server service
3. Added dubbo-server to accept dubbo requests, serialization and deserialization of request parameters
4. Added service registration capability, register to zookeeper and nacos
5. Enhance scheduling of requests by the scheduler, adopt the concept of fast error, improve error information, and be more precise
6. Enhance the underlying debug log of dubbo-server to facilitate quick location of problems
7. Enhance the dubbo url of dubbo-server registered to zk, add side, pid, generic, protocol, dynamic, category, anyhost, timestamp and other parameters
8. Enhanced extension dubbo-server supports middleware middleware mechanism, which can extend the life cycle of the entire call
9. Refactor the serialization implementation of dubbo requests and responses to keep consistent with the upstream version
10. Add an independent heartbeat management module to simplify the communication between consumer and server
11. Added nacos as the registration center
**[Bug fix]**
1. Fix serialization of decodeDubboResponse of dubbo-consumer and deserialization of err object of error response
2. Repair the heartbeat mechanism between the consumer and the server to avoid a large number of heartbeat storms. At present, 3. The server will reply immediately after receiving the heartbeat, and the consumer will check and send periodically.
3. Fix the version setting of dubboVersion of dubbo-consumer, this version should be the protocol version of dubbo protocal, not the version of dubbo library
## project structure
```text
```
$ tree -L 2
.
βββ __tests__ (Unit test code-using jest framework)
βΒ Β βββ async-test.ts
βΒ Β βββ binary-test.ts
βΒ Β βββ byte-test.ts
βΒ Β βββ context-test.ts
βΒ Β βββ decode-buffer-test.ts
βΒ Β βββ directly-dubbo-test.ts
βΒ Β βββ dubbo-hessian-parameter-test.ts
βΒ Β βββ dubbo-server-test.ts
βΒ Β βββ dubbo-test.ts
βΒ Β βββ dubbo-timeout-test.ts
βΒ Β βββ dubbo-url-test.ts
βΒ Β βββ dubbox-test.ts
βΒ Β βββ go-test.ts
βΒ Β βββ heart-beat-test.ts
βΒ Β βββ providers
βΒ Β βββ request-id-test.ts
βΒ Β βββ setting-test.ts
βΒ Β βββ socket-worker-test.ts
βΒ Β βββ version-test.ts
βΒ Β βββ zookeeper-test.ts
βββ common (The underlying public modules are mainly tools)
βΒ Β βββ byte.ts
βΒ Β βββ config.ts
βΒ Β βββ err.ts
βΒ Β βββ go.ts
βΒ Β βββ util.ts
βββ consumer ( service consumer)
βΒ Β βββ directly-dubbo.ts
βΒ Β βββ dubbo-agent.ts
βΒ Β βββ dubbo-url.ts
βΒ Β βββ dubbo.ts
βΒ Β βββ queue.ts
βΒ Β βββ request-context.ts
βΒ Β βββ request-id.ts
βΒ Β βββ scheduler.ts
βΒ Β βββ socket-status.ts
βΒ Β βββ socket-worker.ts
βΒ Β βββ statistics.ts
βββ hessian.d.ts
βββ index.ts
βββ registry registry οΌzookeeper and nacosοΌ
βΒ Β βββ index.ts
βΒ Β βββ registry-nacos.ts
βΒ Β βββ registry-zookeeper.ts
βΒ Β βββ registry.ts
βββ serialization (dubbo protocal serialization)
βΒ Β βββ constants.ts
βΒ Β βββ decode-buffer.ts
βΒ Β βββ decode-hessian2.ts
βΒ Β βββ encode-hessian2.ts
βΒ Β βββ heartbeat.ts
βΒ Β βββ request.ts
βββ server (dubbo service provider)
βΒ Β βββ response-context.ts
βΒ Β βββ server.ts
βΒ Β βββ server_test.ts
βββ setting ( invoke setting such as groupοΌversion)
βΒ Β βββ index.ts
βΒ Β βββ type.ts
βΒ Β βββ types.ts
βββ types.ts
```
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo-js] hufeng closed issue #229: dubbo-js Major update
Posted by GitBox <gi...@apache.org>.
hufeng closed issue #229:
URL: https://github.com/apache/dubbo-js/issues/229
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo-js] rocky-zh commented on issue #229: dubbo-js Major update
Posted by GitBox <gi...@apache.org>.
rocky-zh commented on issue #229:
URL: https://github.com/apache/dubbo-js/issues/229#issuecomment-752952226
good job!
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org