{"id":28729764,"url":"https://github.com/didi/tg-flow","last_synced_at":"2025-06-15T17:11:00.333Z","repository":{"id":200938265,"uuid":"706541588","full_name":"didi/tg-flow","owner":"didi","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-19T02:34:15.000Z","size":930,"stargazers_count":27,"open_issues_count":3,"forks_count":4,"subscribers_count":14,"default_branch":"main","last_synced_at":"2024-09-19T14:16:55.012Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/didi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-18T06:45:54.000Z","updated_at":"2024-09-19T02:33:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"c6326eb7-ac98-4fa1-b78e-960cbbc95ed3","html_url":"https://github.com/didi/tg-flow","commit_stats":null,"previous_names":["didi/tg-flow"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/didi/tg-flow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didi%2Ftg-flow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didi%2Ftg-flow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didi%2Ftg-flow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didi%2Ftg-flow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/didi","download_url":"https://codeload.github.com/didi/tg-flow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didi%2Ftg-flow/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260016055,"owners_count":22946321,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-15T17:10:59.149Z","updated_at":"2025-06-15T17:11:00.311Z","avatar_url":"https://github.com/didi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tg-flow简介\ntg-flow是一个专注于在线高并发场景的工作流引擎，它综合运用了多种优化算法，可以在高并发场景下轻松地支持由100多个节点组成的复杂工作流的调度，目前已经广泛运用于滴滴内部多个日流量数十亿的核心在线高并发系统。\n\ntg-flow 相关的开源仓库总共将包括3个部分:\n* tg-flow:    工作流引擎核心模块，提供高并发场景下的复杂工作流的调度执行能力。\n* tg-example: 为便于用户快速上手而提供的一个示例项目，如果用户本地有安装golang环境，下载后直接go run main.go即可运行。[点此了解 tg-example](https://github.com/didi/tg-example)\n* tg-service: 后台管理系统，辅助用户对工作流进行配置管理及发布上线，此部分非tg-flow的强依赖模块，尚在整理中，待完善后再提交。\n\n# 我们的目标\n受限于在线高并发场景的高性能要求，传统工作流引擎很难支持在线高并发系统。 我们的目标是实现一个既能够满足在线高并发场景的性能要求，又具备传统工作流引擎各种复杂功能的工作流引擎。\n\n# 产品特色\n## 性能特色：\n* tg-flow综合使用了多种高效的算法，可以在单机环境下轻松支持100多个串并行节点组成的复杂工作流的调度，除去业务逻辑之外的引擎本身的耗时仅0.1ms左右。\n## 功能特色：\n* 适用面广：可适用于所有在线高并发场景，典型的如搜索引擎、广告引擎、推荐引擎等。目前已经在滴滴内部多个日流量数十亿的核心在线系统中使用。\n* 功能强大：\n  1. 支持不限层次嵌套的串、并行混合的工作流。\n  2. 支持条件分支，支持多（N\u003e2）条件枚举分支，支持分支节点中带动态（工作流执行过程中动态赋值的）参数。\n  3. 支持不限层级的父子工作流嵌套。\n  4. 支持对工作流内部节点和分支进行各种超时控制，如：节点内部超时控制、节点间的超时控制、子工作流节点的超时控制，支持节点超时回调。\n  5. 提供基于工作流引擎的在线问题诊断能力，可以通过在用户界面点击工作流节点显示节点中间输出结果。\n* 集成灵活：\n  1. 如果只想使用tg-flow的调度功能，这种情况下只需要自己按工作流DSL语法完成工作流配置文件的编写，然后放入自己在线系统的目录中，在线系统进行工作流引擎初始化时加载上述配置文件即可。\n  2. 进一步地，如果你想使用tg-flow的工作流配置管理功能，可以照着用户手册搭建web服务，在web界面上以拖拽方式构建工作流，然后在系统管理页导出工作流配置文件压缩包，解压后放入自己的在线系统的目录中。\n  3. 再进一步，如果需要使用tg-flow所有功能，可以在第二步的基础上，自行部署redis或zookeeper，然后在线系统中可以使用tg-core中的核心模块定期从redis或zookeeper中检测工作流新版本，并及时更新到在线系统。\n  \n# 用户手册\n   [用户手册](https://github.com/didi/tg-example/blob/main/user_manual.md)\n  \n# 欢迎加入\n  请联系：[张云锋](https://github.com/dayunzhangyunfeng), [周子纯](https://github.com/zhouzichun0315), [唐桂尧](https://github.com/tgy931)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdidi%2Ftg-flow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdidi%2Ftg-flow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdidi%2Ftg-flow/lists"}