Font Size: a A A

Design And Implementation Of Server-sidegeneral Modules Based On Erlang/OTP

Posted on:2021-03-25Degree:MasterType:Thesis
Country:ChinaCandidate:Y LuFull Text:PDF
GTID:2428330602481488Subject:Software engineering
Abstract/Summary:PDF Full Text Request
With the constant popularization of mobile devices and the continuous development of Internet technology,as well as the growing demand for more kinds of entertainment,the multiplayer games industry based on mobile devices has gradually become one of the extremely fast-growing industries,and the server side is one of the most important part of a multiplayer game which helps take on the task of serving many clients.The Erlang/OTP-based game servers are now popular with many game projects due to its ability to handle concurrent problems,plus their reliable network services,and rapid iteration.Based on practical applications,combining the problems faced in the internship work and experience that accumulated from it,this paper discusses a feasible Erlang/OTP-based game server-side architecture.Based on the architecture,it attempts to design and implement some unavoidable common modules for most server-sides of multiplayer games.Including:loading method of parameter configuration table using local cache ETS;An easy-to-expand database cluster,a convenient and easy-to-expand data access method based on emysql and ProtoBuf which can be used in a database proxy server;one of the most popular behavior model gen_server and its application in the slow write mechanism and ID allocation;improvements in distributed cache routing algorithms,data elimination strategies,and implementation of cache core modules.With the support of these common modules,it can basically realize the needs of most game servers for constant parameter loading,permanent data storage,caching data,and convenient function expansion.Then the business logic part of the games can be easily expanded according to the needs of the game designers,and the games will be of more fun.Verified by online game,this set of common modules can provide powerful help for many actual game business function logics.
Keywords/Search Tags:game server, Erlang/OTP, server architecture, distributed cache
PDF Full Text Request
Related items