0

doge | 架构设计

 2 years ago
source link: https://benpaodewoniu.github.io/2022/08/23/doge1/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

doge | 架构设计

2022-08-23项目经历中型doge基础

2

我的目的是创建一个低耦合的土狗系统。

其必须具备以下特点

  • 模块间具备完全独立性
  • 公有化代码抽成模块
  • 代码具备高度自由性
  • 新的项目可以根据已有的模块进行快速插建
  • 项目的扩展性要非常好

本文将从全局来阐述,doge 是如何做到上述优势的。

  • ubuntu
  • python
1_0.svg

项目目前有 3 个引擎。

  • 主引擎
    • 调用其他引擎,起到入口和中间传递的作用
  • 模块引擎
    • 写独立的模块服务
  • 项目引擎
    • 以特定的项目来做每一个服务
    • 服务通过顺序调取的方式来调用模块引擎中的独立服务代码

上面的架构目前来看是非常成功的。

比如,当我把 EVM 的模块方法写好之后,我可以几秒钟的时间就能搭建好 ETHBSCEVM 链的冲土狗方法。

整个架构的参数传递还是需要看源代码的,有机会的话,我会看情况开源的。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK