Giter VIP home page Giter VIP logo

Comments (1)

baichangda avatar baichangda commented on September 27, 2024

模拟器概要设计

设计图

QQ20200102-133945

设计说明

组件介绍

  • 任务生成器
    负责执行任务并声称下一次的任务,任务类型包括(生成模拟数据、发送数据、重发失败数据)
  • 模拟数据生成器
    负责生成模拟数据,接收任意参数
  • 数据发送器
    负责发送数据,具体实现为tcp发送器、udp发送器 ...
  • 命令接收器
    负责接收网关的命令并处理
  • 性能指标收集器
    负责采集模拟器各个环节的性能数据,包括(模拟数据条数、发送成功条数、发送失败条数、发送延时 ...)

运行流程介绍

  1. 任务生成器开启模拟数据任务,并创建下一次的模拟数据任务
  2. 模拟数据任务调用模拟数据生成器生成数据并存储到缓存A
  3. 任务生成器开启数据发送任务,并创建下一次的数据发送任务
  4. 数据发送任务从缓存A中读取数据并调用数据发送器发送数据
  5. 根据数据发送器响应的结果,将发送失败的数据存储到缓存B任务生成器开启数据重发任务,并创建下一次的数据重发任务(此步骤可根据需要停用)

接口设计

QQ20200102-140843

from methane.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.