CN112156475A - Business data processing method and device, electronic equipment and storage medium - Google Patents

Business data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112156475A
CN112156475A CN202011180532.XA CN202011180532A CN112156475A CN 112156475 A CN112156475 A CN 112156475A CN 202011180532 A CN202011180532 A CN 202011180532A CN 112156475 A CN112156475 A CN 112156475A
Authority
CN
China
Prior art keywords
server
information
data
target container
data processing
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.)
Granted
Application number
CN202011180532.XA
Other languages
Chinese (zh)
Other versions
CN112156475B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202011180532.XA priority Critical patent/CN112156475B/en
Publication of CN112156475A publication Critical patent/CN112156475A/en
Application granted granted Critical
Publication of CN112156475B publication Critical patent/CN112156475B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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
    • A63F2300/534Features 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 for network load management, e.g. bandwidth optimization, latency reduction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Abstract

The invention provides a service data processing method, which comprises the following steps: acquiring first running environment information of a business process in a first server; storing the first operation environment information, the second operation environment information, the first service data processing result and the second service data processing result in a target container; and performing information synchronization between a first server and the second server based on the information stored in the target container to realize that the first server and the second server keep the same information. The invention also provides a device, electronic equipment and a storage medium, which can realize the synchronization of the service data in different game servers to the same server, ensure the accuracy and fairness of the service data, simultaneously, the servers storing the data of different game servers can directly complete the change of the user data and store the user data in the database in real time, and the user can experience the data change in real time, thereby reducing the delay waiting and effectively improving the game experience of the user.

Description

Business data processing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to data processing technologies, and in particular, to a method and an apparatus for processing service data, an electronic device, and a storage medium.
Background
With the continuous development of online game development technology, a large number of massively multiplayer online role playing games are emerging, in the massively multiplayer online role playing games, users can play one or more roles and control the activities of the roles in the virtual world in the games, because the game mode of the games is complex and the number of the users is huge, a game framework with partitioned servers is usually adopted, namely the users are distributed in different game servers, the users of different servers usually do not intersect, but in order to improve the game experience of the users, the users from different game servers need to be collected in the same server, and because the experience acquisition rates, commodity prices, the continuous operation time of the servers and the like of the game users in different game servers are different, the service data of different game servers need to be merged in the same server.
Disclosure of Invention
In view of this, the service data processing method, the apparatus, the electronic device, and the storage medium provided in the embodiments of the present invention can store the first operating environment information, the second operating environment information, the first service data processing result, and the second service data processing result in the target container; based on the information stored in the target container, information synchronization is performed between the first server and the second server to achieve that the first server and the second server keep the same information, so that service data in different game servers are synchronized to the same server, accuracy and fairness of the service data are guaranteed, meanwhile, in the servers storing the data of the different game servers, user data change can be directly completed and stored in a database in real time, a user can experience data change in real time, delay waiting is reduced, and game experience of the user is effectively improved.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides a service data processing method, which comprises the following steps:
acquiring first running environment information of a business process in a first server;
responding to an operation instruction of a target user, and acquiring a first service data processing result of the service process in a first server;
acquiring second operation environment information of the service process in a second server and a second service data processing result of the target user in the second server, wherein the first server and the second server belong to different server groups;
storing the first operation environment information, the second operation environment information, the first service data processing result and the second service data processing result in a target container;
and performing information synchronization between the first server and the second server based on the information stored in the target container to realize that the first server and the second server keep the same information.
An embodiment of the present invention further provides a data processing apparatus, including:
the information transmission module is used for acquiring first operating environment information of the business process in the first server;
the information transmission module is used for responding to an operation instruction of a target user and acquiring a first service data processing result of the service process in the first server;
the information transmission module is configured to acquire second operating environment information of the service process in a second server and a second service data processing result of the target user in the second server, where the first server and the second server belong to different server groups;
the information processing module is used for storing the first operation environment information, the second operation environment information, the first service data processing result and the second service data processing result in a target container;
the information processing module is configured to perform information synchronization between the first server and the second server based on the information stored in the target container, so that the first server and the second server maintain the same information.
In the above-mentioned scheme, the first step of the method,
the information processing module is used for determining the container structure of the target container;
the information processing module is used for determining data index information and data entity information in the target container based on the container structure of the target container and the parameters of the business process;
and the information processing module is used for respectively storing the first operation environment information, the second operation environment information, the first service data processing result and the second service data processing result in different data indexes and data entities based on the data index information and the data entity information in the target container.
In the above-mentioned scheme, the first step of the method,
the information processing module is used for traversing the data index information in the target container and determining invalid index information in the target container;
and the information processing module is used for dynamically recycling the storage space of the data entity matched with the invalid index information according to the invalid index information.
In the above-mentioned scheme, the first step of the method,
the information processing module is used for determining context configuration information corresponding to a first server matched with a game process when the business process is the game process;
the information processing module is configured to configure a corresponding number of second servers based on the context configuration information corresponding to the first server, so as to enable the second servers to cover the target container corresponding to the context configuration information.
In the above-mentioned scheme, the first step of the method,
the information processing module is used for acquiring a data change request of a target user in the second server;
the information processing module is used for responding to the data change request and acquiring context information stored in a target container corresponding to the second server;
the information processing module is used for executing a logic sub-process matched with the context information based on the business process;
and the information processing module is used for storing the execution result of the logic subprocess in a corresponding target container.
In the above-mentioned scheme, the first step of the method,
the information processing module is used for monitoring the change of the context information in the first server;
the information processing module is used for triggering a data synchronization process when the context information in the first server is determined to be changed;
and the information processing module is used for synchronizing the changed context information to a target container corresponding to the first server through the data synchronization process.
In the above-mentioned scheme, the first step of the method,
the information processing module is used for carrying out consistency detection on the context information in the first server and the context information in the second server;
the information processing module is used for sending a data synchronization request to the first server by the second server when the context information in the first server is inconsistent with the context information in the second server;
and the information processing module is used for responding to the data synchronization request and adjusting the information stored in the second server.
In the above-mentioned scheme, the first step of the method,
the information processing module is used for determining the identification information of the target user when the business process is a game process;
the information processing module is used for determining a data source cluster matched with the identification information based on a cloud server network;
and the information processing module is used for storing the historical information of the user matched with the target user into the first server and the second server according to the data source cluster.
An embodiment of the present invention further provides an electronic device, where the electronic device includes:
a memory for storing executable instructions;
and the processor is used for realizing the preorder service data processing method when the executable instruction stored in the memory is operated.
The embodiment of the invention also provides a computer-readable storage medium, which stores executable instructions, and is characterized in that the executable instructions are executed by a processor to realize the preorder service data processing method.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention obtains the first running environment information of the business process in the first server; responding to an operation instruction of a target user, and acquiring a first service data processing result of the service process in a first server; acquiring second operation environment information of the service process in a second server and a second service data processing result of the target user in the second server, wherein the first server and the second server belong to different server groups; storing the first operation environment information, the second operation environment information, the first service data processing result and the second service data processing result in a target container; based on the information stored in the target container, information synchronization is performed between the first server and the second server to achieve that the first server and the second server keep the same information, so that service data in different game servers are synchronized to the same server, accuracy and fairness of the service data are guaranteed, meanwhile, in the servers storing the data of the different game servers, user data change can be directly completed and stored in a database in real time, a user can experience data change in real time, delay waiting is reduced, and game experience of the user is effectively improved.
Drawings
Fig. 1 is a schematic view of a usage scenario of a service data processing method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a service data processing apparatus according to an embodiment of the present invention;
fig. 3A is an optional flowchart of a service data processing method according to an embodiment of the present invention;
fig. 3B is an optional flowchart of a service data processing method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an alternative construction of a target container in an embodiment of the present invention;
fig. 5 is an optional flowchart of a service data processing method according to an embodiment of the present invention
Fig. 6 is a schematic diagram of service data processing in an embodiment of the present invention;
fig. 7 is a schematic diagram of service data processing in the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail with reference to the accompanying drawings, the described embodiments should not be construed as limiting the present invention, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to be limiting of the invention.
It should be noted that in the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
Before further detailed description of the embodiments of the present invention, terms and expressions mentioned in the embodiments of the present invention are explained, and the terms and expressions mentioned in the embodiments of the present invention are applied to the following explanations.
1) Virtual environment: is a virtual environment that is displayed (or provided) when an application is run on the terminal. The virtual environment may be a simulation environment of a real world, a semi-simulation semi-fictional three-dimensional environment, or a pure fictional three-dimensional environment. The virtual environment may be any one of a two-dimensional virtual environment, a 2.5-dimensional virtual environment, and a three-dimensional virtual environment, and the following embodiments illustrate the virtual environment as a three-dimensional virtual environment, but are not limited thereto. Optionally, the virtual environment is also used for virtual environment engagement between at least two virtual objects. Optionally, the virtual environment is also used for a virtual firearm fight between at least two virtual objects. Optionally, the virtual environment is further configured to engage a virtual firearm between at least two virtual objects within a target area, the target area being smaller over time in the virtual environment.
2) Terminals, including but not limited to: the system comprises a common terminal and a special terminal, wherein the common terminal is in long connection and/or short connection with a sending channel, and the special terminal is in long connection with the sending channel.
3) The client, a carrier in the terminal for implementing a specific function, for example, a mobile client (APP) is a carrier of a specific function in the mobile terminal, for example, a function of performing live online broadcasting or a playing function of online video.
4) In response to the condition or state on which the performed operation depends, one or more of the performed operations may be in real-time or may have a set delay when the dependent condition or state is satisfied; there is no restriction on the order of execution of the operations performed unless otherwise specified.
5) The virtual articles placed in the slot positions can be game roles (for example, a user playing a role in playing a game and playing a moon knife holds a plurality of heros) held by a current user in a game scene during the game process, or virtual props (for example, a hero carries a plurality of weapons and precious stones) held by the game roles.
Fig. 1 is a schematic view of a usage scenario of a service data processing method according to an embodiment of the present invention, referring to fig. 1, a terminal (including a terminal 10-1 and a terminal 10-2) is provided with a client capable of loading software for running and displaying different game scenarios, such as clients or plug-ins of different games, a user can observe a virtual environment through a personal perspective of a virtual object through a corresponding client, and operate according to a virtual item matched with the virtual object in a user interface and different ornaments held by a target user in a process of view screen change; the terminal is connected with a first server 200 and a second server 400 through a network 300, the network 300 can be a wide area network or a local area network or a combination of the two, data transmission is realized by using a wireless link, the game server to which the user of the first server 200 belongs, and the second server 400 is a cross-server of a cross-game area.
As an example, the first server 200 is configured to deploy the service data processing apparatus provided in the present application, so as to obtain first operating environment information of a service process in the first server; responding to an operation instruction of a target user, and acquiring a first service data processing result of the service process in a first server; acquiring second operating environment information of the service process in a second server and a second service data processing result of the target user in the second server 400, wherein the first server 200 and the second server 400 belong to different server groups; storing the first operation environment information, the second operation environment information, the first service data processing result and the second service data processing result in a target container; and performing information synchronization between the first server and the second server based on the information stored in the target container to realize that the first server and the second server keep the same information.
Of course, the service data processing device provided by the present invention may be applied to different game environments including, but not limited to, virtual reality application programs, three-dimensional map programs, military simulation programs, First-person shooter Games (FPS First-person shooting Games), multi-person Online tactical sports Games (MOBA Multiplayer Online Battle Arena Games), etc., and finally, corresponding virtual props are presented on a User Interface (UI User Interface) and controlled. The user can obtain different virtual objects (such as virtual items including virtual weapons or virtual archery arrows, virtual slingshots and the like for launching an arrow cluster or different virtual objects held by the user in the current game process) in the current display interface, and the adjusted virtual objects can be called by other application programs.
As will be described in detail below with respect to the structure of the service data processing apparatus according to the embodiment of the present invention, the service data processing apparatus may be implemented in various forms, such as a dedicated terminal with a processing function of the service data processing apparatus, or an electronic device (a mobile phone or a tablet computer) with a processing function of the service data processing apparatus, for example, the terminal 10-1 or the terminal 10-2 in the foregoing fig. 1. Fig. 2 is a schematic diagram of a composition structure of a service data processing apparatus according to an embodiment of the present invention, and it can be understood that fig. 2 only shows an exemplary structure of the service data processing apparatus, and not a whole structure, and a part of the structure or a whole structure shown in fig. 2 may be implemented as needed.
The service data processing apparatus shown in fig. 2 includes: at least one processor 210, memory 240, at least one network interface 220. The various components in the first server 200 are coupled together by a bus system 230. It is understood that the bus system 230 is used to enable connected communication between these components. The bus system 230 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 230 in fig. 2.
The Processor 210 may be an integrated circuit chip having Signal processing capabilities, such as a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like, wherein the general purpose Processor may be a microprocessor or any conventional Processor, or the like.
The memory 240 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid state memory, hard disk drives, optical disk drives, and the like. Memory 240 optionally includes one or more storage devices physically located remote from processor 210.
The memory 240 includes either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read Only Memory (ROM), and the volatile Memory may be a Random Access Memory (RAM). The memory 240 described in connection with embodiments of the present invention is intended to comprise any suitable type of memory.
In some embodiments, memory 240 is capable of storing data, examples of which include programs, modules, and data structures, or subsets or supersets thereof, to support various operations, as exemplified below.
An operating system 241, including system programs for handling various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and handling hardware-based tasks;
a network communication module 242 for communicating to other computing devices via one or more (wired or wireless) network interfaces 220, exemplary network interfaces 220 including: bluetooth, wireless compatibility authentication (WiFi), and Universal Serial Bus (USB), etc.;
in some embodiments, the service data processing apparatus provided by the embodiment of the present invention may be implemented in a software manner, and fig. 2 shows the service data processing apparatus 243 stored in the memory 240, which may be software in the form of programs and plug-ins, and includes the following software modules: information transfer module 2431 and information processing module 2432, which are logical and thus may be arbitrarily combined or further separated depending on the functionality implemented. It should be noted that, in fig. 2, for convenience of expression, all the modules are shown at once, but it should not be considered that the implementation that may include only the information transmission module 2431 and the information processing module 2432 is excluded from the service data processing apparatus 243, and functions of the respective modules will be described below.
In other embodiments, the service data processing apparatus provided by the embodiments of the present invention may be implemented in hardware, and for example, the service data processing apparatus provided by the embodiments of the present invention may be a processor in the form of a hardware decoding processor, which is programmed to execute the network service scoring method provided by the embodiments of the present invention, for example, the processor in the form of the hardware decoding processor may be one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), or other electronic components.
In the following, a description is given by taking as an example that the first server 200 and the terminal 10-1 or 10-2 in fig. 1 cooperate to implement the service data processing method provided by the embodiment of the present invention. Before introducing the service data processing method provided by the embodiment of the present application, a service data processing method in the conventional technology is introduced, where reference is made to fig. 3A, where fig. 3A is an optional flow diagram of the service data processing method in the embodiment of the present invention, where operation data generated in a cross-server is cached on a game user, and the game user returns to an original server and then performs data operation. For example, a game user obtains experience in a cross-server game mode, because the rate of the experience increase in the cross-server is inconsistent with the original service of the game user, 100 experiences are also increased, the original service is attenuated by 20%, the cross-server is only attenuated by 10%, in order to ensure that data cannot cause cross-server environmental pollution, the scheme caches the behavior of obtaining 100 experiences in an operation queue, and after the game user completes the cross-server game mode and returns to the original service, the operation sequence is brought back to the original service together, and then the operation sequence brought back by the game user is executed in sequence. Thereby ensuring that the data is not polluted and preventing the game users from cheating to obtain the game benefits. The operation sequence cache needs to occupy a large amount of memory, and a game user may perform a large amount of data operations, such as acquiring experience, currency, and the like, in the cross-server game mode. Each operation needs to be cached. Secondly, since the data change of the scheme shown in fig. 3A cannot be immediately effective across the clothes, the data change needs to be processed by the game user after returning to the original clothes, and the game experience of the game user is poor. Finally, because the number of MMORPG game modes is large, the number of data operations is huge, each game mode needs to independently develop an operation sequence, the development efficiency of developers is low, and BUG is easily generated, for example, when a game user is off-line immediately in a cross-service state or a progress is down, the operation data cannot be brought back to the original service, and the data of the game user is lost.
In order to overcome the above-mentioned defects, referring to fig. 3B, fig. 3B is an optional flowchart of the service data processing method according to the embodiment of the present invention, and it can be understood that the steps shown in fig. 3B may be executed by various electronic devices operating the service data processing apparatus, for example, various game device servers or server groups with the service data processing apparatus, where a dedicated terminal with the service data processing apparatus may be packaged in the server 200 or the server 400 shown in fig. 1 to execute the corresponding software module in the service data processing apparatus shown in the previous fig. 2. The following is a description of the steps shown in fig. 3B.
Step 301: the service data processing device acquires first operating environment information of the service process in the first server.
Step 302: and the service data processing device responds to the operation instruction of the target user and acquires a first service data processing result of the service process in the first server.
When the business process is a game process, the first server may be an original server (referred to as an original server for short) of a game partition where the user is located, the second server may be a server (referred to as a cross-server for short) of a cross-service area where different game users are collected, and when a first business data processing result is obtained, user data of a target user may be stored in each client, where the target user may be a game user corresponding to a game account logged in on each client. The user data may include a plurality of data, and the plurality of data may be data required for the ranking of the target user in the game. The data needed for a ranking may be multiple types of data that form a ranking list, which may include, for example, points, virtual weapon quantities, different types of scores, ranking information, and so forth. The user data may be the same or different for different game leaderboards and is not particularly limited herein. The client is connected with the server through an external gateway of the server cluster, and uploads the user data to a branching interface which runs on the logic process and corresponds to each client. And caching the user data of all target users reported by the branching interfaces from each branching interface.
Step 303: and the service data processing device acquires second operation environment information of the service process in a second server and a second service data processing result of the target user in the second server.
Wherein the first server and the second server belong to different server groups.
In some embodiments of the present invention, when the service data processing result in the second server is obtained, the associated data reported by the branch interface may be used to extract information, and the associated data is used as user data. The association data is obtained by associating the game primary key with the user identifier and the plurality of data. Furthermore, the associated data can be obtained according to the game main key, the user identification and a plurality of data corresponding to the user identification. The game main key comprises a ranking list name rank _ name and a server number hostnum. The user identification value is the unique number uid of the target user, the plurality of data are a plurality of types of data corresponding to the user identification, and the score corresponding to the user identification can be obtained by combining the plurality of types of data. The target user reports the attribute parameters for ranking of the target user to the cache through the branching interface, and when the attribute parameters are reported, the game main key, the user identification and the data of multiple types are associated for reporting so as to ensure the accuracy of the data. After the associated data is obtained, the associated data can be reported to the cache as user data, so that the user data can be quickly extracted through the cache.
Step 304: and the service data processing device stores the first operation environment information, the second operation environment information, the first service data processing result and the second service data processing result in a target container.
In some embodiments of the present invention, the first operating environment information, the second operating environment information, the first service data processing result, and the second service data processing result are stored in the target container, and the following steps may be performed:
determining a container structure of the target container; determining data index information and data entity information in the target container based on the container structure of the target container and the parameters of the business process; and respectively storing the first operation environment information, the second operation environment information, the first service data processing result and the second service data processing result in different data indexes and data entities based on the data index information and the data entity information in the target container. Among other things, container technology is a technology that can effectively partition resource data of an application into isolated groups, so as to better balance conflicting resource usage requirements among the isolated groups. With the rise of container technology, more and more users choose to container an application (such as a game application, a live application, etc.) and provide a corresponding stateful service for the application by using a container cluster management system. When the WEB server is started, a shared storage area is created for each WEB application (each directory under webapps is an application), and a Servlet Context object associated with the shared storage area is obtained through an object of the current Servlet class, wherein the shared storage area Servlet Context is a Context. Referring to fig. 4, fig. 4 is an optional structural schematic diagram of a target container in an embodiment of the present invention, where the container shown in fig. 4 may store data of a game environment where a game user is originally served, such as: experience multiplying power, currency exchange rate, days to take, price of crust, etc. Everything that a game user might cause to data change, whether in a cross-uniform or original uniform, must be executed on the basis of the container. As shown in fig. 3, the context container includes each Server Id and its corresponding context data: an empirical context, a monetary context, a terrain context, etc. As shown in fig. 4, the Context data in the container Context adopts a scheme of separating data from the data index mid and the data entity, the index occupies 64 bytes of the memory, and the data entity occupies more than 1000 bytes of the memory. Since the context data required by different servers are different, for example, a newly opened game server, many game modes have not been opened due to the small number of days of opening, such as the Earth Mid game mode.
In some embodiments of the present invention, the data index information in the target container may also be traversed to determine invalid index information in the target container; and according to the invalid index information, dynamically recovering the storage space of the data entity matched with the invalid index information. Wherein, referring to fig. 4, whether to allocate the corresponding data entity may be determined by the validity of the index. In the context of the server shown in fig. 4, the index of the game mode of the floor is invalid, so that the context container does not need to allocate a memory for the index, and the storage efficiency of the service data can be effectively improved.
Step 305: and the business data processing device performs information synchronization between the first server and the second server based on the information stored in the target container.
Thereby, it is achieved that the first server and the second server keep the same information.
In some embodiments of the present invention, when the business process is a game process, context configuration information corresponding to a first server matched with the game process may be further determined; and configuring a corresponding number of second servers based on the context configuration information corresponding to the first server so as to enable the second servers to cover the target container corresponding to the context configuration information.
When the user executes a game process in the second server, referring to fig. 5, fig. 5 is an optional flowchart of the service data processing method provided in the embodiment of the present invention, it can be understood that the steps shown in fig. 5 may be executed by various electronic devices running the service data processing apparatus, for example, various game device servers or server groups with the service data processing apparatus, where a dedicated terminal with the service data processing apparatus may be packaged in the server 200 or the server 400 shown in fig. 1 to execute corresponding software modules in the service data processing apparatus shown in the foregoing fig. 2. The following is a description of the steps shown in fig. 5.
Step 501: and the service data processing device acquires a data change request of the target user in the second server.
Step 502: and the service data processing device responds to the data change request and acquires the context information stored in the target container corresponding to the second server.
Step 503: and the business data processing device executes a logic sub-process matched with the context information based on the business process.
Step 504: and the service data processing device stores the execution result of the logic subprocess in a corresponding target container. Referring to fig. 6, fig. 6 is a schematic diagram of service data processing in an embodiment of the present invention, where a game user may determine a corresponding context in an index container according to a Server Id in game user data when performing a game operation across servers, and when a service data change request occurs, extract the corresponding context and execute a logic processing process, so as to obtain a processing result the same as that in an original service.
In some embodiments of the present invention, based on the information stored in the target container, synchronizing information between the first server and the second server to achieve that the first server and the second server keep the same information may be achieved by:
monitoring the change of the context information in the first server; when the context information in the first server is determined to be changed, triggering a data synchronization process; and synchronizing the changed context information to a target container corresponding to the first server through the data synchronization process. Referring to fig. 7, fig. 7 is a schematic diagram of service data processing in an embodiment of the present invention, where the real-time variability of a Game process is strong, an operation instruction of a user is intensive, and a large number of participating users of a massively Multiplayer Online Role-Playing Game (MMORPG for short) is large, so that, in order to synchronize data in a first server and a second server in time, consistency detection may also be performed on context information in the first server and context information in the second server; when the context information in the first server is inconsistent with the context information in the second server, the second server sends a data synchronization request to the first server; and responding to the data synchronization request, and adjusting the information stored in the second server.
In some embodiments of the present invention, the service data processing method provided by the present application may also be implemented by a cloud game, where the game itself runs in a cloud server device, the game picture rendered by the cloud server device is encoded and then transmitted to the user terminal through a network, and the encoded file is decoded by the user terminal and then rendered to a display screen for displaying the game, so that the user does not need to install the game locally, and only needs to establish a communication network connection with the cloud to complete a game interaction process. The organization structure of the cloud game comprises a terminal and a cloud server, wherein the terminal is used for receiving control operation of a user on the game process and sending a control instruction corresponding to the control operation to the cloud server, and the cloud server is used for controlling the game process and sending a video stream in the game process to the terminal for playing. That is, in the organization structure of the cloud game, the terminal is mainly responsible for receiving the game video and the game audio of the corresponding server in the game process to render and play, and sends the operation of the game user on the terminal side (including but not limited to the operation that the game user realizes through mouse, keyboard, operation handle, voice command, touch command and the like) to the server through the signaling channel connected with the server, and the server sends the operation information to the mouse driving process, sound card driving process and keyboard driving process matched with each other, thereby realizing the control of the cloud game, specifically, the processing content of the cloud server includes: 1) calculating operation, game rendering, picture acquisition coding and sound card sound acquisition coding in the running process of the game of the cloud game, and sending video information and audio information subjected to coding processing to a terminal in a streaming media mode; 2) and receiving an operation instruction of the terminal, and sending the operation instruction to the corresponding mouse driving process, the sound card driving process and the keyboard driving process, thereby realizing the control of the cloud game. When acquiring service data in different servers, the following method can be used for realizing the following steps: when the business process is a game process, determining the identification information of the target user; determining a data source cluster matched with the identification information based on a cloud server network; according to the data source cluster, historical information of users matched with the target users is stored in the first server and the second server, and therefore the first server and the second server can update business data corresponding to the cloud game users in time.
Continuing with the exemplary structure of the business data processing apparatus 243 provided by the embodiment of the present invention implemented as software modules, in some embodiments, as shown in fig. 2, the software modules stored in the business data processing apparatus 243 of the memory 240 may include: information transmission module 2431, information processing module 2432.
The information transmission module 2431 is configured to obtain first operating environment information of the business process in the first server;
the information transmission module 2431 is configured to, in response to an operation instruction of a target user, obtain a first service data processing result of the service process in the first server;
the information transmission module 2431 is configured to obtain second operating environment information of the service process in a second server and a second service data processing result of the target user in the second server, where the first server and the second server belong to different server groups;
the information processing module 2432 is configured to store the first operating environment information, the second operating environment information, the first service data processing result, and the second service data processing result in a target container;
the information processing module 2432 is configured to perform information synchronization between the first server and the second server based on the information stored in the target container, so that the first server and the second server maintain the same information.
In some embodiments of the invention, the information processing module 2432 is configured to determine a container structure of the target container; the information processing module 2432 is configured to determine data index information and data entity information in the target container based on a container structure of the target container and the parameter of the business process; the information processing module 2432 is configured to store the first operation environment information, the second operation environment information, the first service data processing result, and the second service data processing result in different data indexes and data entities, respectively, based on the data index information and the data entity information in the target container.
In some embodiments of the present invention, the information processing module 2432 is configured to traverse the data index information in the target container, and determine invalid index information in the target container; the information processing module 2432 is configured to dynamically recycle, according to the invalid index information, a storage space of the data entity that matches the invalid index information.
In some embodiments of the present invention, the information processing module 2432 is configured to, when the business process is a game process, determine context configuration information corresponding to a first server matched to the game process; the information processing module 2432 is configured to configure a corresponding number of second servers based on the context configuration information corresponding to the first server, so as to enable the second servers to cover the target container corresponding to the context configuration information.
In some embodiments of the present invention, the information processing module 2432 is configured to obtain a data change request of a target user in the second server; the information processing module 2432 is configured to, in response to the data change request, obtain context information stored in a target container corresponding to the second server; the information processing module 2432 is configured to execute a logic sub-process matched with the context information based on the business process; the information processing module 2432 is configured to store the execution result of the logic sub-process in a corresponding target container.
In some embodiments of the present invention, the information processing module 2432 is configured to monitor a change of context information in the first server; the information processing module 2432 is configured to trigger a data synchronization process when it is determined that the context information in the first server changes; the information processing module 2432 is configured to synchronize the changed context information to the target container corresponding to the first server through the data synchronization process.
In some embodiments of the present invention, the information processing module 2432 is configured to perform consistency detection on the context information in the first server and the context information in the second server; the information processing module 2432 is configured to, when the context information in the first server and the context information in the second server are inconsistent, send a data synchronization request to the first server by the second server; the information processing module 2432 is configured to adjust the information stored in the second server in response to the data synchronization request.
In some embodiments of the present invention, the information processing module 2432 is configured to determine, when the business process is a game process, identification information of the target user; the information processing module 2432 is configured to determine, based on a cloud server network, a data source cluster matched with the identification information; the information processing module 2432 is configured to store history information of users matching the target user into the first server and the second server according to the data source cluster.
According to the service data processing apparatus shown in fig. 2, in one aspect of the present application, the present application further provides a computer program product or a computer program, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method provided in the various optional implementation modes of the business data processing method.
Embodiments of the present application provide a computer-readable storage medium storing executable instructions, where the executable instructions are stored, and when executed by a processor, the executable instructions will cause the processor to execute a method provided by embodiments of the present application, for example, a service data processing method as shown in fig. 3B.
The beneficial technical effects are as follows:
the method comprises the steps of obtaining first operation environment information of a service process in a first server; responding to an operation instruction of a target user, and acquiring a first service data processing result of the service process in a first server; acquiring second operation environment information of the service process in a second server and a second service data processing result of the target user in the second server, wherein the first server and the second server belong to different server groups; storing the first operation environment information, the second operation environment information, the first service data processing result and the second service data processing result in a target container; based on the information stored in the target container, information synchronization is performed between the first server and the second server to achieve that the first server and the second server keep the same information, so that not only can business data in different game servers be synchronized to the same server, and the accuracy and fairness of the business data are guaranteed, but also in the servers storing the data of the different game servers, user data change can be directly completed and stored into a database in real time, a user can experience data change in real time, delay waiting is reduced, and game experience of the user is effectively improved.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements, etc. that are within the spirit and principle of the present invention should be included in the present invention.

Claims (15)

1. A method for processing service data, the method comprising:
acquiring first running environment information of a business process in a first server;
responding to an operation instruction of a target user, and acquiring a first service data processing result of the service process in a first server;
acquiring second operation environment information of the service process in a second server and a second service data processing result of the target user in the second server, wherein the first server and the second server belong to different server groups;
storing the first operation environment information, the second operation environment information, the first service data processing result and the second service data processing result in a target container;
and performing information synchronization between the first server and the second server based on the information stored in the target container to realize that the first server and the second server keep the same information.
2. The method of claim 1, wherein the storing the first operating environment information, the second operating environment information, the first service data processing result, and the second service data processing result in a target container comprises:
determining a container structure of the target container;
determining data index information and data entity information in the target container based on the container structure of the target container and the parameters of the business process;
and respectively storing the first operation environment information, the second operation environment information, the first service data processing result and the second service data processing result in different data indexes and data entities based on the data index information and the data entity information in the target container.
3. The method of claim 1, further comprising:
traversing data index information in the target container, and determining invalid index information in the target container;
and according to the invalid index information, dynamically recovering the storage space of the data entity matched with the invalid index information.
4. The method of claim 1, further comprising:
when the business process is a game process, determining context configuration information corresponding to a first server matched with the game process;
and configuring a corresponding number of second servers based on the context configuration information corresponding to the first server so as to enable the second servers to cover the target container corresponding to the context configuration information.
5. The method of claim 1, further comprising:
acquiring a data change request of a target user in the second server;
responding to the data change request, and acquiring context information stored in a target container corresponding to the second server;
executing a logic sub-process matched with the context information based on the business process;
and storing the execution result of the logic subprocess in a corresponding target container.
6. The method of claim 1, wherein the synchronizing information between the first server and the second server based on the information stored in the target container to achieve that the first server and the second server maintain the same information comprises:
monitoring the change of the context information in the first server;
when the context information in the first server is determined to be changed, triggering a data synchronization process;
and synchronizing the changed context information to a target container corresponding to the first server through the data synchronization process.
7. The method of claim 1, further comprising:
performing consistency detection on the context information in the first server and the context information in the second server;
when the context information in the first server is inconsistent with the context information in the second server, the second server sends a data synchronization request to the first server;
and responding to the data synchronization request, and adjusting the information stored in the second server.
8. The method of claim 1, further comprising:
when the business process is a game process, determining the identification information of the target user;
determining a data source cluster matched with the identification information based on a cloud server network;
and according to the data source cluster, storing historical information of users matched with the target user into the first server and the second server.
9. A service data processing apparatus, characterized in that the apparatus comprises:
the information transmission module is used for acquiring first operating environment information of the business process in the first server;
the information transmission module is used for responding to an operation instruction of a target user and acquiring a first service data processing result of the service process in the first server;
the information transmission module is configured to acquire second operating environment information of the service process in a second server and a second service data processing result of the target user in the second server, where the first server and the second server belong to different server groups;
the information processing module is used for storing the first operation environment information, the second operation environment information, the first service data processing result and the second service data processing result in a target container;
the information processing module is configured to perform information synchronization between the first server and the second server based on the information stored in the target container, so that the first server and the second server maintain the same information.
10. The apparatus of claim 9,
the information processing module is used for determining the container structure of the target container;
the information processing module is used for determining data index information and data entity information in the target container based on the container structure of the target container and the parameters of the business process;
and the information processing module is used for respectively storing the first operation environment information, the second operation environment information, the first service data processing result and the second service data processing result in different data indexes and data entities based on the data index information and the data entity information in the target container.
11. The apparatus of claim 9,
the information processing module is used for traversing the data index information in the target container and determining invalid index information in the target container;
and the information processing module is used for dynamically recycling the storage space of the data entity matched with the invalid index information according to the invalid index information.
12. The apparatus of claim 9,
the information processing module is used for determining context configuration information corresponding to a first server matched with a game process when the business process is the game process;
the information processing module is configured to configure a corresponding number of second servers based on the context configuration information corresponding to the first server, so as to enable the second servers to cover the target container corresponding to the context configuration information.
13. The apparatus of claim 9,
the information processing module is used for acquiring a data change request of a target user in the second server;
the information processing module is used for responding to the data change request and acquiring context information stored in a target container corresponding to the second server;
the information processing module is used for executing a logic sub-process matched with the context information based on the business process;
and the information processing module is used for storing the execution result of the logic subprocess in a corresponding target container.
14. An electronic device, characterized in that the electronic device comprises:
a memory for storing executable instructions;
a processor, configured to execute the executable instructions stored in the memory, and implement the service data processing method according to any one of claims 1 to 8.
15. A computer-readable storage medium storing executable instructions, wherein the executable instructions, when executed by a processor, implement the business data processing method of any one of claims 1 to 8.
CN202011180532.XA 2020-10-29 2020-10-29 Business data processing method and device, electronic equipment and storage medium Active CN112156475B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011180532.XA CN112156475B (en) 2020-10-29 2020-10-29 Business data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011180532.XA CN112156475B (en) 2020-10-29 2020-10-29 Business data processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112156475A true CN112156475A (en) 2021-01-01
CN112156475B CN112156475B (en) 2022-04-12

Family

ID=73865141

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011180532.XA Active CN112156475B (en) 2020-10-29 2020-10-29 Business data processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112156475B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113476831A (en) * 2021-07-27 2021-10-08 北京果仁互动科技有限公司 Cross-service method, system and related device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107577475A (en) * 2017-08-22 2018-01-12 清华大学 A kind of software package management method and system of data center's group system
US20180046487A1 (en) * 2016-08-10 2018-02-15 Rackware, Inc. Container synchronization
CN109529357A (en) * 2018-11-21 2019-03-29 北京像素软件科技股份有限公司 Troop's data processing method and device
CN111736850A (en) * 2020-07-21 2020-10-02 腾讯科技(深圳)有限公司 Image processing method, apparatus, server and medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180046487A1 (en) * 2016-08-10 2018-02-15 Rackware, Inc. Container synchronization
CN107577475A (en) * 2017-08-22 2018-01-12 清华大学 A kind of software package management method and system of data center's group system
CN109529357A (en) * 2018-11-21 2019-03-29 北京像素软件科技股份有限公司 Troop's data processing method and device
CN111736850A (en) * 2020-07-21 2020-10-02 腾讯科技(深圳)有限公司 Image processing method, apparatus, server and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113476831A (en) * 2021-07-27 2021-10-08 北京果仁互动科技有限公司 Cross-service method, system and related device

Also Published As

Publication number Publication date
CN112156475B (en) 2022-04-12

Similar Documents

Publication Publication Date Title
CN110898428B (en) Multi-virtual object interaction method, device, server and storage medium
CN108037952B (en) Object operation processing method, object operation data generation method and device
EP4095693A1 (en) Data packet synchronization method and apparatus, device, and storage medium
WO2023279917A1 (en) On-screen comment displaying method and apparatus, on-screen comment transmitting method and apparatus, computer device, computer readable storage medium, and computer program product
US10051084B2 (en) Methods and systems for bandwidth-efficient remote procedure calls
JP2024519019A (en) Interface display method, device, equipment, and computer program
CN112156475B (en) Business data processing method and device, electronic equipment and storage medium
CN109873876B (en) Method for interaction and calculation load balanced distribution of distributed virtual environment
CN110580257A (en) Data sharing method, server and medium
US9977795B1 (en) System and method for multiplayer network gaming
CN110898425B (en) Information synchronization method and device, storage medium and electronic device
CN112891926A (en) Game terminal, cloud server, cloud game control method, and storage medium
US11878239B2 (en) Replay editor in video games
US11925861B2 (en) System for multiview games experience
CN112386906B (en) Media resource playing method and device, storage medium and electronic equipment
US20230065298A1 (en) Spectator system in online games
CN114887329A (en) Virtual object control method, device, equipment and storage medium
US9149725B2 (en) Method and server for PVP team matching in computer games
CN113018857A (en) Game operation data processing method, device, equipment and storage medium
CN113368493B (en) Flow processing method and device for virtual scene, electronic equipment and storage medium
CN111298432B (en) Virtual object information acquisition method and device, server and readable storage medium
WO2023246250A1 (en) Virtual scene synchronization method, virtual scene display method, apparatus and device
US11607613B2 (en) Method and apparatus for switching game mode, and electronic device
WO2024055811A1 (en) Message display method and apparatus, device, medium, and program product
WO2024045806A1 (en) Virtual scene-based skill acquisition method and apparatus, device, medium, and product

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40038163

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant