Gobrs-Async Gobrs-Async
首页
指南
FAQ
💖支持
GitEE (opens new window)
GitHub (opens new window)
首页
指南
FAQ
💖支持
GitEE (opens new window)
GitHub (opens new window)
  • 指南

    • 简介
    • 框架设计
    • 快速上手
      • 如何运行 Demo
        • 配置文件
    • SpringBoot
    • 规则配置
    • 动态任务
    • 全局任务拦截
    • 异常拦截
    • 任务中断
    • 自定义线程池
    • 框架落地
    • 展望
  • 性能考量

    • 框架压测
    • 版本号手册
  • 联系作者

    • 加群沟通

快速上手

# 如何运行 Demo

克隆 Gobrs-Async 源代码 (opens new window)

启动 Gobrs-Async-Example (opens new window) 模块下 GobrsAsyncExampleApplication 应用类

通过接口修改线程池中的配置。HTTP GET 路径:http://localhost:8888/gobrs/testGobrs,查看Idea 控制台 打印结果如下:

EService 成功
{"result":"我是EService 的 结果 恭喜你拿到"}
AService 执行完了
AService 成功
CService 成功
总耗时1563

# 配置文件

server:
  port: 8888 # 端口: 8080
spring:
  gobrs:
    async:
      rules:
        # 支持多命名空间
        - name: "ruleName" # 规则名称
          content: "AService->BService,CService,FService; BService->FService,GService;"
        - name: "azh"
          content: "AService->BService,CService,FService; BService->FService,GService;"
      task-interrupt: false #局部异常是否打断主流程
框架设计
SpringBoot

← 框架设计 SpringBoot→

Theme by Vdoing | Copyright © 2021-2022 Memorydoc | Apache License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式