一种基于WebSocket与Nginx和RabbitMQ的负载均衡设计方案  被引量:3

A Load Balancing Design Scheme Based on Websocket Nginx and RabbitMQ

在线阅读下载全文

作  者:崔伟灿 陈佳伊 陈卓 叶铭阳 

机构地区:[1]浙江中控技术股份有限公司,浙江杭州310053

出  处:《工业控制计算机》2022年第12期57-58,共2页Industrial Control Computer

摘  要:在B/S架构下,为解决工业控制系统服务器的集群化设计需求,介绍了一种基于WebSocket、Nginx、RabitMQ的负载均衡方案。前端软件与后端任一服务实例建立WebSocket长连接,该服务实例接收到请求后,通过RabbitMQ与集群中各服务实例交互,将请求派送到具体的服务实例处理,最后将处理结果返回至前端软件。该设计方案可满足前后端以WebSocket为长连接的情况下,后端服务的集群化设计需求。Under the B/S architecture,in order to meet the cluster design requirements of industrial control system servers,this paper introduces a load balancing scheme based on WebSocket,Nginx and RabitMQ.The front-end software establishes a long WebSocket connection with any back-end service instance.When the service instance receives the request,it interacts with each service instance in the cluster through rabbitmq,sends the request to the specific service instance for processing,and finally returns the processing result to the front-end software.Through this design scheme,it can meet the scenario of long WebSocket connection at the front and back ends,cluster design requirements of back-end services.

关 键 词:WebSocket 负载均衡 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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