基于WebSocket协议的消息安全推送系统设计与实现  

Design and implementation of a secure message feeding system based on WebSocket protocol

在线阅读下载全文

作  者:徐智勇 戴祖旭 XU Zhiyong;DAI Zuxu(School of Optical Information and Energy Engineering,School of Mathematics and Physics,Wuhan Institute of Technology,Wuhan 430205,China)

机构地区:[1]武汉工程大学光电信息与能源工程学院、数理学院,湖北武汉430205

出  处:《武汉工程大学学报》2024年第3期310-316,共7页Journal of Wuhan Institute of Technology

基  金:国家自然科学基金(61771353)。

摘  要:为节约应用系统的带宽资源,提高客户端接收消息的可靠性和安全性,设计了一个独立的消息安全推送系统,提供开放的接口供应用系统调用。客户端向应用系统请求有时延风险的业务时,首先触发与推送系统的WebSocket连接,获取客户标识和密钥,然后携带标识再次与应用系统发起HTTP连接办理业务。在耗时业务处理过程中,客户端无需与应用系统保持长连接。应用系统完成业务后,将响应消息连同客户标识通过HTTP连接转发给推送系统缓存。推送系统将多位客户的响应消息打包加密成一条密文推送到客户端,客户端解密得到请求的业务结果。推送系统基于Golang语言和MySQL数据库实现,对外提供符合表述性状态转移(REST)架构的通用接口。功能测试结果表明,客户端能准确接收来自推送系统的消息,实现了预期功能。To save the bandwidth resources of the application system and improve the reliability and security of messages received by clients,an independent message security feed system was designed to provide an open interface for the application system to call on.When a client requests a time-delayed risky business from the application system,the system first triggers a WebSocket connection with the feed system to obtain the client identification and key,and then carries the identification to initiate an hyper text transfer protocol connection with the application system again to handle the business.During the time-consuming business processing,the client does not need to maintain a long connection with the application system.Once the application system completes its business,it sends the response message,along with the client identification,to the feed system via an hyper text transfer protocol connection.The feed system packages and encrypts the response messages of multiple clients into a cipher text and feeds it to the clients,who decrypts it to get the requested business results.The feed system was implemented using the Golang language and MySQL database,and provides a generic interface that conforms to the representational state transfer(REST)architecture for external access.Functional tests results show that the client can accurately receive messages from the feed system and achieve the expected functions.

关 键 词:消息推送 机密性 时延 WebSocket协议 

分 类 号:TP317[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象