| At present,the online game industry has become an important Internet economy,and its development has driven the prosperity and development of China's Internet economy to a certain extent.The SNS game in the mobile Internet environment is the mainstream form of current mobile terminal game applications,along with mobile terminals.With the continuous improvement of hardware performance,a large number of large-scale SNS mobile games have appeared.However,from the perspective of the running effects of these games,even on some high-performance hardware platforms,the performance of Caton is often poor.In this context,the SNS game server and client based on Erlang/otp distributed technology are built to otpimize the traditional Erlang/otp parallel distributed framework.In the mobile Internet SNS game design,to improve the running performance and experience of SNS games,the main research contents of this paper are as follows:1)Study the principle of Erlang/otp framework,analyze the performance bottleneck of Erlang/otp in the process of concurrent processing of mobile SNS games,otpimize the Erlang/otp framework from message machine and scheduling mechanism and memory access.The scheme is designed by independent agent process technology,which has no impact on the processing of Erlang/otp itself.It can be easily integrated into the original framework,and the experimental comparison analysis is designed.The result shows that the otpimized scheme Effectively improve the performance and efficiency of its application and mobile Internet SNS game processing.2)The design and implementation of the mobile Internet SNS game server based on the otpimized Erlang/otp framework is completed.The demand model is developed through in-depth analysis of its application scenarios,and the overall scheme design of the high-performance concurrent SNS game server is given.The Erlang/otp node parallel processing mode is adotped in the overall scheme to realize the design and implementation of the game core cluster server,Riak cluster server,ranking server and SNS server,and the specific design implementation scheme is given.3)The design and implementation of the mobile Internet SNS game client based on the otpimized Erlang/otp framework is completed.The overall scheme design ofthe client is given based on the android platform.Two efficient communication methods are constructed based on internal nodes and external nodes.It provides reliable and efficient communication services for the entire client and server,and gives the design and implementation of the four core functions of the client's chat interaction,ranking interaction,SNS game business and account management.4)The test platform is built based on the design of client and server,and the running effect analysis of the entire Erlang/otp framework-based game is completed.The performance analysis tool is used to test and evaluate its performance.The function is verified.The results show that the Erlang/otp framework-based mobile Internet SNS game server and client framework designed and constructed in this paper can meet the design requirements of SNS games in the current mobile Internet environment,and improve the SNS.The performance and experience of the game is very important and valuable. |