[go: up one dir, main page]

CN120315734A - Game updating method, device, electronic device and medium - Google Patents

Game updating method, device, electronic device and medium

Info

Publication number
CN120315734A
CN120315734A CN202510387326.2A CN202510387326A CN120315734A CN 120315734 A CN120315734 A CN 120315734A CN 202510387326 A CN202510387326 A CN 202510387326A CN 120315734 A CN120315734 A CN 120315734A
Authority
CN
China
Prior art keywords
service
game
version
game service
login
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.)
Pending
Application number
CN202510387326.2A
Other languages
Chinese (zh)
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.)
Hangzhou Qiuguo Planning Technology Co ltd
Original Assignee
Hangzhou Qiuguo Planning Technology 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 Hangzhou Qiuguo Planning Technology Co ltd filed Critical Hangzhou Qiuguo Planning Technology Co ltd
Priority to CN202510387326.2A priority Critical patent/CN120315734A/en
Publication of CN120315734A publication Critical patent/CN120315734A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请公开了一种游戏更新方法、装置、电子设备及介质,涉及互联网技术领域。具体实施方式包括:接收用户的登录请求,根据登录服务中当前的组标签向用户下发当前版本的游戏服务;于所述当前版本的游戏服务的运行过程中,更新新版本的游戏服务;所述新版本的游戏服务与所述当前版本的游戏服务相兼容;响应于所述新版本的游戏服务更新完成,利用新的组标签对所述登录服务进行组标签更新,并重启所述登录服务;所述新的组标签与所述新版本的游戏服务相对应。本申请提供的一种游戏更新方法可实现游戏版本的不停服更新,有助于在游戏版本更新的过程中保持用户的粘性和活跃度,避免因游戏版本停服更新导致用户流失。

The present application discloses a game update method, device, electronic device and medium, and relates to the field of Internet technology. Specific implementation methods include: receiving a user's login request, and sending the current version of the game service to the user according to the current group tag in the login service; updating the new version of the game service during the operation of the current version of the game service; the new version of the game service is compatible with the current version of the game service; in response to the completion of the update of the new version of the game service, updating the group tag of the login service with a new group tag, and restarting the login service; the new group tag corresponds to the new version of the game service. The game update method provided by the present application can realize the non-stop service update of the game version, which helps to maintain the stickiness and activity of users during the game version update process, and avoid user loss due to the suspension of game version updates.

Description

Game updating method, device, electronic equipment and medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a game update method, apparatus, electronic device, and medium.
Background
In a game service architecture, version updating is a core means for guaranteeing game stability, function iteration and compliance operation.
In the prior art, a main mode of stopping service, updating and maintaining is generally adopted as version deployment, and mainly comprises the following processes of closing a new player login inlet, waiting for an online player to naturally exit or forcibly disconnect, closing a game server process, executing database migration, code replacement or configuration updating, restarting service after updating, performing smoke test to confirm normal basic function, and reopening player access. However, the disuse update not only interrupts the progress of the online player's game, but also the newly logged-in player cannot access the game during disuse, seriously affecting the player's game experience, resulting in player churn, according to industry investigation, a single disuse over 1 hour may cause a 10% -15% drop in active users on the day.
Disclosure of Invention
Aiming at the problems that in the prior art, a game version is updated in a disservice update mode, the game progress of an online player is interrupted, a newly logged-in player cannot access a game during disservice, the game experience of the player is seriously influenced, the loss of the player is caused, and the like, the game updating method, the device, the electronic equipment and the medium are provided.
According to a first aspect, there is provided a game update method, comprising:
receiving a login request of a user, and issuing a game service of a current version to the user according to a current group tag in the login service;
Updating a new version of game service in the running process of the current version of game service, wherein the new version of game service is compatible with the current version of game service;
and in response to the completion of the update of the new version of the game service, updating the group tag of the login service by utilizing a new group tag, and restarting the login service, wherein the new group tag corresponds to the new version of the game service.
With reference to the first aspect, in some examples, the current version of game service and the new version of game service do not have memory caches of user service data, and after the current version of game service and the new version of game service are started, the latest service data of the user at the corresponding current time is obtained from the Redis.
In combination with the first aspect, in some examples, after updating the new version of the game service, testing the new version of the game service to obtain a test result, and in response to completion of the update of the new version of the game service, obtaining a new group tag, and updating the group tag for the login service by using the new group tag, further comprising:
and responding to the test result to meet a preset test requirement, and updating the group label of the login service by utilizing a new group label.
With reference to the first aspect, in some examples, the login service includes a first login service and a second login service, the first login service having the current group tag, the method comprising:
the reverse proxy receives and forwards the login request to the first login service;
after the first login service receives the login request, the game service of the current version is issued to the user according to the current group tag in the first login service;
updating the new version of game service in the running process of the current version of game service;
Acquiring a new group label in response to completion of the new version of the game service update, and updating the group label for the second login service by using the new group label;
and modifying the configuration file of the reverse proxy according to the address of the second login service so as to lead the reverse proxy to point to the second login service.
With reference to the first aspect, in some examples, after restarting the login service, the method further includes:
And closing the game service of the current version in response to no online user in the game service of the current version.
With reference to the first aspect, in some examples, in response to the current version of the game service having no online user, closing the current version of the game service includes:
Responding to the fact that the release time of the new version of game service reaches a preset first time threshold, detecting whether the total number of online users of the current version of game service is smaller than a preset user number threshold, if yes, pushing version update reminding to the online users of the current version of game service;
Detecting whether an online user does not exist in the current version of game service or not according to the fact that the pushing time of the version update reminding reaches a preset second time threshold, if so, closing the current version of game service;
The version updating prompt comprises a continuous operation duration of the game service of the current version, and the continuous operation duration is smaller than or equal to the preset second duration threshold.
With reference to the first aspect, in some examples, performing group tag update on the login service with the new group tag includes:
and updating the current group label in the login service to the new group label.
According to a second aspect, there is provided a game updating apparatus comprising:
the first module is configured to receive a login request of a user and send a game service of a current version to the user according to a current group tag in the login service;
a second module configured to update a new version of the game service during the running of the current version of the game service, the new version of the game service being compatible with the current version of the game service;
and a third module configured to update the login service with a new group tag in response to completion of the update of the new version of the game service, and restart the login service, the new group tag corresponding to the new version of the game service.
According to a third aspect, there is provided an electronic device comprising:
one or more processors, and
A memory communicatively coupled to the at least one processor, wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of the embodiments of the game update method described above.
According to a fourth aspect, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor implements a method as any of the embodiments of the game update method.
The game updating method, the device, the electronic equipment and the medium provided by the application have at least the following beneficial effects:
According to the scheme of the application, the current version of game service is issued to the user according to the current group tag in the login service by receiving the login request of the user; updating a new version of game service compatible with the current version of game service in the running process of the current version of game service; in response to completion of the update of the new version of the game service, the login service is updated with a new group tag, and the login service is restarted to enable the new group tag to be effective, because restarting the login service takes very short time compared with stopping the update, and the running of the issued current version of the game service is not affected in the restarting process, the continuous update of the game version is realized, the online user's game experience in the game service of the current version is prevented from being interrupted, the influence of the update of the game version on the user is greatly reduced, the restarted login service can issue the new version of the game service to the user according to the new group label, so that the new login user can be seamlessly switched to the new version of the game service, the viscosity and the activity of the user can be maintained in the process of updating the game version, and the user loss caused by the update of the stopped game version is avoided.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the accompanying drawings in which:
FIG. 1 is a schematic diagram of an exemplary system architecture in which some embodiments of the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a game update method according to the present application;
FIG. 3 is a schematic diagram of an application scenario of a game update method according to the present application;
FIG. 4 is a flow chart of yet another embodiment of a game update method according to the present application;
FIG. 5 is a flow chart of yet another embodiment of a game update method according to the present application;
FIG. 6 is a schematic diagram of the structure of one embodiment of a game updating device according to the present application;
fig. 7 is a block diagram of an electronic device for implementing a game update method of an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present application are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In order to facilitate understanding of the technical solution provided by the present application, the relevant terms in the present application are explained before the specific embodiments, and specifically are as follows:
Redis is a memory database with persistent function.
Etcd is a distributed key-value store system for shared configuration, service discovery and coordination.
Nginx is an open-source, high-performance Web server and reverse proxy software, is used for load balancing, caching, encryption and other functions, and is commonly used for websites or applications with high concurrent access.
The game service represents a running server program, and the server program is software running on a server and is responsible for processing various logic and data interactions in the game.
Group labels-labels for distinguishing between different gaming services when multiple gaming services are running on the same machine.
The client refers to a game program on a player machine, which is a key component in the network game and is responsible for processing player input, communicating with a server and rendering game pictures.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
FIG. 1 illustrates an exemplary system architecture 100 in which embodiments of a game update method or game update device of the present application may be applied.
As shown in fig. 1, a system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as video-type applications, live applications, instant messaging tools, mailbox clients, social platform software, etc., may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices with display screens, including but not limited to smartphones, tablets, electronic book readers, laptop and desktop computers, and the like. When the terminal devices 101, 102, 103 are software, they can be installed in the above-listed electronic devices. Which may be implemented as multiple software or software modules (e.g., multiple software or software modules for providing distributed services) or as a single software or software module. The present invention is not particularly limited herein.
The server 105 may be a server providing various services, such as a background server providing support for the terminal devices 101, 102, 103. The background server may analyze and process the received data such as the login request, and feed back the processing result (e.g., the current version of game service) to the terminal device.
It should be noted that, the game update method provided by the embodiment of the present application may be executed by the server 105 or the terminal devices 101, 102, 103, and accordingly, the game update apparatus may be provided in the server 105 or the terminal devices 101, 102, 103.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a game update method according to the present application is shown. In this embodiment, the game update method includes the following steps:
step 201, receiving a login request of a user, and issuing a game service of a current version to the user according to a current group tag in the login service.
In this embodiment, an executing body (for example, a server or a terminal device shown in fig. 1) on which the game update method operates may directly or indirectly receive a login request initiated by a user, for example, use HTTP protocol or TCP protocol, establish communication between a login service and a user (client) to receive the login request initiated by the user, when the communication between the login service and the user is established using HTTP protocol, perform continuous HTTP connection between the user and the login service, obtain, after receiving the login request of the user, a current version of game service corresponding to the current group tag from Etcd according to the current group tag in the login service, obtain, after the game service of the current version is started, latest service data at the current time of the user from rdis, and enable the login service to return to the game service information of the current version, so that the user establishes connection with the game service of the current version and starts the game.
In one embodiment, the registration of the group tag includes registering Etcd the game service with its information at startup, where the registered information includes the connection information of the game service itself and the corresponding group tag, so that the login service can poll Etcd all the game service information according to the group tag.
Step 202, updating a new version of game service in the running process of the current version of game service, wherein the new version of game service is compatible with the current version of game service;
In this embodiment, the new version of the game service may be updated in various ways during the running of the current version of the game service, for example, automatically based on a preset program, or manually by a developer. In this embodiment, the group tag in the login service is used to determine the game service issued to the user, so that in the process of updating the new version of game service, the game process of the online user in the current version of game service is not interrupted, and the game experience of the online user in the current version of game service is affected.
In one embodiment, the new version of the gaming service is connected to the same Redis as the current version of the gaming service by modifying the configuration file of the new version of the gaming service to maintain data consistency of the new version of the gaming service with the current version of the gaming service.
And 203, performing group label updating on the login service by using a new group label in response to the new version of game service updating, and restarting the login service, wherein the new group label corresponds to the new version of game service.
In this embodiment, after the update of the new version of the game service is completed, the login service is updated with a group tag by using a predefined new group tag, and the login service is restarted, so that the new group tag in the login service is validated, so that the new version of the game service corresponding to the new group tag is issued to the newly logged-in user according to the new group tag in the login service, and compared with the case of stopping the update, the time for restarting the login service is extremely short, and in a specific case, only about 10 seconds is required, so that the newly logged-in user can be seamlessly switched to the new version of the game service.
In one embodiment, updating the group tag of the login service by using a new group tag comprises updating the current group tag in the login service to the new group tag, so as to realize non-aware version switching and enable the users who log in subsequently to log in the new version of game service.
In another embodiment, updating the group tag for the login service with a new group tag further comprises; adding new group label in login service, setting distribution proportion of new group label and current group label according to preset distribution rule, so that login service can distribute request to new edition game service and current edition game service according to new group label and current group label distribution proportion, wherein the preset distribution rule can be set according to actual requirement, for example, the preset distribution rule includes that new group label initial distribution proportion is smaller than current group label initial distribution proportion, for example, new group label initial distribution proportion is 10%, current group label initial distribution proportion is 90%, when new edition game service operation effect reaches preset operation requirement, the distribution proportion of new group label is gradually increased over time, for example, when new edition game service error rate, delay and other indexes are smaller than threshold value, the distribution proportion of new group label is increased by 10% every 1 hour, when new edition game service operation effect does not reach preset operation requirement, for example, when new edition game service error rate, delay and other indexes are not reaching preset operation requirement, for example, new edition game label initial distribution proportion is set to be 10%, current group label initial distribution proportion is smooth and the new edition game label can be distributed according to the new edition, when new edition game service operation effect reaches the current operation requirement is smooth, and the new edition label distribution proportion is 0, and the current operation requirement is met, avoiding the influence of the full-service user.
In one embodiment, after updating the new version of the game service, the group tag updating the login service with the new group tag in response to completion of the new version of the game service comprises the group tag updating the login service with the new group tag in response to the new version of the game service update.
In another embodiment, after updating a new version of game service, modifying a configuration file of the new version of game service to enable the new version of game service to be connected to the same Redis as the current version of game service, testing the new version of game service to obtain a test result, obtaining a new group tag in response to completion of the new version of game service update, and updating the login service with the new group tag.
The game updating method provided by the embodiment of the application comprises the steps of receiving a login request of a user, issuing a current version of game service to the user according to a current group tag in the login service, updating a new version of game service compatible with the current version of game service in the running process of the current version of game service, updating the group tag of the login service by using a new group tag in response to the completion of the update of the new version of game service, restarting the login service, so that the new group tag is effective, and the running of the issued current version of game service is not influenced in the restarting process because the restarting of the login service is extremely short compared with the stopping of the update, thereby realizing the uninterrupted update of the game version, avoiding interrupting the game experience of the online user in the current version of game service, greatly reducing the influence of the update of the game version on the user, enabling the new user to be seamlessly switched to the new version of game service according to the new group tag, facilitating the maintenance of the viscosity of the update of the game version and avoiding the stopping of the game version due to the running of the updated version.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the game update method according to the present embodiment. In the application scenario of fig. 3, the execution body 300 receives a login request 301 of a user, issues a game service 302 of a current version to the user according to a current group tag in the login service, updates a game service 303 of a new version in the running process of the game service of the current version, responds to the completion of the update of the game service of the new version, performs a group tag update 304 on the login service by using a new group tag, and restarts the login service.
Referring further to FIG. 4, a flow 400 of yet another embodiment of a game update method provided by the present application is shown. In this embodiment, the login service includes a first login service and a second login service, where the first login service has the current group tag, and the process 400 includes the following steps:
Step 401, a reverse proxy receives and forwards the login request to the first login service;
In this embodiment, a reverse proxy (such as ngginx, etc.), a first login service and a second login service are pre-built, and before the game version is updated, the proxy target address of the reverse proxy is the address of the first login service, that is, the reverse proxy points to the first login service, at this time, the user initiates a login request to the reverse proxy, and after the reverse proxy receives the login request, the login request is forwarded to the first login service.
Step 402, after the first login service receives the login request, the first login service issues the game service of the current version to the user according to the current group tag in the first login service;
in this embodiment, the first login service receives the login request forwarded by the reverse proxy, and issues the current version of the game service to the user according to the current group tag corresponding to the current version of the game service in the first login service.
Step 403, updating the new version of game service in the running process of the current version of game service;
Step 404, in response to the completion of the update of the new version of the game service, acquiring a new group tag, and updating the group tag for the second login service by using the new group tag;
In this embodiment, the updating of the group tag for the second login service with the new group tag includes taking the new group tag as the group tag in the second login service.
And step 405, modifying the proxy target address of the reverse proxy according to the address of the second login service so as to lead the reverse proxy to point to the second login service.
In this embodiment, the proxy target address of the reverse proxy is modified according to the address of the second login service, so that the reverse proxy points to the second login service, at this time, when the newly logged-in user initiates a login request to the reverse proxy, the reverse proxy receives and forwards the login request to the second login service, and the second login service issues a new version of game service to the newly logged-in user according to the new group tag, so as to realize seamless switching from the newly-logged-in user to the new version of game service.
According to the game updating method provided by the embodiment of the application, the reverse proxy, the first login service corresponding to the game service of the current version and the second login service corresponding to the game service of the new version are constructed, before the game service of the new version is updated, the reverse proxy is utilized to receive and forward the login request to the first login service, so that the first login service issues the game service of the current version to a user according to the current group tag, the game service of the new version is updated in the running process of the game service of the current version, after the game service of the new version is updated, the user can access the second login service by modifying the proxy target address of the reverse proxy, and the game updating method in the embodiment is seamlessly switched to the game service of the new version through the second login service without waiting for the restarting process of the second login service, and further improves the use experience of the user in the game version updating process.
Referring further to fig. 5, fig. 5 shows a flowchart 500 of a game update method according to another embodiment of the present application. In this embodiment, after restarting the login service, the process 500 includes the following steps:
And step 501, closing the game service of the current version in response to no online user in the game service of the current version.
In this embodiment, in response to detecting that there is no online user in the current version of the game service, the current version of the game service is turned off, and server resources are released while avoiding the current version of the game service from being turned off to affect the game experience of the online user of the current version of the game service.
As shown in fig. 5, in one embodiment, responsive to no online user in the current version of the game service, closing the current version of the game service comprises:
Step 5011, in response to the release time of the new version of game service reaching a preset first time threshold, detecting whether the total number of online users of the current version of game service is smaller than a preset user number threshold, if yes, pushing a version update reminder to the online users of the current version of game service;
The version updating prompt comprises a continuous operation duration of the game service of the current version, and the continuous operation duration is smaller than or equal to the preset second duration threshold.
And step 5012, in response to the push time of the version update reminder reaching a preset second time threshold, detecting whether the current version of game service has no online user, if so, closing the current version of game service.
In this embodiment, when the pushing time of the version update reminder reaches a preset second preset threshold, whether the total number of online users of the game service of the current version is 0 is detected, if yes, the game service of the current version is closed, in this embodiment, the version update reminder including the continuous running time is pushed only to the online users smaller than the preset user number threshold, and when the influence on the group users is reduced, the online users in the game service of the current version are reminded that the game version of the online users has been updated and the closing time of the game service of the current version of the online users is informed, which is favorable for the users to autonomously select the exit time, avoid forced disconnection and reduce the user game experience.
With further reference to fig. 6, as an implementation of the method shown in the foregoing drawings, the present application provides an embodiment of a game update device, where the embodiment of the device corresponds to the embodiment of the method shown in fig. 2, and the embodiment of the device may further include the same or corresponding features or effects as the embodiment of the method shown in fig. 2, except for the features described below. The device can be applied to various electronic equipment.
As shown in fig. 6, the game updating apparatus 600 of the present embodiment includes a first module 601, a second module 602, and a third module 603. The method comprises the steps of receiving a login request of a user, issuing a current version of game service to the user according to a current group tag in the login service, updating a new version of game service in the running process of the current version of game service by a first module 601, enabling the new version of game service to be compatible with the current version of game service, enabling a third module 603 to update the group tag of the login service and restarting the login service by using a new group tag in response to completion of updating of the new version of game service, and enabling the new group tag to correspond to the new version of game service.
In this embodiment, the specific processing and the technical effects of the first module 601, the second module 602, and the third module 603 of the game updating device 600 may refer to the related descriptions of the step 201, the step 202, and the step 203 in the corresponding embodiment of fig. 2, and are not repeated herein.
According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
As shown in fig. 7, there is a block diagram of an electronic device of a game update method according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the applications described and/or claimed herein.
As shown in fig. 7, the electronic device includes one or more processors 701, memory 702, and interfaces for connecting components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple electronic devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 701 is illustrated in fig. 7.
Memory 702 is a non-transitory computer readable storage medium provided by the present application. The memory stores instructions executable by the at least one processor to cause the at least one processor to perform the game update method provided by the present application. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to execute the game update method provided by the present application.
The memory 702 is used as a non-transitory computer readable storage medium for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules (e.g., the first module 601, the second module 602, and the third module 603 shown in fig. 6) corresponding to the game update method according to the embodiment of the present application. The processor 701 executes various functional applications of the server and data processing by executing non-transitory software programs, instructions, and modules stored in the memory 702, that is, implements the game update method in the above-described method embodiment.
The memory 702 may include a storage program area that may store an operating system, an application program required for at least one function, and a storage data area that may store data created according to the use of the electronic device of the game update method, etc. In addition, the memory 702 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 702 may optionally include memory located remotely from processor 701, which may be connected to the electronic device of the game update method via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the game update method may further comprise input means 703 and output means 704. The processor 701, the memory 702, the input device 703 and the output device 704 may be connected by a bus or otherwise, in fig. 7 by way of example.
The input device 703 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the game updating electronic device, such as a touch screen, keypad, mouse, trackpad, touchpad, pointer stick, one or more mouse buttons, trackball, joystick, and like input devices. The output device 704 may include a display apparatus, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASIC (application specific integrated circuit), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be a special or general purpose programmable processor, operable to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
These computing programs (also referred to as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user, for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback), and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a Local Area Network (LAN), a Wide Area Network (WAN), and the Internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present application may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, a processor may be described as comprising a first module, a second module and a third module. The names of these modules do not constitute a limitation on the module itself in some cases, and for example, the first module may also be described as a "game distribution module".
As a further aspect, the present application also provides a computer readable medium, which may be comprised in the apparatus described in the above embodiments, or may be present alone, without being assembled into the apparatus. The computer readable medium carries one or more programs, which when executed by the device, cause the device to receive a login request from a user, issue a current version of game service to the user according to a current group tag in the login service, update a new version of game service in the running process of the current version of game service, wherein the new version of game service is compatible with the current version of game service, acquire a new group tag in response to completion of the new version of game service update, update the group tag for the login service by using the new group tag, and restart the login service, and the new group tag corresponds to the new version of game service.
The above description is only illustrative of the preferred embodiments of the present application and of the principles of the technology employed. It will be appreciated by persons skilled in the art that the scope of the application referred to in the present application is not limited to the specific combinations of the technical features described above, but also covers other technical features formed by any combination of the technical features described above or their equivalents without departing from the inventive concept described above. Such as the above-mentioned features and the technical features disclosed in the present application (but not limited to) having similar functions are replaced with each other.

Claims (10)

1.一种游戏更新方法,其特征在于,包括:1. A game updating method, characterized by comprising: 接收用户的登录请求,根据登录服务中当前的组标签向用户下发当前版本的游戏服务;Receive the user's login request and send the current version of the game service to the user according to the current group tag in the login service; 于所述当前版本的游戏服务的运行过程中,更新新版本的游戏服务;所述新版本的游戏服务与所述当前版本的游戏服务相兼容;During the operation of the current version of the game service, updating the game service with a new version; the new version of the game service is compatible with the current version of the game service; 响应于所述新版本的游戏服务更新完成,利用新的组标签对所述登录服务进行组标签更新,并重启所述登录服务;所述新的组标签与所述新版本的游戏服务相对应。In response to the completion of the update of the new version of the game service, the group tag of the login service is updated using a new group tag, and the login service is restarted; the new group tag corresponds to the new version of the game service. 2.根据权利要求1所述的方法,其特征在于,所述当前版本的游戏服务和所述新版本的游戏服务中无用户业务数据的内存缓存,所述当前版本的游戏服务和所述新版本的游戏服务启动后,均从Redis中获取用户于对应的当前时刻下最新的业务数据。2. The method according to claim 1 is characterized in that there is no memory cache of user business data in the current version of the game service and the new version of the game service, and after the current version of the game service and the new version of the game service are started, the latest business data of the user at the corresponding current moment is obtained from Redis. 3.根据权利要求2所述的方法,其特征在于,更新新版本的游戏服务后,对所述新版本的游戏服务进行测试,获得测试结果;则响应于所述新版本的游戏服务更新完成,获取新的组标签,利用所述新的组标签对所述登录服务进行组标签更新,还包括:3. The method according to claim 2, characterized in that after updating the new version of the game service, the new version of the game service is tested to obtain a test result; in response to the completion of the update of the new version of the game service, a new group tag is obtained, and the group tag of the login service is updated using the new group tag, further comprising: 响应于所述测试结果满足预设的测试要求,利用新的组标签对所述登录服务进行组标签更新。In response to the test result satisfying a preset test requirement, a group tag of the login service is updated using a new group tag. 4.根据权利要求1所述的方法,其特征在于,所述登录服务包括:第一登录服务和第二登录服务,所述第一登录服务具有所述当前的组标签,所述方法包括:4. The method according to claim 1, wherein the login service comprises: a first login service and a second login service, the first login service has the current group tag, and the method comprises: 反向代理接收并转发所述登录请求至所述第一登录服务;The reverse proxy receives and forwards the login request to the first login service; 所述第一登录服务接收所述登录请求后,根据所述第一登录服务中当前的组标签向用户下发所述当前版本的游戏服务;After receiving the login request, the first login service sends the current version of the game service to the user according to the current group tag in the first login service; 于所述当前版本的游戏服务的运行过程中,更新新版本的游戏服务;During the operation of the current version of the game service, updating the new version of the game service; 响应于所述新版本的游戏服务更新完成,利用新的组标签对所述第二登录服务进行组标签更新;In response to completion of the update of the new version of the game service, updating the group tag of the second login service using a new group tag; 根据所述第二登录服务的地址,修改所述反向代理的配置文件,以使所述反向代理指向所述第二登录服务。According to the address of the second login service, the configuration file of the reverse proxy is modified to make the reverse proxy point to the second login service. 5.根据权利要求1所述的方法,其特征在于,于重启所述登录服务后,所述方法还包括:5. The method according to claim 1, characterized in that, after restarting the login service, the method further comprises: 响应于所述当前版本的游戏服务中无在线用户,关闭所述当前版本的游戏服务。In response to there being no online user in the current version of the game service, closing the current version of the game service. 6.根据权利要求5所述的方法,其特征在于,响应于所述当前版本的游戏服务无在线用户,关闭所述当前版本的游戏服务,包括:6. The method according to claim 5, characterized in that in response to the current version of the game service having no online users, shutting down the current version of the game service comprises: 响应于所述新版本的游戏服务的发布时长达预设第一时长阈值,检测所述当前版本的游戏服务的在线用户总数是否小于预设用户数量阈值,若是,则向所述当前版本的游戏服务的在线用户推送版本更新提醒;In response to the release time of the new version of the game service being longer than a preset first time threshold, detecting whether the total number of online users of the current version of the game service is less than a preset user number threshold, and if so, pushing a version update reminder to the online users of the current version of the game service; 响应于所述版本更新提醒的推送时长达预设第二时长阈值,检测所述当前版本的游戏服务中是否无在线用户,若是,则关闭所述当前版本的游戏服务;In response to the push time of the version update reminder reaching a preset second time threshold, detecting whether there is no online user in the game service of the current version, and if so, closing the game service of the current version; 其中,所述版本更新提醒中包括:所述当前版本的游戏服务的继续运行时长;所述继续运行时长小于等于所述预设第二时长阈值。The version update reminder includes: the continued operation time of the game service of the current version; the continued operation time is less than or equal to the preset second time threshold. 7.根据权利要求1所述的方法,其特征在于,利用新的组标签对所述登录服务进行组标签更新,包括:7. The method according to claim 1, wherein updating the group tag of the login service using a new group tag comprises: 将所述登录服务中所述当前的组标签更新为所述新的组标签。The current group tag in the login service is updated to the new group tag. 8.一种游戏更新装置,其特征在于,包括:8. A game updating device, comprising: 第一模块,被配置为接收用户的登录请求,根据登录服务中当前的组标签向用户下发当前版本的游戏服务;The first module is configured to receive a login request from a user and send a current version of the game service to the user according to a current group tag in the login service; 第二模块,被配置为于所述当前版本的游戏服务的运行过程中,更新新版本的游戏服务;所述新版本的游戏服务与所述当前版本的游戏服务相兼容;The second module is configured to update a new version of the game service during the operation of the current version of the game service; the new version of the game service is compatible with the current version of the game service; 第三模块,被配置为响应于所述新版本的游戏服务更新完成,利用新的组标签对所述登录服务进行组标签更新,并重启所述登录服务;所述新的组标签与所述新版本的游戏服务相对应。The third module is configured to update the group tag of the login service with a new group tag in response to the completion of the update of the new version of the game service, and restart the login service; the new group tag corresponds to the new version of the game service. 9.一种电子设备,其特征在于,包括:9. An electronic device, comprising: 至少一个处理器;以及,at least one processor; and, 与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein, 所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1至7中任一项所述的方法。The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7. 10.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被执行时实现权利要求1至7中任一项所述的方法。10. A computer-readable storage medium having a computer program stored thereon, wherein the program, when executed, implements the method according to any one of claims 1 to 7.
CN202510387326.2A 2025-03-31 2025-03-31 Game updating method, device, electronic device and medium Pending CN120315734A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202510387326.2A CN120315734A (en) 2025-03-31 2025-03-31 Game updating method, device, electronic device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202510387326.2A CN120315734A (en) 2025-03-31 2025-03-31 Game updating method, device, electronic device and medium

Publications (1)

Publication Number Publication Date
CN120315734A true CN120315734A (en) 2025-07-15

Family

ID=96329157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202510387326.2A Pending CN120315734A (en) 2025-03-31 2025-03-31 Game updating method, device, electronic device and medium

Country Status (1)

Country Link
CN (1) CN120315734A (en)

Similar Documents

Publication Publication Date Title
US11469944B1 (en) Techniques for migrating worker nodes to a new manager instance
US9559993B2 (en) Virtual agent proxy in a real-time chat service
US11514090B2 (en) Comments-ordering method, apparatus, device and computer storage medium
CN112073994A (en) Method and device for over-the-air upgrading, electronic equipment and readable storage medium
CN111475259B (en) Applet loading method and device and electronic equipment
CN112000394B (en) Methods, devices, equipment and storage media for accessing mini programs
CN109245908B (en) Method and device for switching master cluster and slave cluster
US11200538B2 (en) System and method for a unified incident management interface
US12231517B2 (en) Group-based communication apparatus, method, and computer program product configured to manage draft messages in a group-based communication system
CN111090691B (en) A data processing method, device, electronic device and storage medium
US20180144016A1 (en) Graphical user interface with consistent redundant models
US10530819B2 (en) Virtual machine screen sharing and accessing via social media
CN111510480B (en) Request sending method and device and first server
CN111885114B (en) Method, device and storage medium for upgrading application program interface module in gateway
CN111881387A (en) Data processing method, device, equipment and medium for small program
CN112527368B (en) Cluster kernel version updating method and device, electronic equipment and storage medium
CN111835857B (en) Method and apparatus for accessing data
CN110750419B (en) Offline task processing method, device, electronic device and storage medium
CN111258954A (en) Data migration method, device, equipment and storage medium
JP7147123B2 (en) Source channel determination method, device, equipment, program and computer storage medium
CN112770415B (en) Information processing method and device for wireless hotspot
CN120315734A (en) Game updating method, device, electronic device and medium
WO2023169193A1 (en) Method and device for generating smart contract
CN112016020A (en) Information processing method and device
CN114116190A (en) Method and apparatus for transmitting information

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