高级检索

一种移动互联网序列化数据的传输优化方法

An Optimization Method of Serialized Data Transmission for Mobile Internet

  • 摘要: 数据在移动互联网上通常被序列化成键值对形式实现传输。服务端向移动客户端返回数据集时,键值对的键因按照特定代码规范命名,导致其字符串过长;当移动终端发出复杂查询请求时,将所有查询条件合并为一个查询字符串后发送给服务端,因此,结构化的查询语句关键词被重复传输。针对上述两个增加网络延时、消耗用户流量的问题,在开发架构层面提出一种移动互联网上序列化数据传输优化方法,对实体类属性进行编码,以减少响应结果集的数据量;在复杂查询时,以键值对保存移动客户端发出的查询数据,服务端接收到该数据后只需解析对应的值,再通过一般处理程序中的特定函数即可获得查询内容。实验结果显示该优化传输方法可有效地减少交互数据量和网络响应时间。

     

    Abstract: Data is usually serialized to key-value pairs to transmission in the mobile internet. When the server returns data sets to mobile client, keys in the key-value pairs are named by the specific code standard, which causes the string too long; And when the mobile terminal sends out complex query requests, all the query conditions are merged into one query string, then sent to the server. Therefore, the structured query keywords are transmitted repeatedly. In order to solve the two problems of network latency increase and user traffic consumption mentioned above, an optimization method of serialized data transmission for mobile internet is proposed to code the attribute of entity class to reduce the amount of data of response result sets. When complex query is performed, query data are saved by key-values pairs for mobile client, the server just need to parse the corresponding value after the data received, the query content can be obtained through the specific function in the general processing procedure. The experimental results show that the optimized transmission method can effectively reduce the size of interaction data and the time of network response.

     

/

返回文章
返回