3

Rhino | 量化架构 伪微服务架构 2.0.0

 1 year ago
source link: https://benpaodewoniu.github.io/2022/09/23/tomoon41/
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

Rhino | 量化架构 伪微服务架构 2.0.0

之前的架构请看

这个架构融合了很多开源项目的精髓。目前,这套架构还在开发中。

2.0.0Rhino 受影响最大的就是 aioquant,看了 aioquant 的组织架构后,完全被惊呆,其中的异步编程和各个模块的简洁调用让我快速的吸收,然后重构了新架构量化。

之所以是伪微服务,是因为,我把 1.0.0 的共用代码抽成了一个个库,可以通过 pip 安装的那种。微服务讲究把各个模块部署到不同的服务器上,然后进行相互调用,但是,我这个架构还是将所有的模块放到了一台服务器上,主要是模块间的抽离。

虽然放到一个模块中,但是,独立的库也可以放置在不同的服务器上运行,然后调用,就看怎么用了。因为放置在同一台服务器上,所以,我称之为伪微服务。

  • Rhino-Object
    • 用来放置各种各种 Rhino 对象、枚举
  • Rhino-Logger
  • Rhino-Util
    • 独立的计算模块
  • Rhino-Scripts
    • 各种独立的脚本
  • Rhino-Collects
    • 融合了 restfulwebsocket 的异步数据采集模块
  • Rhino-Strategy

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK