Skip to content

[思考]离线签到的多机并行 #5

Description

@ZoomQuiet

背景

分析

  • 静态的 cvs 样数据, 转换为 JSON 数据加载到网页
  • 同样的接口, 就可以将 cvs 静态数据变化为 RESTful 本地服务
  • 多种客户端同时签到
  • 嘦确保:
    • 识别重复签到
    • 记录首次签到客户端编号
    • 多机或是单机签到数据可快速合并导出为抽奖用数据

方案

建议根据简单优先来考察:

  • 单点服务,多点签到:
    • 本地局域网络
    • 启动一个数据服务
    • 其它网页使用无认证 RESTful 接口进行读写签到数据
  • 多点服务,多点签到,定期合并
    • 本地局域网络
    • 每个签到客户端,都能启动一个数据服务
    • 通过 UTP 协议,进行快速广播数据变化
    • 根据时间戳,进行签到唯一性识别

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions