Font Size: a A A

Design And Implementation Of Game Server Engine Based On Erlang

Posted on:2019-07-01Degree:MasterType:Thesis
Country:ChinaCandidate:Q Y YuFull Text:PDF
GTID:2438330548473619Subject:Computer technology
Abstract/Summary:PDF Full Text Request
With the popularity of 4G high-speed mobile networks and the widespread use of smart phones,more and more large-scale mobile applications have emerged.The most popular mobile applications are mobile games.The country's standardization of the game industry and the improvement of payment technology have brought unprecedented prosperity to the mobile game market,with the emergence of super-popular games such as "King of Honor" and "Onmyoji".Many traditional end-game manufacturers have transformed themselves,joined the competition for mobile games,and the market competition has become increasingly fierce.The subject matter of mobile games has also become diverse from simple casual games.The mobile game server shoulders the logic of supporting games and data storage.However,due to the game data security involved in the mobile game server architecture,companies generally do not want to disclose the details of the game server design.This article through the split of common game function modules,make full use of Erlang's distributed features and Actor concurrency model,design and implement Erlang-based game server engine.The entire engine consists of several Erlang nodes.Each Erlang node runs several Erlang processes.Regardless of whether two processes are on the same Erlang node or on the same server,the communication between them is the same.Therefore,the game back-end engine can not only be deployed on multiple servers,but also deployed on one server.With the Actor concurrency model,concurrent problems such as data race can be avoided?It is very convenient to add specific game logic on the basis of the engine so as to simplify the development.The analysis of the server-side engine test results through a self-designed robot script proves that the server-side engine has good running performance and can use different usage scenarios.It can adapt well to scenarios where CPUs are heavily used and CPUs are lightly used.
Keywords/Search Tags:online game, server side, multi-thread, finite state machine
PDF Full Text Request
Related items