Rewrite for apache/dubbo-php-framework #26
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changelog:
Rewrite the entire code, have better readability, and expand (help more people join in)
Introduce composer for management loading, which is beneficial for installation and use as a component of other frameworks.
The original agent module was changed from c + redis to php to reduce component dependencies.
Provider, consumer, agent and other configuration files are independent of each other, and the storage location is customized.
Both provider and consumer support serialization of hessian2 data.
Configuration file format changed from ini to yaml, reducing redundant fields and improving readability.
Remove log4php log component, provide external log component implementation interface for custom implementation.
The provider module introduces annotations to register existing code as a dubbo service without modification, without intrusion.
The swoole_server configuration and callback function can be customized by the user, which is helpful for users to optimize the service according to the current application scenario.
The TCP connection is maintained while consuming the same ip: port provider.
The returned hessian serialized data is transformed from a complex object into an array after parsing.
The data collected by monitor is more complete
重写了全部代码,拥有更好的可读性(有利于更多的人参与进来)。
引入composer进行管理加载,利于安装及作为其他框架的一个组件使用。
原有的agent模块由 c代码+redis 改为 纯php实现, 减少组件依赖,利于使用。
provider,consumer,agent等配置文件互相独立,存放位置自定义。
provider,consumer都支持了hessian2数据序列化。
配置文件格式由ini改为yaml,减少冗余字段,可读性更高。
去除log4php日志组件, 对外提供日志组件实现接口,用户可进行自定义实现。
provider模块引入注解可将现有代码基本无需修改即可注册为dubbo服务, 无侵入。
swoole_server配置及回调函数用户可自定义,利于使用者根据当前应用场景优化服务。
消费同ip:port提供者时,保持了TCP连接。
返回的hessian序列化数据解析后由复杂的对象转为了数组。
monitor 收集的数据更加完整。
wiki: https://github.com/crazyxman/dubbo-php-framework/wiki/%E4%B8%AD%E6%96%87