Title: apijson json服务编排 · Issue #482 · APIJSON/APIJSON · GitHub
Open Graph Title: apijson json服务编排 · Issue #482 · APIJSON/APIJSON
X Title: apijson json服务编排 · Issue #482 · APIJSON/APIJSON
Description: Description @TommyLemon 功能描述: 一个服务编排的伪码流程设计 将伪码转换为 apijson json、前置、后置函数、javascript、redis、elasticSearch等 并且能够mork每一步,执行中间流程,还能查询每个阶段执行的sql语句,及结果. json格式: { "@transaction": true, "id@-()": "getCurrentUserId()", // 前置函数 "@post": [ "xxx" ], ...
Open Graph Description: Description @TommyLemon 功能描述: 一个服务编排的伪码流程设计 将伪码转换为 apijson json、前置、后置函数、javascript、redis、elasticSearch等 并且能够mork每一步,执行中间流程,还能查询每个阶段执行的sql语句,及结果. json格式: { "@transaction": true, "id@-()": "getCurren...
X Description: Description @TommyLemon 功能描述: 一个服务编排的伪码流程设计 将伪码转换为 apijson json、前置、后置函数、javascript、redis、elasticSearch等 并且能够mork每一步,执行中间流程,还能查询每个阶段执行的sql语句,及结果. json格式: { "@transaction": true, "id@-...
Opengraph URL: https://github.com/APIJSON/APIJSON/issues/482
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"apijson json服务编排","articleBody":"### Description\r\n\r\n@TommyLemon \r\n功能描述:\r\n一个服务编排的伪码流程设计\r\n将伪码转换为 apijson json、前置、后置函数、javascript、redis、elasticSearch等\r\n并且能够mork每一步,执行中间流程,还能查询每个阶段执行的sql语句,及结果.\r\n\r\njson格式:\r\n```js\r\n{\r\n \"@transaction\": true, \r\n \"id@-()\": \"getCurrentUserId()\", // 前置函数\r\n \"@post\": [\r\n \"xxx\"\r\n ], \r\n \"xxx\": {\r\n \"@method\": \"xxx\",\r\n \"@version\": \"\", // 版本,控制校验\r\n \"@datasource\": \"\" // 数据源相关配置\r\n // 分表规则等,后面再说\r\n }\r\n\"@explain\": true\r\n}\r\n```\r\n\r\n1、独立定义一个url method, 通过解析不同method执行不同流程\r\n和已有method区分开,避免歧义\r\n2、最外层新增传参 \"transaction\": true 来指定开启事务\r\n3、控制每条语句的数据源\r\n4、完善 “@Explain\"\r\n如果没有执行计划,则返回sql语句. 能够在 reponse返回值中, 看到json中执行的每条sql,方便排错\r\n5、@version支持\r\n定义不同场景的 新增、修改、删除等执行规则. 请通过version版本区分\r\n6、前置函数\r\n1) 要能拿到其他数据源\r\n2) 能拿到json执行过程中的数据\r\n3) 拿到当前数据源(和外部json一个事物执行)\r\n4) 从数据库/或其他数据源 查询获取对照关系\r\n组装数据, 调用对应数据源的api方法执行即可\r\n5) 前置函数,能调用其他函数\r\n把一些计算, 执行,计算 等 放到一个函数进行整合\r\n还没细化\r\n7、支持mork\r\n通过伪码,分解为不同 阶段 的json语句执行\r\n\r\n测试点:\r\n1、测试 一个json多条语句,后置函数啥时候执行\r\n2、操作其他数据源, 事物是json执行完才会提交, 需要保证一致性\r\n3、redis、elasticSearch、javascript、lua等功能测试\r\n","author":{"url":"https://github.com/cloudAndMonkey","@type":"Person","name":"cloudAndMonkey"},"datePublished":"2022-11-26T14:13:28Z","url":"https://github.com/APIJSON/APIJSON/issues/482"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b2d86d97-cab2-572d-430f-7037ae208259 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 88EE:3B38CF:8D87F2:C8E74A:6AFCB10E |
| html-safe-nonce | 228e6dc86482140e3a29748c5d73401d0258b9bc66b7378dca701dbf4cbb1365 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OEVFOjNCMzhDRjo4RDg3RjI6QzhFNzRBOjZBRkNCMTBFIiwidmlzaXRvcl9pZCI6Ijc5NDA4MjE2NzM2NTU5NzIxMTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 228c9141d32554ba30c1fa2196a1c6d315c73dadee44955c2aa5fe34435ca52d |
| hovercard-subject-tag | issue:1465165908 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/APIJSON/APIJSON/482/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bc841a5fa0c115ac01bbf77bc5a4933a78a504d8bfb21c41dc5bdfdad4005cfc/APIJSON/APIJSON/issues/482 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bc841a5fa0c115ac01bbf77bc5a4933a78a504d8bfb21c41dc5bdfdad4005cfc/APIJSON/APIJSON/issues/482 |
| og:image:alt | Description @TommyLemon 功能描述: 一个服务编排的伪码流程设计 将伪码转换为 apijson json、前置、后置函数、javascript、redis、elasticSearch等 并且能够mork每一步,执行中间流程,还能查询每个阶段执行的sql语句,及结果. json格式: { "@transaction": true, "id@-()": "getCurren... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cloudAndMonkey |
| hostname | github.com |
| expected-hostname | github.com |
| None | e3084aead77cbcb4f4904fba53851fa1a0546b0dec3619bd250815e72588dc6d |
| turbo-cache-control | no-preview |
| go-import | github.com/APIJSON/APIJSON git https://github.com/APIJSON/APIJSON.git |
| octolytics-dimension-user_id | 41146037 |
| octolytics-dimension-user_login | APIJSON |
| octolytics-dimension-repository_id | 74359442 |
| octolytics-dimension-repository_nwo | APIJSON/APIJSON |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 74359442 |
| octolytics-dimension-repository_network_root_nwo | APIJSON/APIJSON |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5410e4bebd3e45b138c853ecef3992279d86d5af |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width