Project

General

Profile

Feature #2732

ISDataServer类订阅方式优化

Added by jiawei mao about 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
12/02/2022
Due date:
% Done:

0%

Estimated time:
Defect version:

Description

1.之前的接口GetCurrentData是通过遍历实时库来获取所有的点数据,比较耗时;
2.改为新接口GetRdbPointData(clientId, PointInfo)可以实现对所有点的订阅,
如果点变化,才在客户端请求时,回复给客户端变化的点数据;减少了对实时库
的低效和大量遍历。


Related issues

Related to ISCS#FEP - Bug #2891: ISDataServer类订阅方式优化Resolved03/22/2023

Actions

History

#1

Updated by jiawei mao about 2 years ago

  • Status changed from New to In Progress
#2

Updated by jiawei mao almost 2 years ago

  • Status changed from In Progress to Resolved

逻辑过程:
web客户端连上ISDataServer后,发送"自身ID+全量点"包给服务端,服务端回复所有全量点包的状态,value等字段给web;
后续如果页面不切换,则web客户端每隔1s发送"自身ID+空包"给服务端,服务端根据变化的点进行组包并回复web。如果web
的页面进行了切换,则继续上述逻辑。

#3

Updated by jiawei mao almost 2 years ago

  • Related to Bug #2891: ISDataServer类订阅方式优化 added

Also available in: Atom PDF