为解决传统基于XML的数据交换平台数据交换效率低以及通用性差的问题,提出基于JSON的“中心+代理”的数据交换模型。采用JSON作为总线技术,数据交换中心作为架构中心,数据交换代理节点提供代理服务的星型结构模式,在数据交换代理节点之间建立可靠的连接,利用数据交换中心对JSON信息流进行上传、下栽以及实时的监控。模拟实验结果表明,用JSON取代XML作为信息流,提高了数据交换的效率。
To solve the problem of the low data transfer rate and the poor versatility of traditional data-exchange model based on XML, a data exchange model based on JSON and "Center +Agent" was proposed. JSON was used as bussing technique, data exchange center was taken as the architecture center, and data exchange agent node provided the star-structure mode of agenl services. A reliable connection among data exchange agent nodes was established, using data exchange center for uploading and downloading and real-time monitoring of JSON information flow. Results of simulation experiments show that using JSON to re- place XML greatly improves the efficiency of data exchange.