Font Size: a A A

The Research And Design Of Mobile Games Server Based On Lua

Posted on:2016-07-30Degree:MasterType:Thesis
Country:ChinaCandidate:N ZhangFull Text:PDF
GTID:2308330464961259Subject:Software engineering
Abstract/Summary:PDF Full Text Request
With the widespread use of smart phones, the fragmentation of people’s free time,mobile games get more and more attention.Many well-known industry experts predict that mobile games will be the most competitive game filed in the future.The development of mobile games involves many aspects of technical knowledge. In the process of game development, one of the most critical points is the design of mobile game service platform, Because whether the design of mobile game service platform is reasonable, efficient,convenient, scalable, configuration, and so on, will directly affect every aspect of the entire mobile game, such as efficiency, load capacity, speed, reliability, and security, thereby affecting the player retention rate, revenue rate, and may even directly determine the success or failure of a mobile game. Therefore, the design of a good mobile game server is crucial. At present, the research to build high-performance server is less. Based on this, this article presents such a research project that how to implement a high-performance mobile game server based on Lua.In consideration of the performance of the game server, so select Lua as the main development language, Lua can support hot update, which can modify the code to take effect without restarting the server. Redis is a memory database based on disk storage,access speedily, in the process of data access doesn’t need disk I/O operation; My SQL is open source, it can guarantee the data persistence. File DB is locally stored database, not require a network connection; Mongo DB is a kind of flexible database, it’s data structure is very flexible. In the process of data access, using a hierarchical hash table routing lookup algorithm based on the full binary tree and the routing lookup algorithm based on multiple branching trie tree, which combining the subsection search with the prefix extension technology to achieve the server’s internal routing lookup mechanism, it can greatly improve the search efficiency.The main contents are as follows: 1.In the light of the characteristics of mobile game server, using Lua as the primary development language. This is helpful to solve the problem of hot update. 2.For the different requirement of database management in the server, so we compare and select four kinds of database, the Redis,My SQL, File DB and Mongo DB to increase the rate of data access and improve the server performance effectively. 3.This paper has studied and analyzed hierarchical hash table routing lookup algorithm based on the full binary tree and the routing lookup algorithm based on multiple branching trie tree, which combining the subsection search with the prefix extension technology, it’s used to implement the server internal routing strategy and improve the efficiency of routing lookup.The mobile game server designed by the author is high-efficiency, high load resistance, scalable, configurable and convenience, the research work of this article have centain reference value and practical significance for the design and development of mobile game server.
Keywords/Search Tags:Lua, Redis, Trie
PDF Full Text Request
Related items