基于服务器集群的推送技术的研究与应用
发布时间:2018-11-07 19:52
【摘要】:随着互联网技术的不断发展,WEB应用应运而生。Web应用中一个重要的研究方面就是如何使用服务器的主动推送来完成客户端和服务器之间信息的交互,服务器推送技术(Comet)也就随之被提出。服务器推送技术有很多的种类,DWR(Direct Web Remoting,远程web命令)是其中较为成熟和适用范围比较广的技术。DWR是基于连接的,即服务器端和浏览器之间需要保持一个连接,进而进行通信。随着网络用户量的不断增多,服务器需要维护的连接数也随之增多,但是每台服务器只能维护一定数量的连接,因此在具体应用的时候我们还要考虑到利用集群技术来完成大量用户的连接的维护,进而完成服务器的推送。 本文中介绍了服务器的推送原理及相关技术,并且选择DWR作为本文的推送技术的主要研究对象。描述了DWR这种框架的具体操作原理,类库等,并且将DWR与时下最为流行的MVC(Model-View-Controller)框架进行融合配置,提供一个高可用性的WEB编程框架。除此之外,还研究了服务器集群的相关知识,在此基础上设计了一种动态的负载均衡算法,该算法可以根据集群的实时负载信息动态的处理请求,使得集群能够长时间的在一个负载均衡的情况下工作并且保持其高效性。本文将DWR的推送应用于该负载均衡的服务器集群上,以实现基于该集群的服务器推送技术。主要技术包括DWR如何推送信息和消息如何在集群的服务器之间进行同步。最后,将该技术应用于一个实际的WEB应用开发——企业微博中,讨论了DWR推送和集群及其负载均衡技术在这个系统中的应用,进一步验证这种基于集群的DWR推送技术的可用性。
[Abstract]:With the continuous development of Internet technology, WEB applications emerge as the times require. One of the important research aspects of Web applications is how to use the active push of the server to complete the information exchange between the client and the server. Server push technology (Comet) is also proposed. Server push technology there are many kinds of, DWR (Direct Web Remoting, remote web commands) is one of the more mature and widely used technology. DWR is connection-based, that is, the server and browser need to maintain a connection, Then the communication is carried out. With the increasing number of network users, the number of connections the server needs to maintain also increases, but each server can only maintain a certain number of connections. Therefore, in the specific application, we should consider the use of cluster technology to complete the maintenance of a large number of user connections, and then complete the push of the server. This paper introduces the push principle and related technology of server, and chooses DWR as the main research object of push technology in this paper. This paper describes the operation principle and class library of DWR framework, and combines DWR with the most popular MVC (Model-View-Controller) framework to provide a high availability WEB programming framework. In addition, the related knowledge of server cluster is studied, and a dynamic load balancing algorithm is designed, which can deal with the request dynamically according to the real-time load information of the cluster. Enables the cluster to work for a long time in a load-balanced environment and to maintain its efficiency. In this paper, the push of DWR is applied to the load balanced server cluster to realize the server push technology based on the cluster. The main technologies include how DWR pushes information and how messages synchronize between clustered servers. Finally, this technology is applied to an actual WEB application development enterprise Weibo. The application of DWR push, cluster and its load balancing technology in this system is discussed, and the usability of this cluster-based DWR push technology is further verified.
【学位授予单位】:南京理工大学
【学位级别】:硕士
【学位授予年份】:2014
【分类号】:TP393.05
本文编号:2317401
[Abstract]:With the continuous development of Internet technology, WEB applications emerge as the times require. One of the important research aspects of Web applications is how to use the active push of the server to complete the information exchange between the client and the server. Server push technology (Comet) is also proposed. Server push technology there are many kinds of, DWR (Direct Web Remoting, remote web commands) is one of the more mature and widely used technology. DWR is connection-based, that is, the server and browser need to maintain a connection, Then the communication is carried out. With the increasing number of network users, the number of connections the server needs to maintain also increases, but each server can only maintain a certain number of connections. Therefore, in the specific application, we should consider the use of cluster technology to complete the maintenance of a large number of user connections, and then complete the push of the server. This paper introduces the push principle and related technology of server, and chooses DWR as the main research object of push technology in this paper. This paper describes the operation principle and class library of DWR framework, and combines DWR with the most popular MVC (Model-View-Controller) framework to provide a high availability WEB programming framework. In addition, the related knowledge of server cluster is studied, and a dynamic load balancing algorithm is designed, which can deal with the request dynamically according to the real-time load information of the cluster. Enables the cluster to work for a long time in a load-balanced environment and to maintain its efficiency. In this paper, the push of DWR is applied to the load balanced server cluster to realize the server push technology based on the cluster. The main technologies include how DWR pushes information and how messages synchronize between clustered servers. Finally, this technology is applied to an actual WEB application development enterprise Weibo. The application of DWR push, cluster and its load balancing technology in this system is discussed, and the usability of this cluster-based DWR push technology is further verified.
【学位授予单位】:南京理工大学
【学位级别】:硕士
【学位授予年份】:2014
【分类号】:TP393.05
【参考文献】
相关期刊论文 前10条
1 费日东;李定主;;服务器推送技术研究[J];电脑知识与技术;2012年07期
2 张前进;齐美彬;李莉;;基于应用层负载均衡策略的分析与研究[J];计算机工程与应用;2007年32期
3 郭成城,晏蒲柳;一种异构Web服务器集群动态负载均衡算法[J];计算机学报;2005年02期
4 丁振国;朱建新;;基于服务类型的动态反馈负载均衡算法[J];计算机应用研究;2009年05期
5 封志明;马楚又;;基于XML的CAPP系统设计模式研究[J];机械设计与制造;2011年09期
6 田秀彦;李忠;罗士美;邓力强;;基于Struts+Hibernate+Spring的整合架构及其在Web开发中的应用[J];计算机与现代化;2008年11期
7 李坤;王百杰;;服务器集群负载均衡技术研究及算法比较[J];计算机与现代化;2009年08期
8 罗拥军;李晓乐;孙如祥;;负载均衡算法综述[J];科技情报开发与经济;2008年23期
9 李谱华;;浅析MVC设计模式及其应用[J];科技信息;2010年16期
10 陈遥;李珊;赵英男;;基于SSH+DWR的Web开发框架研究与应用[J];南京信息工程大学学报(自然科学版);2010年05期
,本文编号:2317401
本文链接:https://www.wllwen.com/guanlilunwen/ydhl/2317401.html