后端架构
DataMate Java 后端架构设计
开发者指南介绍 DataMate 的技术架构、开发环境和贡献流程。
DataMate 是一个企业级的数据处理平台,采用微服务架构,支持大规模数据处理和自定义扩展。
| 技术 | 版本 | 说明 |
|---|---|---|
| React | 18.x | UI 框架 |
| TypeScript | 5.x | 类型安全 |
| Ant Design | 5.x | UI 组件库 |
| Redux Toolkit | 2.x | 状态管理 |
| Vite | 5.x | 构建工具 |
| 技术 | 版本 | 说明 |
|---|---|---|
| Java | 21 | 运行时环境 |
| Spring Boot | 3.5.6 | 应用框架 |
| Spring Cloud | 2023.x | 微服务框架 |
| MyBatis Plus | 3.x | ORM 框架 |
| 技术 | 版本 | 说明 |
|---|---|---|
| Python | 3.11+ | 运行时环境 |
| FastAPI | 0.100+ | Web 框架 |
| LangChain | 0.1+ | LLM 框架 |
| Ray | 2.x | 分布式计算 |
DataMate/
├── backend/ # Java 后端
│ ├── services/ # 微服务模块
│ ├── openapi/ # OpenAPI 规范
│ └── scripts/ # 构建脚本
├── frontend/ # React 前端
│ ├── src/
│ │ ├── components/ # 公共组件
│ │ ├── pages/ # 页面组件
│ │ ├── services/ # API 服务
│ │ └── store/ # Redux store
│ └── package.json
├── runtime/ # Python 运行时
│ └── datamate/ # DataMate 运行时
└── deployment/ # 部署配置
├── docker/ # Docker 配置
└── helm/ # Helm Charts
git clone https://github.com/ModelEngine-Group/DataMate.git
cd DataMate
# 启动基础服务
make install
# 访问前端
open http://localhost:30000
# 后端开发
cd backend/services/main-application
mvn spring-boot:run
# 前端开发
cd frontend
pnpm dev
# Python 服务开发
cd runtime/datamate
python operator_runtime.py --port 8081
DataMate 采用微服务架构,每个服务负责特定的业务功能:
算子是数据处理的基本单元:
流水线通过可视化编排实现:
算子开发指南:
# 后端测试
cd backend
mvn test
# 前端测试
cd frontend
pnpm test
# Python 测试
cd runtime
pytest
# 启动测试环境
make test-env-up
# 运行集成测试
make integration-test
# 清理测试环境
make test-env-down
这个页面对您有帮助吗?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.