CN107590028B - Information processing method and server - Google Patents

Information processing method and server Download PDF

Info

Publication number
CN107590028B
CN107590028B CN201710830784.4A CN201710830784A CN107590028B CN 107590028 B CN107590028 B CN 107590028B CN 201710830784 A CN201710830784 A CN 201710830784A CN 107590028 B CN107590028 B CN 107590028B
Authority
CN
China
Prior art keywords
server
data
processing request
event processing
slave
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710830784.4A
Other languages
Chinese (zh)
Other versions
CN107590028A (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.)
Guangzhou Huaduo Network Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network 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 Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201710830784.4A priority Critical patent/CN107590028B/en
Publication of CN107590028A publication Critical patent/CN107590028A/en
Application granted granted Critical
Publication of CN107590028B publication Critical patent/CN107590028B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention provides an information processing method and a server, wherein the method comprises the following steps: the main server receives an event processing request; the main server executes the event processing request to exchange data with the slave server; and in the process that the master server executes the event processing request and exchanges data with the slave server, storing the correctly executed result data according to the time sequence. By implementing the embodiment of the invention, each operation of the main server can be replayed or rolled back, thereby ensuring the consistency of the data of the client and the server.

Description

Information processing method and server
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an information processing method and a server.
Background
The client side cannot obtain the response of the server after sending the event request information, so that bad use experience is brought to the user, and the interaction efficiency is low. This is because in the information processing scheme, the client initiates the event request information, and then waits for the server to process the request and then returns the result, so the request response of the client is slow.
Currently, a server immediately returns a result after receiving event request information initiated by a client, and then processes an event request. Such a processing scheme greatly reduces the request response time of the client, but has a problem in that if the data of the server is confused, the scheme causes inconsistency of the data of the client and the server.
Disclosure of Invention
The embodiment of the invention provides an information processing method and a server, which can enable each operation of the server to be replayed or backed in the process of processing event request information sent by a client by the server, thereby ensuring the data consistency of the client and the server.
In a first aspect, an embodiment of the present invention provides an information processing method, where the method includes:
the main server receives an event processing request;
the main server executes the event processing request to exchange data with the slave server;
and in the process that the master server executes the event processing request and exchanges data with the slave server, storing the correctly executed result data according to the time sequence.
In a second aspect, an embodiment of the present invention provides a server, where the server includes:
a request receiving unit, configured to receive an event processing request by the server;
a data exchange unit, configured to perform data exchange between the server and the slave server when the server executes the event processing request;
and a data storage unit, configured to store, by the server, the correctly executed result data in chronological order during the process of performing the event processing request and exchanging data with the slave server.
In a third aspect, an embodiment of the present invention provides another server, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store a computer program that supports the server to execute the method, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, the computer program comprising program instructions that, when executed by a processor, cause the processor to perform the method of the first aspect.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the master server stores the correctly executed result data in time sequence in the process of performing data exchange between the received event processing request and the slave server. Therefore, the main server can acquire the result data after the operations are executed correctly at any time and execute the operations again, so that each operation of the main server can be replayed or backed. Consistency of client and server data may be guaranteed if the primary server performs replay or rollback of operations in the event of data corruption.
Drawings
In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings used in the description of the embodiment will be briefly introduced below.
FIG. 1 is a schematic diagram of an information processing scheme provided by an embodiment of the invention;
FIG. 2 is a schematic diagram of an information processing scheme provided by an embodiment of the invention;
FIG. 3 is a schematic flow chart diagram of an information processing method provided by an embodiment of the invention;
FIG. 4 is a schematic flow chart diagram of another information processing method provided by an embodiment of the invention;
FIG. 5 is a schematic diagram of a client check-in interface provided by an embodiment of the invention;
FIG. 6 is a schematic diagram of a user's personal information card provided by an embodiment of the present invention;
FIG. 7 is a diagram illustrating a check-in growth according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a gift bag corresponding to the current monthly cumulative check-in according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of experience value corresponding medal provided by the embodiment of the present invention;
FIG. 10 is a schematic view showing the acquisition of medals and titles provided by the embodiment of the present invention;
FIG. 11 is a schematic block diagram of a server provided by an embodiment of the present invention;
FIG. 12 is a schematic block diagram of a server provided by another embodiment of the present invention;
fig. 13 is a schematic block diagram of a server according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In particular implementations, the terminal devices described in embodiments of the invention include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the devices described above are not portable communication devices, but rather are desktop computers having touch-sensitive surfaces (e.g., touch screen displays and/or touch pads).
The client side cannot obtain the response of the server in time after sending the request information, so that bad use experience is brought to the user, and low interaction efficiency is caused. This is because, in this information processing scheme, the client initiates the event request information, and then waits for the server to process the request and then returns the result, so the request response of the client is slow. Here, taking a client check-in event as an example, referring to fig. 1, fig. 1 is a schematic diagram of an information processing scheme provided by an embodiment of the present invention. After the client sends the sign-in event request to the master server, the master server performs data exchange with the user information slave server, the event state slave server and the gift slave server in sequence, executes the sign-in event request and finally returns the sign-in successful information to the client. The response time RT1 for this information processing scheme is T1+ T2+ T3+ T4+ T5+ T6+ T7+ T8+ T9.
At present, a server side immediately returns a result after receiving request information initiated by a client side and then processes a request, and the processing scheme greatly shortens the request response time of the client side. Taking the client check-in event as an example, referring to fig. 2, fig. 2 is a schematic diagram of an existing information processing scheme of the client check-in event. After the client sends the sign-in event request to the master server, the master server immediately returns the successful sign-in information to the client, then performs data exchange with the user information slave server, the event state slave server and the gift server in sequence, and executes the sign-in event request, and the response time RT2 of the scheme is T1+ T9, so that the request response time of the user side is greatly shortened.
However, the second solution has a problem that if the data of the server is confused, the solution causes a problem that the data of the client and the server are inconsistent.
Referring to fig. 3, fig. 3 is a schematic flow chart of an information processing method according to an embodiment of the present invention, where the information processing method includes:
301. the master server receives an event processing request.
In this embodiment of the present invention, the event processing request may be any event processing request sent by the client to the server, for example, a check-in request, a transfer request, an information sending request, and the like.
302. And the master server executes the event processing request to exchange data with the slave server.
In this embodiment of the present invention, the master server may perform data exchange with any slave server according to a requirement for executing the event processing request, for example, obtain user information from the slave server for user information, obtain event state information from the slave server for event state, and the like.
303. And in the process that the master server executes the event processing request and exchanges data with the slave server, storing the correctly executed result data according to the time sequence.
It can be understood that, in the embodiment of the present invention, the master server stores the correctly executed result data in chronological order during the process of performing data exchange between the received event processing request and the slave server. Therefore, the main server can acquire the result data after the operations are executed correctly at any time and execute the operations again, so that each operation of the main server can be replayed or backed. Consistency of client and server data may be guaranteed if the primary server performs replay or rollback of operations in the event of data corruption.
As an optional implementation manner, in the process that the master server performs the event processing request to perform data exchange with the slave server, if an exception occurs, the result data of the last or previous correct execution is obtained, and then the event processing request is continuously performed to perform data exchange with the slave server.
It can be understood that, in the case that the exchange of data between the master server and the slave server is abnormal, the present embodiment may obtain result data that is correctly executed any time before, and then continue to execute the event processing request to exchange data with the slave server. The main server can start to execute the event processing request again from any previous operation step, and the correctness of the operation executed by the main server and the consistency of the data of the client and the server are ensured.
As an optional implementation, the occurrence of the anomaly includes: the time for the master server to execute the event processing request and exchange data with the slave server is longer than the preset time; or, in the process that the master server executes the event processing request and exchanges data with the slave server, a program of the server is in error.
In the present embodiment, there are generally two main causes of server data confusion: the method comprises the following steps that firstly, network jitter refers to the situation that congestion occurs in a network and end-to-end delay is affected, so that the jitter causes the problems of packet loss and disorder easily occur in transmission with large data volume; secondly, the program of the server is wrong, and when the program of the server is wrong, data confusion can be caused.
As an optional implementation, the method further includes: after the master server receives an event processing request in 301, before the master server performs data exchange with a slave server in 302, the data of the master server is initial data; and if the server obtains the result data which is executed correctly at the latest time or before the latest time at least three times, the main server obtains the initial data and sends alarm information to the client.
It can be understood that, in the present embodiment, when the main server obtains result data that is correctly executed before multiple times, and performs playback or rollback of an operation, and if an abnormal condition still occurs, the main server sends alarm information to the client, obtains initial data, and returns to an event unprocessed state. The consistency of the data of the client and the server is further ensured.
Referring to fig. 4, fig. 4 is a schematic flowchart of another information processing method according to an embodiment of the present invention, where the information processing method includes:
401. the master server receives an event processing request.
In this embodiment of the present invention, the event processing request may be an event processing request such as a check-in request, and the embodiment of the present invention is not limited.
For example, referring to fig. 5, fig. 5 is a schematic diagram of a client check-in interface according to an embodiment of the present invention. The user can enter a certain live broadcast room, open the check-in calendar to check in, and click the sign icon when the date of the day is selected, namely, check-in request information is sent to the server. The server side can immediately return prompt information of successful sign-in, namely the sign icon is displayed as a check-up icon, and the corresponding continuous sign-in reward icon is lightened.
402. The main server obtains user information from the user information slave server, wherein the user information comprises a first user weight.
In this embodiment of the present invention, the user information includes a user name, a current experience value, an integral and other basic information of the user, and the first user weight may be a value that may be increased or decreased, such as a similar user experience value and an integral, and the embodiment of the present invention is not limited.
For example, referring to fig. 6, fig. 6 is a schematic diagram of a user's personal information card according to an embodiment of the present invention, which includes part of user information. Wherein the user title, current experience value, consecutive check-in days, cumulative check-in days in the month are displayed; clicking the immediate sign-in button to enter a corresponding application interface for sign-in operation; the receiving record comprises a receiving record of the user receiving the accumulated attendance gift bag.
403. The master server acquires the state information of the completed event from the event state slave server; the main server determines an added value according to the state information of the completed event, and the main server obtains the first user weight according to the sum of the first user weight and the added value.
For example, referring to fig. 7, fig. 7 is a schematic diagram of a check-in growth description provided by an embodiment of the invention. Wherein the check-in specification describes the number of consecutive check-in days corresponding to the learned experience value (i.e., the incremental value described above). After the main server obtains the state information that the sign-in is completed, the experience value is determined and obtained according to the number of days of continuous sign-in, and the current experience value (the second user weight value) of the user is obtained by adding the original experience value (the first user weight value) of the user. The acquired experience value can be corresponding to the number of days for which the user continuously signs in and the corresponding experience value is issued according to the days, and the corresponding gift bag can be picked up to acquire the corresponding experience value according to the number of days for which the user accumulatively signs in the current month. Referring to fig. 8, fig. 8 is a schematic diagram of a gift bag corresponding to the current month accumulated check-in according to an embodiment of the present invention.
404. And the main server acquires a corresponding target object from the object slave server according to the second user weight value.
For example, referring to FIG. 7, FIG. 7 is a diagram illustrating sign-in growth according to the embodiment of the present invention, and FIG. 9 is a diagram illustrating a medal corresponding to experience values according to the embodiment of the present invention, where FIG. 9 depicts a hierarchy of experience values corresponding to levels, where experience values reach certain values to reach corresponding levels, and each level has a corresponding title and a corresponding medal. The main server can acquire the corresponding medal and title number from the gift server according to the level system. Referring to FIG. 10, FIG. 10 is a schematic view showing the acquisition of medals and titles provided by the embodiment of the present invention. The values, grades, titles and upgrading progress of the experience values are displayed in the personal information card of the special topic page, and meanwhile, corresponding grade medals and titles are also displayed in the mini data card.
405. And in the process that the master server executes the event processing request and exchanges data with the slave server, storing the correctly executed result data in a time sequence.
406. And in the process that the master server executes the event processing request to exchange data with the slave server, if an exception occurs, acquiring the result data which is executed correctly at the latest time or before the latest time, and then continuously executing the event processing request to exchange data with the slave server.
It can be understood that, in the embodiment of the present invention, in the process that the master server executes the received event processing request to sequentially perform data exchange with the user information slave server, the event state slave server, and the object slave server, the correctly executed result data is saved in chronological order, and in the case of an abnormality, the correctly executed result data is obtained last time or before last time, and then the event processing request is continuously executed to perform data exchange with the slave server. Therefore, under the condition of data confusion, the main server acquires the result data after the operation is correctly executed before, and executes the operation again, so that each operation of the main server can be replayed or backed, and the data consistency of the client and the server is ensured.
As an optional implementation manner, in the process that the master server obtains the corresponding target object from the object slave server according to the second user weight, if an abnormality occurs, the result data that is correctly executed last time or before last time is obtained, and then the corresponding target object is continuously obtained from the object slave server according to the second user weight.
For example, as shown in fig. 2, after receiving the check-in request sent by the client, the host server immediately returns the information of successful check-in, and the user may consider that the check-in event is completed and should obtain the gift corresponding to the check-in event. However, if an abnormality occurs in the data interaction process between the master server and the gift slave server, the gift cannot be obtained in time, and the data of the client and the server are inconsistent. Therefore, the result data which is correctly executed the last time or before the last time is obtained in time, and then the corresponding gift is continuously obtained from the server at the gift, so that the consistency of the data of the client and the server is favorably ensured.
As an optional implementation, the occurrence of the anomaly includes: the time for the master server to obtain the corresponding target object from the object slave server according to the second user weight is longer than the preset time; or, the main server makes a program of the server wrong in the process of acquiring the corresponding target object from the server by the object according to the second user weight. The implementation method is the same as the information processing method shown in fig. 3, and is not described in detail here.
As an optional implementation, the method further includes: after the master server receives an event processing request, before the master server performs data exchange with a slave server in response to the event processing request, the data of the master server is initial data; and if the main server obtains the result data which is executed correctly at the latest time or before the latest time at least three times, the main server obtains the initial data and sends alarm information to the client. The implementation method is the same as the information processing method shown in fig. 3, and is not described in detail here.
The embodiment of the present invention further provides a server, where the server is configured to execute the units of the method shown in fig. 3. Specifically, referring to fig. 11, fig. 11 is a schematic block diagram of a server according to an embodiment of the present invention. The server of the embodiment includes: request receiving section 1101, data exchange section 1102, and data storage section 1103.
A request receiving unit 1101 for receiving an event processing request;
a data exchange unit 1102, configured to perform data exchange between the event processing request and the slave server;
a data saving unit 1103, configured to save, in chronological order, the result data that has been correctly executed in the process of performing the event processing request and exchanging data with the slave server.
The implementation method is the same as the information processing method shown in fig. 3, and is not described in detail here.
As an optional implementation, the server further includes: and the data acquisition unit is used for acquiring the result data which is correctly executed last time or before the last time if an abnormality occurs in the process of executing the event processing request and exchanging data with the slave server, and then continuing to execute the event processing request and exchanging data with the slave server. The implementation method is the same as the information processing method shown in fig. 3, and is not described in detail here.
As an optional implementation, the occurrence of the anomaly includes: the time for the server to execute the event processing request and exchange data with the slave server is longer than the preset time; or, in the process that the server executes the event processing request and exchanges data with the slave server, a program of the server is in error. The implementation method is the same as the information processing method shown in fig. 3, and is not described in detail here.
As an optional implementation, the server further includes: initial data storage means for storing initial data of the server, the initial data being data of the server after the request receiving means receives the event processing request and before the data exchanging means exchanges data with the slave server by executing the event processing request; and the warning unit is used for acquiring the initial data and sending warning information to the client under the condition of acquiring the result data which is executed correctly at the latest time or before the latest time for at least three times. The implementation method is the same as the information processing method shown in fig. 3, and is not described in detail here.
Referring to fig. 12, fig. 12 is a schematic block diagram of another server according to the embodiment of the present invention. The server shown in fig. 12 is further optimized based on the server shown in fig. 11. Compared to the server shown in fig. 11, the data exchange unit 1202 of the server shown in fig. 12 includes:
a user information obtaining subunit 1203, configured to obtain user information from the server at the user information, where the user information includes a first user weight;
a state information acquiring subunit 1204, configured to acquire, from the server in the event state, state information that the event has been completed;
a user weight processing subunit 1205, configured to determine an added value according to the state information that the event has been completed, and obtain a second user weight according to a sum of the first user weight and the added value;
and a target object obtaining subunit 1206, configured to obtain, according to the second user weight, a corresponding target object from the server.
The server shown in fig. 12 further includes:
a data obtaining unit 1208, configured to, in a process of performing data exchange between the event processing request and the slave server, if an exception occurs, obtain result data that is correctly performed last time or before last time, and then continue to perform data exchange between the event processing request and the slave server.
The implementation method is the same as the information processing method shown in fig. 4, and is not described in detail here.
As an optional implementation manner, the data obtaining unit is further configured to: and if the second user weight value is abnormal in the process of acquiring the corresponding target object from the server, acquiring the result data which is correctly executed for the last time or before the last time, and then continuously acquiring the corresponding target object from the server according to the second user weight value. The implementation method is the same as the information processing method shown in fig. 4, and is not described in detail here.
Referring to fig. 13, a schematic block diagram of a server according to another embodiment of the present invention is shown. The server in this embodiment as shown in the figure may include: one or more processors 1301; one or more input devices 1302, one or more output devices 1303, and memory 1304. The processor 1301, the input device 1302, the output device 1303, and the memory 1304 are connected by a bus 1305. The memory 1302 is used to store a computer program comprising program instructions, and the processor 1301 is used to execute the program instructions stored in the memory 1302. Wherein the processor 1301 is configured to invoke the program instruction to perform the following operations:
the main server receives an event processing request;
the main server executes the event processing request to exchange data with the slave server;
and in the process that the master server executes the event processing request and exchanges data with the slave server, storing the correctly executed result data according to the time sequence.
It should be understood that, in the embodiments of the present invention, the Processor 1301 may be a Central Processing Unit (CPU), and the Processor may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 1302 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, etc., and the output device 503 may include a display (LCD, etc.), a speaker, etc.
The memory 1304, which may include both read-only memory and random-access memory, provides instructions and data to the processor 1301. A portion of the memory 1304 may also include non-volatile random access memory. For example, the memory 1304 may also store device type information.
In specific implementation, the processor 1301, the input device 1302, and the output device 1303 described in this embodiment of the present invention may execute the implementation manners described in the first embodiment and the second embodiment of the endurance test method provided in this embodiment of the present invention, and may also execute the implementation manner of the server described in this embodiment of the present invention, which is not described herein again.
In another embodiment of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program comprising program instructions that when executed by a processor implement:
the main server receives an event processing request;
the main server executes the event processing request to exchange data with the slave server;
and in the process that the master server executes the event processing request and exchanges data with the slave server, storing the correctly executed result data according to the time sequence.
The computer readable storage medium may be an internal storage unit of the server in any of the foregoing embodiments, for example, a hard disk or a memory of the server. The computer readable storage medium may be an external storage device of the server, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided in the server. Further, the computer-readable storage medium may include both an internal storage unit and an external storage device of the server. The computer-readable storage medium is used for storing the computer program and other programs and data required by the server. The above-described computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the server and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed server and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the above-described division of units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, the technical solution of the present invention essentially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method in the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

Claims (13)

1. An information processing method characterized by comprising:
the main server receives an event processing request; returning successful information to a sender of the event processing request before the event requested by the event processing request is executed;
the master server executes the event processing request to exchange data with the slave server; after the master server receives the event processing request and before the master server executes the event processing request and exchanges data with the slave server, the data of the master server is initial data;
in the process that the master server executes the event processing request and exchanges data with the slave server, storing correctly executed result data according to the time sequence;
and in the process that the master server executes the event processing request to exchange data with the slave server, if an exception occurs, acquiring the result data which is executed correctly at the latest time or before the latest time, and then continuously executing the event processing request to exchange data with the slave server.
2. The method of claim 1, wherein the occurrence of an anomaly comprises:
the time for the master server to execute the event processing request and exchange data with the slave server is longer than the preset time;
or, in the process that the master server executes the event processing request to exchange data with the slave server, a program of the server generates an error.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and if the main server obtains the result data which is executed correctly at the latest time or before the latest time at least three times, the main server obtains the initial data and sends alarm information to the client.
4. The method of claim 1, wherein the master server performs the event processing request to exchange data with the slave server, and wherein the method comprises:
the master server acquires user information from a user information slave server, wherein the user information comprises a first user weight;
the master server acquires state information that the event is completed from the event state slave server; the main server determines an added value according to the state information of the completed event, and the main server obtains a second user weight according to the sum of the first user weight and the added value;
and the master server acquires a corresponding target object from the object slave server according to the second user weight.
5. The method of claim 4, wherein, in the process that the master server performs the data exchange between the event processing request and the slave server, if an exception occurs, acquiring the result data that was executed correctly last time or before the last time, and then continuing to perform the data exchange between the event processing request and the slave server comprises:
and if the abnormality occurs in the process that the main server acquires the corresponding target object from the object slave server according to the second user weight, acquiring the result data which is correctly executed last time or before the last time, and then continuously acquiring the corresponding target object from the object slave server according to the second user weight.
6. The method of claim 5, wherein the occurrence of an anomaly comprises:
the time for the master server to obtain the corresponding target object from the object slave server according to the second user weight is longer than the preset time;
or, the main server makes a program of the server wrong in the process of acquiring the corresponding target object from the server by the object according to the second user weight.
7. The method of claim 5 or 6, further comprising:
after the master server receives the event processing request and before the master server executes the event processing request and exchanges data with the slave server, the data of the master server is initial data;
and if the main server obtains the result data which is executed correctly at the latest time or before the latest time at least three times, the main server obtains the initial data and sends alarm information to the client.
8. A server, comprising:
a request receiving unit for receiving an event processing request;
means for returning successful information to a sender of the event processing request before the event requested by the event processing request is executed;
the data exchange unit is used for executing the event processing request and exchanging data with the slave server;
an initial data storage unit, configured to store initial data of the server, where the initial data is data of the server after the request receiving unit receives the event processing request and before the data exchange unit performs data exchange between the event processing request and the slave server;
a data saving unit, configured to save, in a process in which the data exchange unit executes the event processing request and exchanges data with the slave server, result data that has been correctly executed in chronological order;
and the data acquisition unit is used for acquiring the result data which is correctly executed last time or before the last time if an exception occurs in the process of executing the event processing request and exchanging data with the slave server, and then continuing to execute the event processing request and exchanging data with the slave server.
9. The server according to claim 8, wherein the occurrence of the anomaly comprises:
the time for the server to execute the event processing request and exchange data with the slave server is longer than the preset time;
or, in the process that the server executes the event processing request and exchanges data with the slave server, a program of the server generates an error.
10. The server according to claim 8 or 9, wherein the server further comprises:
and the warning unit is used for acquiring the initial data and sending warning information to the client under the condition that the result data which is executed correctly at the latest time or before the latest time is acquired at least three times.
11. The server according to claim 8, wherein the data exchange unit of the server comprises:
the user information obtaining subunit is used for obtaining user information from the server at the user information, wherein the user information comprises a first user weight;
a state information acquiring subunit, configured to acquire state information that the event is completed from the server in the event state;
a user weight processing subunit, configured to determine an added value according to the state information that the event has been completed, and obtain a second user weight according to a sum of the first user weight and the added value;
and the target object obtaining subunit is used for obtaining the corresponding target object from the server according to the second user weight.
12. The server according to claim 11, wherein the data obtaining unit is further configured to:
and in the process of acquiring the corresponding target object from the server according to the second user weight, if an abnormality occurs, acquiring the result data which is correctly executed for the last time or before the last time, and then continuously acquiring the corresponding target object from the server according to the second user weight.
13. A server comprising a processor, an input device, an output device and a memory, the processor, the input device, the output device and the memory being interconnected, wherein the memory is configured to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any of claims 1 to 7.
CN201710830784.4A 2017-09-14 2017-09-14 Information processing method and server Active CN107590028B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710830784.4A CN107590028B (en) 2017-09-14 2017-09-14 Information processing method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710830784.4A CN107590028B (en) 2017-09-14 2017-09-14 Information processing method and server

Publications (2)

Publication Number Publication Date
CN107590028A CN107590028A (en) 2018-01-16
CN107590028B true CN107590028B (en) 2021-05-11

Family

ID=61051636

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710830784.4A Active CN107590028B (en) 2017-09-14 2017-09-14 Information processing method and server

Country Status (1)

Country Link
CN (1) CN107590028B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112615901B (en) * 2020-11-26 2022-07-12 新华三大数据技术有限公司 Method for sending user request by client and storage system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5140689A (en) * 1989-05-25 1992-08-18 Kabushiki Kaisha Toshiba Data recovery system and method of distributed transaction processing system
CN101576915A (en) * 2009-06-18 2009-11-11 北京大学 Distributed B+ tree index system and building method
CN102696205A (en) * 2010-01-06 2012-09-26 日本电气株式会社 Communication control system and communication control method
WO2013072451A2 (en) * 2011-11-18 2013-05-23 Universidad Politécnica de Madrid System and method for highly scalable decentralized and low contention transactional processing x
CN105450730A (en) * 2015-11-05 2016-03-30 北京奇虎科技有限公司 Method and apparatus for processing request from client
CN105938446A (en) * 2016-01-12 2016-09-14 上海交通大学 Data copying and fault-tolerance method based on support of RDMA and HTM
CN106484548A (en) * 2016-10-20 2017-03-08 济南浪潮高新科技投资发展有限公司 A kind of choreography request response processing method based on asynchronism callback mechanism
CN106502825A (en) * 2016-10-13 2017-03-15 中国联合网络通信集团有限公司 Data processing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7174479B2 (en) * 2003-09-10 2007-02-06 Microsoft Corporation Method and system for rollback-free failure recovery of multi-step procedures
ATE361495T1 (en) * 2004-03-18 2007-05-15 Alcatel Lucent METHOD AND DEVICE FOR DATA SYNCHRONIZING A DISTRIBUTED DATABASE SYSTEM
US9858305B2 (en) * 2014-03-06 2018-01-02 International Business Machines Corporation Restoring database consistency integrity

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5140689A (en) * 1989-05-25 1992-08-18 Kabushiki Kaisha Toshiba Data recovery system and method of distributed transaction processing system
CN101576915A (en) * 2009-06-18 2009-11-11 北京大学 Distributed B+ tree index system and building method
CN102696205A (en) * 2010-01-06 2012-09-26 日本电气株式会社 Communication control system and communication control method
WO2013072451A2 (en) * 2011-11-18 2013-05-23 Universidad Politécnica de Madrid System and method for highly scalable decentralized and low contention transactional processing x
CN105450730A (en) * 2015-11-05 2016-03-30 北京奇虎科技有限公司 Method and apparatus for processing request from client
CN105938446A (en) * 2016-01-12 2016-09-14 上海交通大学 Data copying and fault-tolerance method based on support of RDMA and HTM
CN106502825A (en) * 2016-10-13 2017-03-15 中国联合网络通信集团有限公司 Data processing method and device
CN106484548A (en) * 2016-10-20 2017-03-08 济南浪潮高新科技投资发展有限公司 A kind of choreography request response processing method based on asynchronism callback mechanism

Also Published As

Publication number Publication date
CN107590028A (en) 2018-01-16

Similar Documents

Publication Publication Date Title
CN104216793B (en) Application Backup, the method and apparatus recovered
WO2018019139A1 (en) Information pushing method and device
CN111800462B (en) Micro service instance processing method, micro service instance processing device, computer equipment and storage medium
CN110659256B (en) Multi-computer room synchronization method, computing device and computer storage medium
CN109815746B (en) Data tamper-proofing method and system based on block chain technology
EP2660761A1 (en) Timestamp management method for data synchronization and terminal therefor
CN102971711A (en) An apparatus for processing a batched unit of work
CN110753084B (en) Uplink data reading method, cache server and computer readable storage medium
US20210248161A1 (en) Deferred synchronization for work unit-related data
WO2019140739A1 (en) Method for determining return visits to client, and electronic apparatus and computer-readable storage medium
CN104216802B (en) Memory database recovery method and device
CN107908340A (en) Method, mobile terminal and the device with store function of factory reset
CN107590028B (en) Information processing method and server
CN114780019A (en) Electronic device management method and device, electronic device and storage medium
CN111028074B (en) Method, system, server and storage medium for updating and inquiring overdue bill
CN109960659B (en) Method and device for detecting application program
US10146644B2 (en) Integrity of transactional memory of card computing devices in case of card tear events
WO2019062087A1 (en) Attendance check data testing method, terminal and device, and computer readable storage medium
CN113434069A (en) Menu configuration method, device, equipment and storage medium
CN110837433A (en) Performance optimization method and device and electronic equipment
CN106953791B (en) Information sending method and device
CN113760631A (en) Page loading duration determination method, device, equipment and storage medium
CN114817820B (en) Early warning method for website data upgrading and related device
CN110008283B (en) Data processing method and device based on data tag
CN110362422A (en) A kind of data back up method, apparatus and system

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
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20180116

Assignee: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Assignor: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

Contract record no.: X2021440000031

Denomination of invention: A method and server of information processing

License type: Common License

Record date: 20210125

EE01 Entry into force of recordation of patent licensing contract
GR01 Patent grant
GR01 Patent grant