Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ZoomQuiet opened this issue Nov 24, 2014 · 0 comments
Open

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

ZoomQuiet opened this issue Nov 24, 2014 · 0 comments

Comments

@ZoomQuiet
Copy link
Member

背景

分析

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

方案

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

  • 单点服务,多点签到:
    • 本地局域网络
    • 启动一个数据服务
    • 其它网页使用无认证 RESTful 接口进行读写签到数据
  • 多点服务,多点签到,定期合并
    • 本地局域网络
    • 每个签到客户端,都能启动一个数据服务
    • 通过 UTP 协议,进行快速广播数据变化
    • 根据时间戳,进行签到唯一性识别
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant