lenboo edited a comment on issue #4325:
URL: 
https://github.com/apache/incubator-dolphinscheduler/issues/4325#issuecomment-751674235


   #### 2. Refactoring api: use new structure completely, add new functionality 
to service without modifying controller
   
   
   
   - 1. Implement code encoding scheme
       - suggestion: snowflake + check
   
   `When need to add a new code, use snowflake algorithm (IP is worker)_ ID / 
or a fixed ID) to get a new code, check whether the code exists in the 
database, if so, regenerate the code, and then check...`
   
   - 2. Refactoring workflow data related processing interfaces, including 
version processing (query, new, modify, delete, import, export, offline...)
   
   - 3. Refactoring workflow instance data related processing interfaces 
(query, modification, Gantt chart)
   
   - 4. Refactoring job instance query interface
   
   - 5. Rebuild workflow instance, job instance related statistics interface 
(UI system homepage, project homepage statistics, related monitoring data)
   
   - 6. Job management related interfaces, including version management (add 
delete check, go online...)
   
   ### 2. 重构api:全部使用新结构, service中新增功能,不用修改controller
   
    - 1. 实现code编码方案
      - 雪花+检查
       
`在需要新增code的时候,使用雪花算法(ip为worker_id/或是一个固定id)获取一个新的code,在数据库中检查此code是否存在,如果存在,重新生成code,再进行检查。。。`
    - 2. 重构工作流数据相关处理接口,包含版本处理(查询、新建、修改、删除、导入、导出、上下线...)
    - 3. 重构工作流实例数据相关处理接口(查询、修改、甘特图)
    - 4. 重构作业实例查询接口
    - 5. 重构工作流实例、作业实例相关统计接口(UI系统首页、项目首页统计数据、相关监控数据)
    - 6. 作业管理相关接口,包含版本管理(增删改查,上下线...)


----------------------------------------------------------------
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:
[email protected]


Reply via email to