| WebRTC(Web Real-Time Communications)system,which is independent of third-party plug-ins and platform,has the advantages of cross-platform compatibility,high-quality user experience,standardization and low developing cost.Applied to more and more areas such as business management,education,mobile health and entertainment,WebRTC technology shows a great prospect of the future communication system.However,to solve the concurrency issue caused by growing number of users,a new architecture is needed to improve the reliability.Server cluster,which is used to coordinate communications resources,expand capacity and balance load,has the advantages of high performance,high scalability,high reliability and low cost.Analyzing the requirements of WebRTC application,this thesis proposed a solution of high reliable system with load balancing and failover technology.This thesis designs and implements the high reliable WebRTC system.Clustering is implemented,socket connection is established between any two WebRTC servers to guarantee the communication between users on different servers.Local cache and central data server are both used to inquire user information,which improves the concurrent processing capacity.By adding a central management node to monitor the status of WebRTC servers and balance the load with specific strategy,utilization of resources is increased.This thesis also provide a solution for server crash by using failover mechanism.Test results show that the function of WebRTC system can be achieved,and high reliability is proved. |