Information processing method and device, equipment, storage medium and program product

By using information reporting variables in the information processing method to judge the reporting status of data change information and make supplementary reports when necessary, the problem of data change information being unable to be reported to the data change control platform is solved, and data consistency and efficient platform operation is achieved.

CN119719119APending Publication Date: 2025-03-28BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411546082.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

When the processing logic corresponding to the data change cannot execute the information reporting logic due to missed writes or failures, the changed data cannot be reported to the data change control platform, resulting in the data in the data change control platform being unable to be consistent with the actual situation, which in turn brings a series of bad impacts such as decision-making errors, economic losses, and decline in user experience to the B-end platform or other distributed systems.

Method used

The reporting status of data change information is judged by the value of the information reporting variable. After the business module processes the business request, if the information reporting variable is still the first reporting mark, the data change information is reported to the data change control platform to prevent the missed reporting of the data change information, and at the same time, the supplementary reporting of the data change information is completed.

Benefits of technology

Through this method, the consistency of data and the efficient operation of the platform/system are ensured, the missed report of data change information is prevented, and the supplementary report of data change information is realized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119719119A_ABST
    Figure CN119719119A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to an information processing method and device, equipment, a storage medium and a program product. The method comprises the following steps: in response to a received service request, initializing an information reporting variable corresponding to the service request into a first reporting identifier; processing the service request through the service module to obtain a processing result; if it is detected that the processing result carries out data change on the storage space, data change information is generated based on the service request and state information before and / or after the processing result carries out data change on the storage space; and if the information reporting variable is the first reporting identifier, reporting the data change information to a data change management and control platform. According to the embodiment of the invention, through the mode, missing report of the data change information is prevented, and data consistency and efficient operation of a platform / system are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to an information processing method, apparatus, device, storage medium and program product. Background Art

[0002] At present, in order to ensure the normal operation of the business and the ability to repair and tolerate failures, platforms or systems of a certain scale (such as distributed systems, etc.) can report and store the relevant information of the change operation to another data management and control platform (also called a data change management and control platform) when the business operation causes changes to the data in its storage space (such as adding new data, modifying original data, or deleting data, etc.). In this way, when the original platform or system needs to be repaired due to business needs or failures, data recovery processing can be performed through the relevant information in the data change management and control platform to ensure the accuracy and consistency of the data.

[0003] However, when the processing logic corresponding to the data change cannot execute the information reporting logic due to omissions or failures, the changed data cannot be reported to the data change management and control platform, resulting in the data in the data change management and control platform being inconsistent with the actual situation, which in turn brings a series of adverse effects to the B-side platform or other distributed systems, such as decision-making errors, economic losses, and reduced user experience. Summary of the invention

[0004] In order to solve the above technical problems, the embodiments of the present disclosure provide an information processing method, apparatus, device, storage medium and program product.

[0005] In a first aspect, an embodiment of the present disclosure provides an information processing method, the method comprising:

[0006] In response to the received business request, the information reporting variable corresponding to the business request is initialized to the first reporting identifier; wherein the first reporting identifier is used to indicate that the data change information of the storage space has not been reported to the data change management and control platform; the business request is processed by the business module to obtain the processing result; if it is detected that the processing result makes a data change to the storage space, the state information of the storage space before and / or after the data change is generated based on the business request and the processing result; if the information reporting variable is the first reporting identifier, the data change information is reported to the data change management and control platform.

[0007] In a second aspect, an embodiment of the present disclosure further provides an information processing device, the device comprising:

[0008] An initialization module is used to initialize the information reporting variable corresponding to the business request to a first reporting identifier in response to a received business request; wherein the first reporting identifier is used to indicate that the data change information of the storage space has not been reported to the data change management and control platform; a processing module is used to process the business request through the business module to obtain the processing result; a generation module is used to generate data change information based on the business request and the processing result if it is detected that the processing result causes a data change to the storage space, and the state information of the storage space before and / or after the data change is generated; a reporting module is used to report the data change information to the data change management and control platform if the information reporting variable is the first reporting identifier.

[0009] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:

[0010] processor;

[0011] A memory for storing executable instructions;

[0012] The processor is used to read executable instructions from the memory and execute the executable instructions to implement the information processing method described in any embodiment of the present disclosure.

[0013] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the processor implements the information processing method described in any embodiment of the present disclosure.

[0014] In a fifth aspect, the embodiments of the present disclosure further provide a computer program product, which is used to execute the information processing method described in any embodiment of the present disclosure.

[0015] The information processing method, apparatus, device, storage medium and program product of the disclosed embodiments initialize the information reporting variable corresponding to the business request to the first reporting identifier in response to the received business request; and process the business request through the business module to obtain the processing result; if it is detected that the processing result makes a data change to the storage space, then based on the business request and the processing result, the state information of the storage space before and / or after the data change is generated, data change information; if the information reporting variable is the first reporting identifier, the data change information is reported to the data change management and control platform; this embodiment determines the reporting status of the data change information by the value of the information reporting variable, and after the business module processes the business request, if the information reporting variable is still the first reporting identifier, the data change information is reported to the data change management and control platform, thereby preventing the underreporting of the data change information and completing the supplementary reporting of the data change information, thereby ensuring the consistency of the data and the efficient operation of the platform / system.

[0016] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the embodiments of the present disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0018] Figure 1 A flowchart of an information processing method provided by an embodiment of the present disclosure;

[0019] Figure 2 A flowchart of another information processing method provided by an embodiment of the present disclosure;

[0020] Figure 3 A schematic diagram of the structure of an information processing device provided by an embodiment of the present disclosure;

[0021] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0022] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0023] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0024] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0025] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0026] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0027] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0028] At present, in order to ensure the normal operation of the business and the ability to repair and tolerate failures, platforms of a certain scale (such as B-side platforms that provide services or products to corporate users) or systems (such as distributed systems) can report and store the relevant information of the change operation to another data management and control platform (also called a data change management and control platform) when the business operation causes changes to the data in its storage space (such as adding new data, modifying original data, or deleting data). In this way, when the original platform or system needs to be repaired due to business needs or failures, data recovery processing can be performed through the relevant information in the data change management and control platform to ensure the accuracy and consistency of the data.

[0029] However, when the processing logic corresponding to the data change cannot execute the information reporting logic due to omissions or failures, the changed data cannot be reported to the data change management and control platform, resulting in the data in the data change management and control platform being inconsistent with the actual situation, which in turn brings a series of adverse effects to the B-side platform or other distributed systems, such as decision-making errors, economic losses, and reduced user experience.

[0030] Based on the above situation, the embodiment of the present disclosure provides an information processing method, which judges the reporting status of data change information by the value of the information reporting variable. After the business module processes the business request, if the information reporting variable is still the first reporting identifier, the data change information is reported to the data change management and control platform, thereby preventing the underreporting of data change information and completing the supplementary reporting of data change information, thereby ensuring the consistency of data and the efficient operation of the platform / system.

[0031] The information processing method provided by the embodiments of the present disclosure can be applied to scenarios where the user's operation on the B-side platform or other distributed systems can cause data changes in the storage space. The method can be executed by an information processing device, which can be implemented by software and / or hardware, and the device can be integrated in an electronic device with information processing functions. Among them, the electronic device can include but is not limited to laptops, desktop computers, servers or server clusters.

[0032] Figure 1 FIG. 1 is a flow chart of an information processing method provided by an embodiment of the present disclosure. Figure 1 As shown, the information processing method may include the following steps:

[0033] S110. In response to a received service request, initialize an information reporting variable corresponding to the service request to a first reporting identifier.

[0034] Among them, the business request is a data processing request generated according to the user's trigger operation. The information reporting variable is a variable that represents whether the data change information of the current storage space is reported to the data change management and control platform. The information reporting variable is stored in the thread or coroutine corresponding to the business request, and the information reporting variable is only shared within the thread or coroutine corresponding to the business request, and is not visible to other threads or coroutines. The information reporting variable includes two values. The first reporting flag is one of the values ​​of the information reporting variable. The first reporting flag is used to represent that the data change information of the storage space has not been reported to the data change management and control platform.

[0035] It should be noted that the data change management and control platform can be understood as a platform for storing, querying and locating data change information in emergency scenarios. The change management and control platform can receive data change information from different systems or components through message queues (MQ), remote procedure calls (RPC), etc., and store the received data change information in the database of the data change management and control platform. When necessary, users can query the required data change information through the management page (i.e., the user-oriented interface) provided by the data change management and control platform. Alternatively, it is also possible to query data change information and locate data change information in emergency scenarios by calling the application programming interface (API) of the data change management and control platform.

[0036] Specifically, when the information processing device receives a service request, in response to the received service request, the general reporting plug-in is called to initialize the information reporting variable to the first reporting flag, and the general reporting plug-in can be understood as a functional module in the information processing device. For example, the first reporting flag can be false, indicating that the data change information of the storage space caused by this service request has not been reported to the data change management and control platform.

[0037] S120: Process the business request through the business module to obtain a processing result.

[0038] The service module is a module for processing service requests, and is another functional module in the information processing device.

[0039] Specifically, the information processing device processes the service request by running the service code corresponding to the service module, and obtains the processing result after the processing is completed.

[0040] In an optional example, the business request is to insert a business rule, then the process of processing the business request is to add the business rule to the storage space, and the processing result obtained is that the business rule is successfully added to the storage space.

[0041] S130. If it is detected that the processing result changes the data in the storage space, data change information is generated based on the business request and the state information of the storage space before and / or after the data change due to the processing result.

[0042] Specifically, the information processing device can determine whether data changes occur in the storage space by detecting the calling of data update functions such as adding, deleting, and modifying corresponding to the storage space. When it is detected that any of the data update functions such as adding, deleting, and modifying are called, it is determined that the processing result changes the data in the storage space. At this time, data change information can be generated based on the state information of the storage space before the data change according to the business request and the processing result; data change information can also be generated based on the state information of the storage space after the data change according to the business request and the processing result; data change information can also be generated based on the state information of the storage space before the data change according to the business request and the processing result, and the state information of the storage space after the data change according to the processing result. The state information includes at least the data itself. It should be noted that the storage space in this embodiment can be a database, or it can be other space for data storage other than a database, such as a cache area, local memory, etc.

[0043] For example, the data change information generated by performing data change on the storage space based on the service request and the processing result includes: a service request identifier, service request content, and data before the change.

[0044] For example, the data change information generated by the state information after the data in the storage space is changed according to the business request and the processing result includes: a business request identifier, business request content and changed data.

[0045] For example, data change information is generated based on the business request and processing result of the state information of the storage space before the data is changed, and the data change information generated based on the processing result of the state information of the storage space after the data is changed includes: business request identifier, business request content, data before the change and data after the change.

[0046] In an optional instance, when the information processing device includes an information reporting module, after S130, the information reporting module is called based on the data change information, the data change information is reported to the data change management and control platform, and the information reporting variable is modified to a second reporting identifier; if the information reporting variable is the second reporting identifier, the reporting processing of the data change information corresponding to the business request is terminated.

[0047] Among them, the information reporting module is a module that reports data change information to the data change management and control platform. The information reporting module can be a software development kit (SDK) with the function of reporting data change information to the data change management and control platform. The SDK has implemented all the necessary logic and technical details for data reporting with the data change management and control platform. Users can implement the reporting operation of data change information by simply calling the standardized API provided by the SDK. In addition, the SDK also supports functions such as asynchronous reporting, batch reporting, and reporting retry. Asynchronous reporting means that the reporting operation will not block the execution of the main thread, and the asynchronous reporting function improves the response speed and user experience of the system or program. Batch reporting means reporting multiple data change information at the same time, and the batch reporting function improves the reporting speed of data change information. Reporting retry means that when the network is unstable or the server is temporarily unavailable, the SDK will automatically try to re-report the failed data, and the integrity and accuracy of the data change information are guaranteed by the reporting retry function.

[0048] Specifically, in the case where the information processing device includes an information reporting module, after the business processing of the business request is completed and the data change information is obtained, the information processing device reports the data change information to the data change management and control platform by calling the information reporting module, and changes the value of the information reporting variable corresponding to the business demand from the first reporting identifier to the second reporting identifier. For example, the second reporting identifier is true. When it is detected that the information reporting variable is the second reporting identifier, it indicates that the data change information of the storage space caused by this business request has been reported to the data change management and control platform. At this time, the reporting processing of the data change information corresponding to the business demand can be directly ended.

[0049] S140: If the information reporting variable is the first reporting identifier, the data change information is reported to the data change management and control platform.

[0050] Specifically, after the business request processing is completed, the value of the information reporting variable is read. If the value of the information reporting variable is still the first reporting identifier, it means that the information processing device does not include an information reporting module, and the data change information corresponding to this business request cannot be reported to the data change management and control platform by calling the information reporting module. At this time, the data change information can be reported to the data change management and control platform by calling the general reporting plug-in. In this embodiment, when the information reporting variable is the first reporting identifier, the general reporting plug-in is called to report the data change information to the data change management and control platform, which prevents the underreporting of data change information, realizes the supplementary reporting of data change information, and ensures the consistency of the data.

[0051] The information processing method provided by the above-mentioned embodiments of the present disclosure, in response to a received business request, initializes the information reporting variable corresponding to the business request to the first reporting identifier; and processes the business request through the business module to obtain a processing result; if it is detected that the processing result makes a data change to the storage space, then based on the business request and the processing result, the state information of the storage space before and / or after the data change is generated, data change information; if the information reporting variable is the first reporting identifier, the data change information is reported to the data change management and control platform; this embodiment determines the reporting status of the data change information by the value of the information reporting variable, and after the business module processes the business request, if the information reporting variable is still the first reporting identifier, the data change information is reported to the data change management and control platform, thereby preventing the underreporting of the data change information and completing the supplementary reporting of the data change information, thereby ensuring the consistency of the data and the efficient operation of the platform / system.

[0052] In an optional embodiment, if a data recovery request is detected, data change information is obtained from the data change management and control platform, and data rollback processing is performed on the storage space based on the data change information to restore the storage space to the data state before the business request.

[0053] The data recovery request refers to a request to recover the current data to the time before the most recent change. The data recovery request at least carries the service request identifier of the service request corresponding to the most recent data change of the data to be recovered.

[0054] Specifically, when a data recovery request is received, the data change information containing the business request identifier is obtained from the data change management and control platform according to the business request identifier carried in the data recovery request. And the data rollback processing of the data is performed on the storage space according to the data change information to restore the storage space to the data state before the business request. Through the rollback operation, this embodiment can restore the data of the storage space to the state before the business request according to the data recovery request when an error or interruption occurs in the business processing, so as to ensure the consistency and integrity of the data.

[0055] For example, data change information includes: business request identifier, business request content, and data before the change. First, based on the business request identifier carried in the data recovery request, query the data change information containing the business request identifier from the data change management and control platform, and read the business request content and the data before the change from the queried data change information. Then, determine the changed data based on the business request content and the data before the change. Finally, find the changed data in the storage space, perform data rollback on the storage space, and restore the changed data in the storage space to the data before the change (that is, the data status before processing the business request).

[0056] For example, data change information includes a business request identifier, business request content, and changed data. First, based on the business request identifier carried in the data recovery request, query the data change information containing the business request identifier from the data change management and control platform, and read the business request content and the changed data from the queried data change information. Then, determine the data before the change based on the business request content and the changed data. Finally, find the changed data in the storage space, perform data rollback on the storage space, and restore the changed data in the storage space to the data before the change (that is, the data status before processing the business request).

[0057] For example, data change information includes a business request identifier, business request content, data before the change, and data after the change. First, based on the business request identifier carried in the data recovery request, query the data change information containing the business request identifier from the data change management and control platform, and read the data before the change and data after the change from the queried data change information. Then, find the changed data in the storage space, perform data rollback on the storage space, and restore the changed data in the storage space to the data before the change (that is, the data status before processing the business request).

[0058] Figure 2 This is another information processing method provided by the embodiment of the present disclosure, which adds a method for detecting data changes in the storage space based on the processing results. The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here. Figure 2 , the information processing method further includes:

[0059] S210. In response to the received service request, initialize an information reporting variable corresponding to the service request to a first reporting identifier, and initialize a data change variable corresponding to the service request to a first change identifier.

[0060] Among them, the data change variable is a variable that indicates whether the data in the storage space has changed. The data change variable is similar to the information reporting variable. It is stored in the thread or coroutine corresponding to the business request, and the data change variable is only shared within the thread or coroutine corresponding to the business request, and is not visible to other threads or coroutines. The data change variable includes two values, and the first change flag is one of the values. The first change flag indicates that the data in the storage space has not changed. For a detailed description of the business request and information reporting variables, please refer to Figure 1 S110 of the illustrated embodiment will not be described in detail here.

[0061] Specifically, when the information processing device receives a service request, in response to the service request, the general reporting plug-in is called to initialize the information reporting variable corresponding to the service request to the first reporting identifier, and the data change variable corresponding to the service request to the first change identifier. For example, if the first reporting identifier is false, it means that the data change information of the storage space caused by this service request has not been reported to the data change management and control platform. If the first change identifier is false, it means that the data in the storage space has not changed.

[0062] S220. When the business module processes the business request to operate the storage space, the target data change function corresponding to the storage space is called to change the corresponding data in the storage space, generate a processing result, and modify the data change variable to a second change identifier.

[0063] Among them, the second change identifier is another value of the data change variable, which is used to characterize the change of data in the storage space. The target data change function is obtained by logically rewriting the initial data change function of the storage space in the compilation stage through code stubbing technology, that is, the target change function is obtained by rewriting the initial data change function (that is, data update functions such as addition, deletion, and modification). It has the ability to change the data in the storage space and the ability to modify the value of the data change variable. It can also be understood that the target data change function obtained after rewriting includes two sub-functions, the first sub-function is used to change the data in the storage space, and the second sub-function is used to modify the value of the data change variable after the first sub-function is called.

[0064] Specifically, the process of the business module processing a business request can be understood as the process of running the business code. When the business code runs to the operation of the storage space, the first sub-function in the target data change function is called to implement the change operation of the corresponding data in the storage space and generate a processing result; and after completing the change of the data in the storage space, the second sub-function in the target data change function is called to modify the value of the data change variable to the second change flag. For example, the value of the data change variable is modified to the second change flag true.

[0065] S230: If it is detected that the processing result changes the data in the storage space, data change information is generated based on the business request and the state information of the storage space before and / or after the data change due to the processing result.

[0066] Specifically, after the business request is processed, the data change variable is read. When the data change variable is still the first change flag (such as false), it means that the processing result does not change the storage space, and the subsequent operation is not performed. When the data change variable is the second change flag (such as true), it means that the processing result changes the data in the storage space, then based on the business request and the state information of the storage space before and / or after the data change of the processing result, the data change information is generated. For a detailed description of the data change information, please refer to Figure 1 S120 of the illustrated embodiment will not be described in detail here.

[0067] S240: If the information reporting variable is the first reporting identifier, the data change information is reported to the data change management and control platform. Figure 1 Step S140 of the illustrated embodiment will not be described in detail here.

[0068] The information processing method provided in this embodiment determines the data change status in the storage space by the value of the data change variable, thereby improving the efficiency of detecting whether the data change occurs in the storage space.

[0069] The following is an embodiment of an information processing device provided by an embodiment of the present invention. The device and the information processing methods of the above-mentioned embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the information processing device, reference can be made to the embodiments of the above-mentioned information processing methods.

[0070] Figure 3 FIG. 1 is a schematic diagram showing the structure of an information processing device provided by an embodiment of the present disclosure. Figure 3 As shown, the information processing device 300 may include:

[0071] The first initialization module 310 is used to initialize the information reporting variable corresponding to the business request to a first reporting identifier in response to the received business request; wherein the first reporting identifier is used to indicate that the data change information of the storage space has not been reported to the data change management and control platform.

[0072] The processing module 320 is used to process the service request through the service module and obtain the processing result.

[0073] The generating module 330 is used to generate data change information based on the business request and the state information of the storage space before and / or after the data change caused by the processing result if it is detected that the processing result causes data change to the storage space.

[0074] The reporting module 340 is configured to report the data change information to the data change management and control platform if the information reporting variable is the first reporting identifier.

[0075] In some optional embodiments, the device further comprises:

[0076] The first modification module is used to generate data change information based on the business request and the processing result for the status information of the storage space before and / or after the data change, and then call the information reporting module based on the data change information to report the data change information to the data change management and control platform, and modify the information reporting variable to a second reporting identifier; wherein the second reporting identifier is used to indicate that the data change information has been reported to the data change management and control platform; and the ending module is used to end the reporting processing of the data change information corresponding to the business request if the information reporting variable is the second reporting identifier.

[0077] In some optional embodiments, the device further comprises:

[0078] The second initialization module is used to respond to the business request and initialize the data change variable corresponding to the business request to a first change identifier; wherein the first change identifier indicates that the data in the storage space has not changed.

[0079] The processing module 320 includes:

[0080] The processing submodule is used to call the target data change function corresponding to the storage space when processing the business request through the business module to the operation on the storage space, change the corresponding data in the storage space, generate the processing result, and modify the data change variable to a second change identifier; wherein the second change identifier indicates that the data in the storage space has changed.

[0081] The generation module 330 includes:

[0082] The detection submodule is used to detect that the data change variable is a second change identifier.

[0083] In some optional implementations, the target data change function is obtained by logically rewriting the initial data change function of the storage space in advance during the compilation phase using a code stub technology.

[0084] In some optional implementations, the data change variable and the information reporting variable are both stored in the thread or coroutine that processes the service request.

[0085] In some optional embodiments, the device further comprises:

[0086] The data recovery module is used to obtain data change information from the data change management and control platform if a data recovery request is detected, and perform data rollback processing on the storage space based on the data change information to restore the storage space to the data state before the business request.

[0087] The information processing device provided by the embodiment of the present invention can execute the information processing method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0088] It is worth noting that in the embodiment of the above-mentioned information processing device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present disclosure.

[0089] The present disclosure also provides an electronic device, which may include a processor and a memory, wherein the memory may be used to store executable instructions, wherein the processor may be used to read the executable instructions from the memory and execute the executable instructions to implement the information processing method in the above embodiment.

[0090] Figure 4 A schematic structural diagram of an electronic device provided by an embodiment of the present disclosure is shown.

[0091] like Figure 4 As shown, the electronic device 400 may include a processing device 401 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage device 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output interface (I / O interface) 405 is also connected to the bus 404.

[0092] Typically, the following devices may be connected to the I / O interface 405: an input device 406 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 408 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 409. The communication device 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data.

[0093] It should be noted that Figure 4 The electronic device 400 shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure. Figure 4 The electronic device 400 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0094] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the information processing method of any embodiment of the present disclosure are executed.

[0095] The embodiments of the present disclosure further provide a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the processor implements the information processing method in any embodiment of the present disclosure.

[0096] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0097] In some embodiments, the client and server may communicate using any currently known or future developed network protocol such as HTTP, and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0098] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0099] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the steps of the information processing method described in any embodiment of the present disclosure.

[0100] In embodiments of the present disclosure, computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including but not limited to object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as a separate software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0101] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the equipment, method and computer program product according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0102] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0103] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0104] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0105] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0106] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. An information processing method, characterized in that: include: In response to the received service request, the information reporting variable corresponding to the service request is initialized to a first reporting identifier; wherein the first reporting identifier is used to indicate that the data change information of the storage space has not been reported to the data change management and control platform; Process the business request through the business module to obtain a processing result; If it is detected that the processing result changes the data of the storage space, the data change information is generated based on the service request and the state information of the storage space before and / or after the data change caused by the processing result; If the information reporting variable is the first reporting identifier, the data change information is reported to the data change management and control platform.

2. The method according to claim 1, characterized in that After generating the data change information by performing state information of the storage space before and / or after the data change based on the service request and the processing result, the method further includes: Based on the data change information, the information reporting module is called to report the data change information to the data change management and control platform, and the information reporting variable is modified to a second reporting identifier; wherein the second reporting identifier is used to indicate that the data change information has been reported to the data change management and control platform; If the information reporting variable is the second reporting identifier, the reporting process of the data change information corresponding to the service request is terminated.

3. The method according to claim 1, characterized in that The method further comprises: In response to the service request, initializing the data change variable corresponding to the service request to a first change identifier; wherein the first change identifier indicates that the data in the storage space has not changed; The processing of the business request by the business module to obtain a processing result includes: When the business request is processed by the business module to the operation on the storage space, the target data change function corresponding to the storage space is called to change the corresponding data in the storage space, generate the processing result, and modify the data change variable to a second change identifier; wherein the second change identifier indicates that the data in the storage space has changed; The detecting the processing result and changing the data in the storage space includes: It is detected that the data change variable is the second change identifier.

4. The method according to claim 3, characterized in that The target data change function is obtained by rewriting the logic of the initial data change function of the storage space in advance during the compilation phase through the code stub technology.

5. The method according to claim 3, characterized in that: The data change variable and the information reporting variable are both stored in the thread or coroutine that processes the business request.

6. The method according to claim 1, characterized in that The method further comprises: If a data recovery request is detected, the data change information is obtained from the data change management and control platform, and data rollback processing is performed on the storage space based on the data change information to restore the storage space to the data state before the business request.

7. An information processing device, characterized in that: include: An initialization module, configured to respond to a received service request and initialize an information reporting variable corresponding to the service request to a first reporting identifier; wherein the first reporting identifier is used to indicate that the data change information of the storage space has not been reported to the data change management and control platform; A processing module, used to process the service request through the service module and obtain a processing result; a generating module, configured to generate the data change information based on the service request and the state information of the storage space before and / or after the data change caused by the processing result if it is detected that the processing result causes the data change of the storage space; A reporting module is used to report the data change information to the data change management and control platform if the information reporting variable is the first reporting identifier.

8. An electronic device, characterized in that: include: processor; A memory for storing executable instructions; The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the information processing method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the information processing method according to any one of claims 1 to 6.

10. A computer program product, characterized in that The computer program product is used to implement the information processing method according to any one of claims 1 to 6.