CN107800742B - Game data storage caching method - Google Patents

Game data storage caching method Download PDF

Info

Publication number
CN107800742B
CN107800742B CN201610803768.1A CN201610803768A CN107800742B CN 107800742 B CN107800742 B CN 107800742B CN 201610803768 A CN201610803768 A CN 201610803768A CN 107800742 B CN107800742 B CN 107800742B
Authority
CN
China
Prior art keywords
game
game data
data
server
cache server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610803768.1A
Other languages
Chinese (zh)
Other versions
CN107800742A (en
Inventor
黄超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENGQU INFORMATION TECHNOLOGY (SHANGHAI) CO LTD
Original Assignee
SHENGQU INFORMATION TECHNOLOGY (SHANGHAI) CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENGQU INFORMATION TECHNOLOGY (SHANGHAI) CO LTD filed Critical SHENGQU INFORMATION TECHNOLOGY (SHANGHAI) CO LTD
Priority to CN201610803768.1A priority Critical patent/CN107800742B/en
Publication of CN107800742A publication Critical patent/CN107800742A/en
Application granted granted Critical
Publication of CN107800742B publication Critical patent/CN107800742B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/35Details of game servers
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/53Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of basic data processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a game data storage cache method, which is characterized by comprising the following steps: when the game data cache server is started, game basic data are cached in advance; after a client enters a game, a game server requests game data from a game data cache server, wherein the game data is stored in the cache server through a sparse and distributed multi-dimensional Map, so that the game data cache server checks whether the game data exists through the Map, if the game data does not exist in the cache server, the game data is read from a database and returned to the game server after being read, and if the game data exists in the cache server, the game data is directly returned to the game server; the game server receives the game data returned by the cache server. By the method, the high-speed data cache server can reduce the times of reading and writing the database and fully improve the response time of the player request.

Description

Game data storage caching method
Technical Field
The present invention relates to a game data storage caching scheme.
Background
With the rapid development of the Internet today, MMORPG games are constantly penetrating into people's lives. With the growing population of players and the size of games, the amount of data that the server needs to process is increasing, the access is centralized, the database response is deteriorated, and the game is delayed.
Disclosure of Invention
In order to meet the requirement of the MMORPG game server for quickly responding to the data of the game player, the technology of a high-performance data cache server is developed. The cache server can reduce the number of times of reading and writing the database and sufficiently improve the response time of the player request. Instead of a slow database, becomes a game data hotspot.
The present invention reduces database load by providing a high performance data caching solution for caching player data for a game. Thereby improving the driving speed of the game data.
The invention provides a game data storage cache method, which is characterized by comprising the following steps: (1) when the game data cache server is started, game basic data are cached in advance; (2) after a client enters a game, a game server requests game data from a game data cache server, wherein the game data is stored in the cache server through a sparse and distributed multi-dimensional Map, so that the game data cache server checks whether the game data exists through the Map, if the game data does not exist in the cache server, the game data is read from a database and returned to the game server after being read, and if the game data exists in the cache server, the game data is directly returned to the game server; (3) the game server receives the game data returned by the cache server.
Preferably, when the game data needs to be saved, the game server pushes the game data needing to be saved to the game data cache server for saving.
Preferably, the game data cache server pre-caches the game basic data according to a hotness algorithm when starting, can own all basic data only by performing database reading operation once, and can return only through the data cache without reading the data any more when high concurrency requests are made.
Preferably, the game data cache server arranges the game data based on a hot algorithm to ensure the hit rate of the game hot data.
Preferably, the game data cache server has a separate persistent data processing unit therein, ensuring that the data cache is separated from the persistent operation.
Drawings
FIG. 1 is a schematic diagram of a game data caching solution.
Detailed Description
Details of the present scheme relate to the client, game server and game data cache server, as shown in fig. 1.
The game data cache server is started by pre-caching game basic data, so that all basic data can be owned by only one database reading operation. The client first enters the game and requests game data from the game data cache server. And the game data is stored in the cache server through sparse and distributed multi-dimensional Map, so that the data can be quickly positioned. In this way, the game data cache server checks whether game data exists by Map, reads the data from the database if the data does not exist in the cache server, returns the game data to the game server after reading the data, and directly returns the game data to the game server if the data exists in the cache server. The game server then receives the game data returned by the cache server. Thus, when the game data cache server is started, the game basic data can be pre-cached, and all the basic data can be owned only by one-time database reading operation. When high concurrency requests no longer read data but only return through the data cache.
Next, the game server and the game data cache server will be described in detail.
1. Game server
In the present invention, after a player enters a game server, the game server requests game data from a game data cache server.
After the game data cache server returns the data, the game server receives the game data requested by the player.
In addition, the game server also pushes the game data needing to be saved to the game data cache server for saving.
2. Game data cache server
In the invention, the game data cache server pre-caches the game basic data when being started, so that all the basic data can be owned by only once database reading operation. The game data is stored in the cache server through sparse and distributed multi-dimensional maps, and the data can be quickly positioned. In this way, the game data cache server checks whether game data exists by Map, reads the data from the database if the data does not exist in the cache server, returns the game data to the game server after reading the data, and directly returns the game data to the game server if the data exists in the cache server. Thus, when the game data cache server is started, the game basic data can be pre-cached, and all the basic data can be owned only by one-time database reading operation. When high concurrency requests no longer read data but only return through the data cache.
The hot degree detection ensures the hit rate of hot data. The game data are sorted based on the hot algorithm, and the hit rate of the game hot data is guaranteed. And automatic detection is carried out according to the game data heat, so that the cache data hit rate is improved.
The game data cache server is provided with a single persistent data processing unit to ensure that the data cache is separated from the persistent operation.
It will be apparent to those skilled in the art that various modifications and variations can be made in the playback method of the present invention without departing from the spirit or scope of the invention. Thus, such modifications and variations of the present invention that fall within the scope of the appended claims and their equivalents are intended to be within the scope of the present invention.

Claims (3)

1. A game data storage caching method, comprising the steps of:
the game basic data are pre-cached when the game data cache server is started, the game basic data are pre-cached according to a heat algorithm when the game data cache server is started, all basic data can be owned only by performing database reading operation once, and the game basic data are not read any more and are only returned through data cache when high concurrency requests are made;
after a client enters a game, a game server requests game data from a game data cache server, wherein the game data is stored in the game data cache server through a sparse and distributed multi-dimensional Map to realize the rapid positioning of the data, so that the game data cache server checks whether the game data exists through the Map, if the game data is not in the game data cache server, the game data is read from a database and returned to the game server after being read, and if the game data is in the game data cache server, the game data is directly returned to the game server; the hot degree detection ensures the hit rate of the hot data, the game data is sorted based on a hot degree algorithm, and automatic detection is carried out according to the hot degree of the game data;
the game server receives game data returned by the game data cache server.
2. The method of claim 1, wherein when the game data cache server needs to save the game data, the game server pushes the game data needing to be saved to the game data cache server for saving.
3. The method of claim 1 or 2, wherein the game data cache server has a separate persistent data processing unit therein, ensuring that the game data cache is separated from the persistent operation.
CN201610803768.1A 2016-09-06 2016-09-06 Game data storage caching method Active CN107800742B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610803768.1A CN107800742B (en) 2016-09-06 2016-09-06 Game data storage caching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610803768.1A CN107800742B (en) 2016-09-06 2016-09-06 Game data storage caching method

Publications (2)

Publication Number Publication Date
CN107800742A CN107800742A (en) 2018-03-13
CN107800742B true CN107800742B (en) 2021-12-24

Family

ID=61529858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610803768.1A Active CN107800742B (en) 2016-09-06 2016-09-06 Game data storage caching method

Country Status (1)

Country Link
CN (1) CN107800742B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112546620A (en) * 2019-09-26 2021-03-26 伊姆西Ip控股有限责任公司 Method, apparatus and computer program product for game control

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023863A (en) * 2011-09-27 2013-04-03 广州明朝网络科技有限公司 Server cluster and server system
CN105045789A (en) * 2015-02-15 2015-11-11 北京乐动卓越信息技术有限公司 Game server database buffer memory method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683485B (en) * 2015-03-25 2018-01-30 重庆邮电大学 A kind of Internet content cache based on C RAN preloads method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023863A (en) * 2011-09-27 2013-04-03 广州明朝网络科技有限公司 Server cluster and server system
CN105045789A (en) * 2015-02-15 2015-11-11 北京乐动卓越信息技术有限公司 Game server database buffer memory method and system

Also Published As

Publication number Publication date
CN107800742A (en) 2018-03-13

Similar Documents

Publication Publication Date Title
CN109284299B (en) Method for reconstructing a hybrid index with storage awareness
CN106649349B (en) Data caching method, device and system for game application
CN103116634B (en) System for supporting high concurrent cache task queue and asynchronous batch operation method thereof
JP2019153323A (en) System, method and storage medium for improving access to search result
CN101887398B (en) Method and system for dynamically enhancing input/output (I/O) throughput of server
Wu et al. LSII: An indexing structure for exact real-time search on microblogs
CN106844740B (en) Data pre-reading method based on memory object cache system
CN105677580A (en) Method and device for accessing cache
CN107491523A (en) The method and device of data storage object
CN107197359B (en) Video file caching method and device
CN104133825A (en) Method and device for matching client user
CN107526828B (en) Page information recommendation method and device
CN106528451B (en) The cloud storage frame and construction method prefetched for the L2 cache of small documents
WO2017097048A1 (en) Data searching method and apparatus
CN104951403B (en) A kind of cold and hot data identification method of low overhead and zero defect
US10289739B1 (en) System to recommend content based on trending social media topics
CN106557431B (en) Pre-reading method and device for multi-path sequential stream
CN107800742B (en) Game data storage caching method
CN105915619A (en) Access heat regarded cyber space information service high performance memory caching method
CN104158863A (en) Cloud storage mechanism based on transaction-level whole-course high-speed buffer
CN112346659A (en) Storage method, equipment and storage medium for distributed object storage metadata
CN106570060B (en) Random extraction method and device for data in information flow
CN114327280B (en) Message storage method and system based on cold and hot separation storage
CN115712583B (en) Method, device and medium for improving distributed cache cross-node access performance
CN110750566A (en) Data processing method and device, cache system and cache management platform

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant