Data processing method and device, electronic equipment and storage medium
By detecting and updating resource health information in real time within the financial business system, the problem of excessively long fault recovery time caused by database disaster recovery strategies has been solved, achieving high availability and stability and improving user experience.
Patent Information
- Application Number
- CN202410450052.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-15
- Publication Date
- 2025-10-21
AI Technical Summary
In existing financial business systems, database disaster recovery strategies rely on semi-synchronous master-slave switching, resulting in fault recovery times in the minute range, which cannot meet the availability and stability requirements of systems with high business processing volumes.
By responding to the order skipping request, the system retrieves the corresponding order number information from the order number mapping information, selects the target available business processing resources for real-time write probe, updates the health information in the resource health storage, and determines the business processing result when the probe fails, thus ensuring the high availability and stability of the system.
It has achieved high availability and stability of financial business systems, improved user experience, and ensured the real-time availability and processing capacity of business resource systems.
Smart Images

Figure CN120821772A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data processing method, device, electronic device, and storage medium. Background Art
[0002] Currently, the database disaster recovery strategy commonly used in some financial business systems generally relies on "semi-synchronization, master-slave switchover." "Semi-synchronization" refers to the database's master-slave replication architecture. After a master database updates data, it waits for at least one slave database to write the data to its own relay log file. The master database then proceeds with the next data update only after confirming that the operation has been successfully received by the slave database. "Master-slave switchover" can be automatic or manual. Business recovery time typically ranges from one to several dozen minutes, meaning fault recovery time is at the minute level. This database disaster recovery method is still too long for financial business systems that typically process over 100 million transactions, resulting in poor availability and stability of the financial business systems, which cannot meet their business processing needs. Summary of the Invention
[0003] In order to solve the problems of the prior art, the embodiments of the present application provide a data processing method, device, electronic device and storage medium. The technical solution is as follows:
[0004] In one aspect, a data processing method is provided, comprising:
[0005] In response to a ticket skipping request triggered by a business processing request, searching for ticket number information corresponding to a processing identifier in the business processing request from ticket number mapping information; the ticket number mapping information represents a correspondence between the processing identifier and the ticket number information, the ticket number information including a business processing resource identifier, the business processing resource identifier indicating a business processing resource for processing the business processing request with the corresponding processing identifier, the business processing resource being any one of a plurality of mutually independent business processing resources;
[0006] If no target business processing resource is found, selecting a target available business processing resource based on the health information of each business processing resource in the resource health storage, and generating routing information pointing to the target available business processing resource; the health information represents the business processing status of the corresponding business processing resource;
[0007] Performing real-time write detection on the target available business processing resource based on the routing number information to obtain a real-time write detection result;
[0008] The health information of the target available business processing resource in the resource health storage is updated based on the real-time write detection result, and when the real-time write detection result indicates a failure, the business processing result corresponding to the business processing request is determined based on the updated resource health storage.
[0009] In another aspect, a data processing device is provided, comprising:
[0010] a tripping module configured to, in response to a tripping request triggered by a business processing request, search from the ticket number mapping information for ticket number information corresponding to a processing identifier in the business processing request; the ticket number mapping information representing a correspondence between the processing identifier and the ticket number information, the ticket number information including a business processing resource identifier, the business processing resource identifier indicating a business processing resource for processing the business processing request with the corresponding processing identifier, the business processing resource being any one of a plurality of mutually independent business processing resources;
[0011] An available selection module is used to select a target available business processing resource based on the health information of each business processing resource in the resource health storage if no such resource is found, and generate routing information pointing to the target available business processing resource; the health information represents the business processing status of the corresponding business processing resource;
[0012] A real-time write detection module is used to perform real-time write detection on the target available business processing resource based on the routing number information to obtain a real-time write detection result;
[0013] A processing result determination module is used to update the health information of the target available business processing resources in the resource health storage based on the real-time write detection result, and when the real-time write detection result indicates a failure, determine the business processing result corresponding to the business processing request based on the updated resource health storage.
[0014] In an exemplary embodiment, the processing result determination module includes:
[0015] A first updating module is configured to update the number of real-time write detection failures when the real-time write detection result indicates a failure;
[0016] The first result determination module is used to execute the steps of selecting the target available business processing resources and performing real-time write detection and the update based on the updated resource health storage when the number of real-time write detection failures is less than the preset number, until the number of real-time write detection failures reaches the preset number, and use the preset business processing result as the business processing result corresponding to the business processing request; the preset business processing result indicates that the business processing has an error.
[0017] In an exemplary embodiment, the processing result determination module further includes:
[0018] A second result determination module is configured to, when the real-time write detection result indicates success, call the target available business processing resource to process the business processing request and obtain a business processing result;
[0019] The tracking number mapping update module is used to add the routing tracking number information pointing to the target available business processing resource to the tracking number mapping information based on the processing identifier of the business processing request.
[0020] In an exemplary embodiment, the health information includes current health; and the available selection module includes:
[0021] a current weight determination module, configured to determine a current weight of each of the business processing resources based on a current health corresponding to each of the business processing resources;
[0022] The selection submodule is configured to determine a random selection probability based on the current weight of each of the business processing resources, and select a target available business processing resource based on the random selection probability.
[0023] In an exemplary embodiment, the health information further includes historical weights; and the current weight determination module includes:
[0024] A comparison module, configured to compare a historical weight corresponding to the business processing resource with a preset weight when the current health corresponding to the business processing resource is less than a health threshold;
[0025] a first downward adjustment module, configured to, if the comparison result indicates that the historical weight is greater than the preset weight, reduce the historical weight according to a first adjustment range to obtain a current weight of the business processing resource;
[0026] The second downward adjustment module is used to reduce the historical weight according to a second adjustment range to obtain the current weight of the business processing resource when the comparison result indicates that the historical weight is less than or equal to the preset weight; wherein the first adjustment range is greater than the second adjustment range.
[0027] In an exemplary embodiment, the health information further includes historical health, and the current weight determination module further includes:
[0028] a health change trend determination module, configured to determine a health change trend based on the current health of the business processing resource and the historical health within a preset time period when the current health corresponding to the business processing resource is greater than or equal to a health threshold;
[0029] a weight-up adjustment module, configured to, when the health status change trend satisfies a preset trend, increase the historical weight by a third adjustment range to obtain a current weight of the business processing resource; wherein the third adjustment range is smaller than the second adjustment range, and the preset trend indicates a continuous increase;
[0030] The determination submodule is configured to determine the current weight of the business processing resource based on the historical weight of the business processing resource when the health change trend does not meet the preset trend.
[0031] In an exemplary embodiment, the determination submodule is specifically used to: determine the statistical value of the historical weight of the business processing resource within the preset time period, and use the statistical value as the current weight of the business processing resource; or, use the historical weight of the business processing resource closest to the current time as the current weight of the business processing resource.
[0032] In an exemplary embodiment, the processing result determination module also includes a first health update module, which is specifically used to: determine the failure type if the real-time write detection result indicates a failure; determine the target health reduction range corresponding to the failure type based on the correspondence between the preset failure type and the health reduction range; and adjust the current health of the target available business processing resources in the resource health storage based on the target health reduction range.
[0033] In an exemplary embodiment, the first health update module is further configured to adjust the current health of the target available business processing resource in the resource health storage according to a preset health increase range when the real-time write detection result indicates success.
[0034] In an exemplary embodiment, the apparatus further comprises:
[0035] A bypass write detection module, configured to perform bypass write detection on each of the service processing resources at preset time intervals to obtain bypass write detection results corresponding to each of the service processing resources;
[0036] The second health updating module is configured to update the health information of each of the business processing resources in the resource health storage based on the bypass write detection result corresponding to each of the business processing resources.
[0037] In an exemplary embodiment, the resource health storage includes multiple levels of resource health storage.
[0038] On the other hand, an electronic device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement any of the above-mentioned data processing methods.
[0039] On the other hand, a computer-readable storage medium is provided, in which at least one instruction or at least one program is stored. The at least one instruction or the at least one program is loaded and executed by a processor to implement the data processing method as described in any of the above aspects.
[0040] In another aspect, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform any of the above-described data processing methods.
[0041] In an embodiment of the present application, in response to a trip request triggered by a business processing request, the ticket number mapping information is searched for ticket number information corresponding to a processing identifier in the business processing request. The ticket number mapping information represents a correspondence between the processing identifier and the ticket number information. The ticket number information includes a business processing resource identifier, which indicates a business processing resource for processing the business processing request with the corresponding processing identifier. The business processing resource identifier is any one of multiple independent business processing resources. If the business processing resource is not found, a target available business processing resource is selected based on the health information of each business processing resource in a resource health storage, and routing ticket number information pointing to the target available business processing resource is generated. A real-time write detection is then performed on the target available business processing resource based on the routing ticket number information to obtain a real-time write detection result. The health information of the target available business processing resource in the resource health storage is updated based on the real-time write detection result. If the real-time write detection result indicates a failure, the business processing result corresponding to the business processing request is determined based on the updated resource health storage. Thus, the above technical solution can ensure the real-time availability of services provided to the outside by the business resource system, achieve the high availability and stability goals of the financial business system, and improve the user experience while meeting business processing requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0043] Figure 1 This is a schematic diagram of an implementation environment provided by an embodiment of the present application;
[0044] Figure 2 This is a flow chart of a data processing method provided in an embodiment of the present application;
[0045] Figure 3 This is a flow chart of another data processing method provided in an embodiment of the present application;
[0046] Figure 4 This is a flow chart of another data processing method provided in an embodiment of the present application;
[0047] Figure 5 This is a flow chart of another data processing method provided in an embodiment of the present application;
[0048] Figure 6 This is an example of a preset number of real-time write detections provided in an embodiment of the present application;
[0049] Figure 7 This is a flow chart of another data processing method provided in an embodiment of the present application;
[0050] Figure 8 This is an exemplary description of a data processing method provided in an embodiment of the present application;
[0051] Figure 9 This is a structural block diagram of a data processing device provided in an embodiment of the present application;
[0052] Figure 10 This is a hardware structure block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0053] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0054] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0055] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0056] It is understandable that in the specific implementation of this application, related data such as user information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0057] See also Figure 1 , which shows a schematic diagram of an implementation environment provided by an embodiment of the present application, the implementation environment includes a terminal 110, a business server 120 and a business resource system 130, wherein the terminal 110 and the business server 120, as well as the business server 120 and the business resource system 130 can communicate via a wired or wireless network connection.
[0058] Terminal 110 includes, but is not limited to, mobile phones, computers, intelligent voice interaction devices, smart home appliances, in-vehicle terminals, aircraft, and the like. Terminal 110 may include client software with transaction functionality, such as an application (App). This application may be a standalone application or a subroutine within an application. For example, the application may be a social networking application that facilitates transactions through resource transfer functions (e.g., red envelopes, account transfers, and face-to-face payments). Alternatively, the application may be a shopping application.
[0059] The business server 120 can provide background services for the application in the terminal 110. In the embodiment of the present application, the business server 120 is configured with a skipping component, so that when the business server 120 receives a business processing request from the terminal 110 (such as a transaction request), it can generate a skipping request based on the skipping component, and then perform the skipping detection processing of the embodiment of the present application on the business resource system 130 in response to the skipping request. The skipping detection processing will be described in detail in the subsequent content of the embodiment of the present application.
[0060] The business resource system 130 includes multiple independent business processing resources, each of which includes a database 131 and a database access service 132 for accessing its own database, thereby achieving isolation of storage resources between different business processing resources and striped isolation of storage layer access services. Independent business processing resources can ensure that if the database 131, i.e., storage resource, of a certain business processing resource fails, the remaining business processing resources can still provide services; the striped isolation deployment of storage layer access services ensures that storage layer access services will not fail collectively in the event of a certain storage resource failure, thereby ensuring the availability of business processing resources. For example, the database 131 can include multiple tables, such as 256 tables, each of which can accommodate more than 2 million data records.
[0061] It should be noted that the server involved in the embodiments of the present application can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.
[0062] A database, in short, can be thought of as a digital filing cabinet—a place where electronic files are stored, allowing users to add, query, update, and delete data. A database is a collection of data stored in a specific way, shared by multiple users, with minimal redundancy, and independent of applications.
[0063] In one exemplary embodiment, the electronic devices involved in terminal 110, business server 120, and business resource system 130 can all be node devices in a blockchain system, capable of sharing acquired and generated information with other node devices in the blockchain system, thereby enabling information sharing among multiple node devices. Multiple node devices in a blockchain system can be configured with the same blockchain, which is composed of multiple blocks, and adjacent blocks are associated with each other. This allows any tampering of data in any block to be detected by the next block, thereby preventing tampering of data in the blockchain and ensuring the security and reliability of the data in the blockchain.
[0064] The embodiments of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, assisted driving, etc.
[0065] See also Figure 2 , which is a flow chart of a data processing method provided by an embodiment of the present application, which can be applied to Figure 1 It should be noted that this specification provides method operation steps as described in the embodiments or flowcharts, but may include more or fewer operation steps based on conventional or non-creative work. The order of steps listed in the embodiments is only one way of executing the steps among many steps, and does not represent the only execution order. When the actual system or product is executed, it can be executed in sequence or in parallel (for example, in a parallel processor or multi-threaded processing environment) according to the method shown in the embodiments or drawings. Specifically, Figure 2 As shown, the method may include:
[0066] S201 , in response to a skipping request triggered by a business processing request, searching for the order number information corresponding to the processing identifier in the business processing request from the order number mapping information.
[0067] Among them, the order number mapping information represents the correspondence between the processing identifier and the order number information. The order number information includes a business processing resource identifier, which indicates the business processing resource used to process the business processing request of the corresponding processing identifier. The business processing resource is any business processing resource among multiple independent business processing resources.
[0068] Specifically, the business server can maintain a ticket number mapping information, which represents a one-to-one correspondence between the processing identifier and the ticket number information, wherein the processing identifier can be used to uniquely identify a business processing request of the user. It should be noted that the associated processing of a business processing request uses the same processing identifier as the business processing request in the embodiment of the present application. Taking the business processing request as a transaction request as an example, the processing identifier corresponding to the business processing request can be a transaction order number, and then subsequent transaction processing associated with the transaction request (such as virtual resource transfer processing) can all correspond to the transaction order number.
[0069] Specifically, the order number information may include a business processing resource identifier, which indicates the business processing resource used to process the business processing request with the corresponding processing identifier. In practical applications, each business processing resource in the business resource system corresponds to a business processing resource identifier (ID). It is understood that the order number information may also include other information, such as the order number type and the order number length. The order number type may indicate the type of business requested by the business processing request, such as a transaction order or a return order.
[0070] Taking the virtual resource transfer scenario as an example, when a user initiates a virtual resource transfer to a business server through a terminal, the business server will create a corresponding virtual resource transfer order in response to the received virtual resource transfer request. At this time, a processing identification ID for the virtual resource transfer request will be generated, and the business server will also generate a jump order request corresponding to the virtual resource transfer request, which carries the corresponding processing identification ID.
[0071] After generating the jump request, the business server can send the jump request to the jump logic bearer layer, so that the jump logic bearer layer responds to the jump request and searches for the order number information corresponding to the processing identifier carried in the jump request from the order number mapping information. If the corresponding order number information is not found, the following steps S203 to S207 can be executed.
[0072] On the contrary, if the corresponding order number information is found, the business processing request and the associated business processing of the business processing request can be processed based on the business processing resource indicated by the business processing resource identifier in the order number information. For example, the business server can call the database access service of the business processing resource and access the database of the business processing resource through the database access service of the business processing resource.
[0073] S203 : Based on the health information of each business processing resource in the resource health storage, a target available business processing resource is selected, and routing number information pointing to the target available business processing resource is generated.
[0074] Among them, resource health storage is used to record the health information of each business processing resource in the business resource system. The health information can represent the business processing status of the corresponding business processing resource. The business processing status can be measured by indicators that can represent the business processing capability, such as health, number of processing failures, etc.
[0075] The target available business processing resource may be one selected from available business processing resources, and the available business processing resource may be the business processing resource remaining after unavailable business processing resources are screened from multiple business processing resources. Exemplarily, the unavailable business processing resource may be a business processing resource whose health information satisfies a screening condition. For example, the screening condition is that the number of processing failures per unit time reaches a certain number. The health information may record the number of processing failures per unit time for each business processing resource. When the data recorded in the health information of a business processing resource satisfies the screening condition, the business processing resource may be determined as an unavailable business processing resource.
[0076] Among them, the routing order number information is used to point to the target available business processing resource. The routing order number information may include a business processing resource identifier for identifying the target available business processing resource. It is understandable that the routing order number information may also include other information, such as the order number type, order number length, database table identifier, etc. The order number type may indicate the type of business requested for processing by the business processing request, such as a transaction order or a return order, etc. The database table identifier may indicate the internal table in the database of the business processing resource corresponding to the corresponding business processing resource identifier. In other words, the routing order number information and the order number information in the aforementioned order number mapping information may contain the same data structure, that is, the routing order number information may be used to distinguish the order number information recorded in the order number mapping information. If a routing order number information is subsequently added to the order number mapping information, it may be referred to as order number information.
[0077] In some exemplary embodiments, in order to improve the reliability of the data processing method of the embodiment of the present application, the resource health storage may include multiple levels of resource health storage, and the reliability of the multiple levels is different. For example, the multiple levels of resource health storage may include in-process storage, stand-alone cross-process storage and centralized storage in order from low to high. When the low-level resource health storage is unavailable, the resource health storage of the previous level may be used. For example, when the in-process storage is unavailable, the stand-alone cross-process storage may be used. When the stand-alone cross-process storage is not available, the centralized storage may be used. This can greatly improve the reliability of the data processing of the embodiment of the present application, thereby improving the availability of the business resource system. Among them, the in-process storage can be implemented based on in-process sharing and coroutine sharing; the stand-alone cross-process storage can be implemented based on shared memory and object storage detection and reporting; the centralized storage can be implemented based on MemCache (a distributed cache system) and key-value (KV) storage.
[0078] S205 : Perform real-time write detection on the target available service processing resources based on the routing number information to obtain a real-time write detection result.
[0079] In a specific implementation, the business server may send the routing number information to the database access service of the target available business processing resource, so that the database access service performs a real-time write detection on the database of the target available business processing resource in response to the routing number information, and obtains a real-time write detection result. The real-time write detection result may include a first real-time write detection result indicating success and a second real-time write detection result indicating failure. For example, a first real-time write detection result may be generated when the detection data is successfully written and does not time out, a second real-time write detection result may be generated when the detection data is successfully written but times out, and a second real-time write detection result may also be generated when the writing of the detection data fails.
[0080] S207, updating the health information of the target available business processing resource in the resource health storage based on the real-time write detection result, and determining the business processing result corresponding to the business processing request based on the updated resource health storage when the real-time write detection result indicates a failure.
[0081] In an embodiment of the present application, after obtaining the real-time write detection result, the health information of the target available business processing resources in the resource health storage will be updated based on it. In addition, if the real-time write detection result indicates a failure, the business processing result corresponding to the business processing request will also be determined based on the updated resource health storage.
[0082] Among them, the health information includes the health used to characterize the business processing capability, and the health can be presented by a specific numerical value. Then updating the health information based on the real-time write detection result may include updating the corresponding health. For example, when the real-time write detection result indicates a failure, the health of the target available business processing resources can be reduced. When the real-time write detection result indicates a success, the health can also be increased. In other words, the health can change with the real-time write detection results over time. Based on this, in some exemplary embodiments, in order to avoid the load pressure on business processing resources caused by real-time write detection, such as Figure 3 As shown, the health information includes the current health, which can be understood as the health obtained after the last change. Then the aforementioned step S203, when selecting the target available business processing resource based on the health information of each business processing resource in the resource health storage, may include:
[0083] S301 : Determine the current weight of each business processing resource based on the current health corresponding to each business processing resource.
[0084] S303 : Determine a random selection probability based on the current weight of each business processing resource, and select a target available business processing resource based on the random selection probability.
[0085] Specifically, a random algorithm using the current weight as a parameter may be used to calculate the random selection probability, and then the business processing resource with the highest random selection probability may be used as the target available business processing resource.
[0086] The above implementation method calculates the current weight through the current health and calculates the random selection probability based on the current weight, which can reduce the number of times the business processing resource with the maximum weight is selected, thereby avoiding the load pressure on the business processing resources caused by real-time write detection.
[0087] Based on this, in order to ensure the stability of the business resource system and improve the stability of data processing, continue to refer to Figure 3 The aforementioned step S207, when updating the health information of the target available business processing resource in the resource health storage based on the real-time write detection result, may include:
[0088] S305: If the real-time write detection result indicates a failure, determine the failure type.
[0089] S307: Based on a preset correspondence between the failure type and the health level reduction range, determine a target health level reduction range corresponding to the failure type.
[0090] Among them, the preset failure type can be set based on actual experience, and the magnitude of the health level reduction corresponding to the preset failure type is related to the degree of correlation between the preset failure type and the database failure. Generally, the greater the degree of correlation between the preset failure type and the database failure, the greater the magnitude of the corresponding health level reduction, and vice versa. It can be set specifically based on actual experience.
[0091] Exemplarily, the real-time write detection result may include a result type, a time consumption, and an error code, wherein the result type indicates failure or success, and the time consumption indicates the duration of the write operation. The preset failure type may be characterized based on a combination of the time consumption and the error code. For example, the time consumption exceeding a certain time consumption and the error code indicating a system error may be taken as the first preset failure type, the time consumption not exceeding a certain time consumption and the error code indicating a business error may be taken as the second preset failure type, and the time consumption exceeding a certain time consumption and the error code indicating a database error may be taken as the third preset failure type. A first health level reduction range is set for the first preset failure type, a second health level reduction range is set for the second preset failure type, and a third health level reduction range is set for the third preset failure type, and the first health level reduction range is greater than the third health level reduction range, and the third health level reduction range is greater than the second health level reduction range.
[0092] S309: Adjust the current health of the target available business processing resource in the resource health storage based on the target health reduction range.
[0093] After the target health reduction range is determined, the current health of the target available business processing resource in the resource health storage may be reduced based on the range.
[0094] S311: If the real-time write detection result indicates success, the current health of the target available business processing resource in the resource health storage is adjusted according to a preset health increase range.
[0095] The preset health increase range can be set based on actual experience, so that each time the real-time write detection is successful, the current health of the target available business processing resource in the resource health storage can be increased by the preset health increase range.
[0096] In some exemplary embodiments, the health information may also record a historical weight, which may be a weight calculated last time. Figure 4 As shown, the above step S303, when determining the current weight of each business processing resource based on the current health corresponding to each business processing resource, may include:
[0097] S401: Determine whether the current health of the business processing resource is less than a health threshold.
[0098] The health threshold can be set based on actual experience.
[0099] Specifically, if the result of the judgment is less than the health threshold, the following step S403 may be executed; otherwise, if the result of the judgment is greater than or equal to the health threshold, the following steps S409 to S413 may be executed.
[0100] S403: Compare the historical weight corresponding to the business processing resource with the preset weight.
[0101] The preset weight may be set based on actual experience, for example, the preset weight may be set to 20%.
[0102] Specifically, if the comparison result indicates that the historical weight is greater than the preset weight, the following step S405 may be executed; otherwise, if the comparison result indicates that the historical weight is less than or equal to the preset weight, the following step S407 may be executed.
[0103] S405: Reduce the historical weight according to the first adjustment range to obtain the current weight of the business processing resource.
[0104] S407: Reduce the historical weight according to a second adjustment range to obtain the current weight of the business processing resource.
[0105] The first adjustment range is greater than the second adjustment range.
[0106] For example, P t Represents the historical weight of the health information corresponding to the business processing resources, with P t+1 represents the current weight of the business processing resource, b1 represents the first adjustment range, and b2 represents the second adjustment range. Assuming that the preset weight is 20%, when the health of the business processing resource is less than the health threshold, the following formula (1) can be used to calculate the current weight of the business processing resource:
[0107]
[0108] In the above implementation, when the current health of a business processing resource is less than the health threshold, the weight of the business processing resource is reduced by combining the historical weight and the preset weight so that its current weight is less than the historical weight, thereby ensuring the stability of the business resource system and improving the stability of data processing.
[0109] S409: Determine a health change trend of the business processing resource based on the current health of the business processing resource and the historical health within a preset time period.
[0110] Specifically, health information may also include historical health information. When the current health of a business processing resource is greater than or equal to a health threshold, the health trend can be determined based on the current health of the business processing resource and its historical health within a preset time period. The historical health information within the preset time period can be set based on implementation experience, for example, the health information from the last N times, the health information from the last 1 day, or the health information from the last 3 days.
[0111] S411: If the health status change trend meets a preset trend, increase the historical weight according to a third adjustment range to obtain the current weight of the business processing resource.
[0112] The third adjustment range is smaller than the aforementioned second adjustment range, and the preset trend indicates a continuous rise.
[0113] Specifically, P t Represents the historical weight of the health information corresponding to the business processing resources, with P t+1 represents the current weight of the business processing resource, and a represents the third adjustment range. Then the current weight of the business processing resource can be expressed as P t+1 =P t +a.
[0114] Exemplarily, the third adjustment range a=1%, the first adjustment range b1=5%, and the second adjustment range b2=2%.
[0115] S413: If the health status change trend does not meet the preset trend, determine the current weight of the business processing resource based on the historical weight of the business processing resource.
[0116] Specifically, if the health trend is not continuously increasing, the current weight of the business processing resource can be determined based on its historical weight. For example, the most recent historical weight of the business processing resource can be used as the current weight of the business processing resource; alternatively, a statistical value of the business processing resource's historical weight within a preset time period can be determined and used as the current weight of the business processing resource, where the statistical value can include an average.
[0117] In the above-mentioned implementation mode, when the current health of the business processing resource is greater than or equal to the health threshold and the health change trend of the business processing resource meets the preset trend, the historical weight of the business processing resource is increased based on the third adjustment range that is smaller than the aforementioned second adjustment range to obtain the current weight, thereby achieving a fast decrease and slow increase in weight, which is beneficial to improving the stability of the business resource system and further improving the stability of data processing. When the health change trend does not meet the preset trend, the statistical value of the historical weight within the preset time period can be used as the current weight, or the most recent historical weight can be used as the current weight, thereby ensuring the stability of the business resource system.
[0118] In some examples, if the real-time write detection result indicates success, it means that the current business processing state of the target available business processing resource can meet the required business processing capacity, and then continue to refer to the aforementioned Figure 2 If the real-time write detection result indicates success, the service server may perform the following steps S209 to S211:
[0119] S209, calling the target available business processing resources to process the business processing request and obtain a business processing result;
[0120] S211 , based on the processing identifier of the business processing request, adding the routing number information pointing to the target available business processing resource to the number mapping information.
[0121] Specifically, the routing order number information added to the order number mapping information can be subsequently referred to as the order number information, so that subsequent related business processing carrying the processing identifier (such as the order number) can be processed by pointing to the same business processing resource through the corresponding order number information in the order number mapping information, which can improve the efficiency and accuracy of subsequent business processing.
[0122] The embodiment of the present application will further perform real-time write detection on the target available business processing resources, and update the corresponding health information in the resource health storage based on the real-time write detection results, and determine the business processing results corresponding to the business processing request based on the updated resource health storage when the real-time write detection results indicate a failure. The real-time availability of the business resource system is guaranteed by skipping orders and real-time write detection, the impact of faulty business processing resources on business processing is avoided, and the high availability and stability of the financial business system are achieved, which is conducive to improving user experience while meeting business processing needs.
[0123] In some exemplary embodiments, Figure 5 As shown, in step S207, when the real-time write detection result indicates a failure, determining the business processing result corresponding to the business processing request based on the updated resource health storage may specifically include:
[0124] S501: When the real-time write detection result indicates a failure, update the number of real-time write detection failures.
[0125] Specifically, the service server may record the number of real-time write detection failures for the service processing request, and when the real-time write detection result indicates a failure, the corresponding number of real-time write detection failures may be increased by one for updating.
[0126] S503, determining whether the number of real-time write detection failures is less than a preset number, if so, executing the following step S505; if so, executing the following step S507.
[0127] The preset number of times can be set based on actual needs, for example, the preset number of times can be set to 3.
[0128] S505: Execute the aforementioned steps S203 to S207 based on the updated resource health storage.
[0129] Specifically, the target available business processing resource can be reselected based on the health information of each business processing resource in the updated resource health storage, and routing number information pointing to the reselected target available business processing resource can be generated. Then, based on the regenerated routing number information, a real-time write detection is performed on the reselected target available business processing resource to obtain a real-time write detection result, and the health information of the reselected target available business processing resource in the resource health storage is updated based on the real-time detection write result. If the real-time write detection result still indicates failure, the execution of steps S501 to S503 can be returned. During this period, if a real-time write detection result indicates success, the repeated execution is terminated and steps S209 to S211 are executed instead. It should be noted that the routing number information added to the number mapping information is the routing number information corresponding to the successful real-time write detection.
[0130] S507: Use the preset business processing result as the business processing result corresponding to the business processing request, wherein the preset business processing result indicates that the business processing is wrong.
[0131] Specifically, when a preset number of real-time write detections are performed for a business processing request and all fail, a preset business processing result indicating a business processing error can be returned as the business processing result corresponding to the business processing request to improve user experience and improve the utilization of background resources.
[0132] Assuming the preset number is 3, the following combination Figure 6Let's give an example. During the first real-time write detection: the target available business processing resource selected is S1, and routing number information 1 is generated. If the corresponding real-time write detection result indicates failure, the health information of the business processing resource S1 in the resource health storage can be updated based on the real-time write detection result. Then, a second real-time write detection can be performed. At this time, the candidate business processing resources in the same IDC (Internet Data Center) as the business processing resource S1 can be first determined, and then the target available business processing resource S2 is selected based on the health information of the candidate business processing resource, and routing number information 2 is generated. Assuming that the corresponding real-time write detection result still indicates failure, the health information of the business processing resource S2 in the resource health storage can be updated based on the real-time write detection result. Then, a third real-time write detection can be performed. At this time, the candidate business processing resources corresponding to the remaining IDC can be first determined, and then the target available business processing resource S3 is selected based on the health information of the candidate business processing resources corresponding to the remaining IDC, and routing number information 3 is generated. Assuming that the corresponding real-time write detection result still indicates failure, an error processing is performed. In the above process, if the result of any real-time write detection indicates success, the subsequent execution will be terminated. For example, if the real-time write detection result of the second real-time write detection indicates success, the business processing resource S2 can be called to process the business processing request to obtain the business processing result, and the routing number information 2 can be added to the number mapping information.
[0133] In some exemplary embodiments, Figure 7 As shown, the method may further include:
[0134] S701 : Perform bypass write detection on each of the service processing resources at every preset time interval to obtain a bypass write detection result corresponding to each of the service processing resources.
[0135] S703: Update the health information of each of the business processing resources in the resource health storage based on the bypass write detection result corresponding to each of the business processing resources.
[0136] Specifically, considering that the real-time write detection is a local detection of the business resource system triggered by the business processing request, in order to improve the availability of the business resource system and ensure the stability of the business resource system and data processing, the business resource system can also be globally detected at preset time intervals, that is, a bypass write detection is performed on each business processing resource to obtain a bypass write detection result corresponding to each business processing resource. It can be understood that the bypass write detection result may include a successful write or a failed write. Furthermore, the health information of each business processing resource in the resource health storage can be updated based on the bypass write detection result corresponding to each business processing resource. The specific method for updating the health information of the business processing resources is similar to the aforementioned update method based on the real-time write detection result, which will not be repeated here.
[0137] Figure 8 FIG. 1 is an exemplary description of the data processing method according to an embodiment of the present application. Figure 8 As shown, for real-time write detection: in step 1, the business logic layer of the business server generates a jump request in response to the business processing request, and the jump request corresponds to the processing identifier of the business processing request. The business logic layer sends the jump request to the jump logic bearer layer of the business server; in step 2, the jump logic bearer layer queries the order number mapping based on the processing identifier. If the corresponding order number is not found, it proceeds to step 3; in step 3, the jump logic bearer layer obtains the target available business processing resource based on the resource health storage of the health management; in step 4, the jump logic bearer layer calls the order number generator to generate a routing order number based on the target available business processing resource; in step 5, the jump logic bearer layer performs real-time write detection on the target available business processing resource based on the routing order number. If the real-time write detection result indicates success, it proceeds to step 6; in step 6, the routing order number is added to the order number mapping.
[0138] In addition, the business server can also perform bypass write detection at preset time intervals. The bypass write detection performs a global detection of the business resource system and reports the availability to the health management.
[0139] Corresponding to the data processing methods provided in the above-mentioned embodiments, an embodiment of the present application also provides a data processing device. Since the data processing device provided in the embodiment of the present application corresponds to the data processing methods provided in the above-mentioned embodiments, the implementation methods of the aforementioned data processing methods are also applicable to the data processing device provided in this embodiment and will not be described in detail in this embodiment.
[0140] See also Figure 9 , which is a structural diagram of a data processing device provided by an embodiment of the present application, the device has the function of implementing the data processing method in the above method embodiment, and the function can be implemented by hardware or by hardware executing corresponding software. Figure 9 As shown, the data processing device 900 may include:
[0141] Order hopping module 910 is configured to, in response to an order hopping request triggered by a business processing request, search order number information corresponding to a processing identifier in the business processing request from order number mapping information; the order number mapping information represents a correspondence between the processing identifier and the order number information; the order number information includes a business processing resource identifier, the business processing resource identifier indicating a business processing resource for processing the business processing request with the corresponding processing identifier; the business processing resource is any one of a plurality of independent business processing resources;
[0142] Available selection module 920 is used to select a target available business processing resource based on the health information of each business processing resource in the resource health storage if no target business processing resource is found, and generate routing information pointing to the target available business processing resource; the health information represents the business processing status of the corresponding business processing resource;
[0143] A real-time write detection module 930 is configured to perform a real-time write detection on the target available service processing resource based on the routing number information to obtain a real-time write detection result;
[0144] The processing result determination module 940 is used to update the health information of the target available business processing resources in the resource health storage based on the real-time write detection result, and when the real-time write detection result indicates a failure, determine the business processing result corresponding to the business processing request based on the updated resource health storage.
[0145] In an exemplary embodiment, the processing result determination module 940 includes:
[0146] A first updating module is configured to update the number of real-time write detection failures when the real-time write detection result indicates a failure;
[0147] The first result determination module is used to execute the steps of selecting the target available business processing resources and performing real-time write detection and the update based on the updated resource health storage when the number of real-time write detection failures is less than the preset number, until the number of real-time write detection failures reaches the preset number, and use the preset business processing result as the business processing result corresponding to the business processing request; the preset business processing result indicates that the business processing has an error.
[0148] In an exemplary embodiment, the processing result determination module 940 further includes:
[0149] A second result determination module is configured to, when the real-time write detection result indicates success, call the target available business processing resource to process the business processing request and obtain a business processing result;
[0150] The tracking number mapping update module is used to add the routing tracking number information pointing to the target available business processing resource to the tracking number mapping information based on the processing identifier of the business processing request.
[0151] In an exemplary embodiment, the health information includes the current health; the available selection module 920 includes:
[0152] a current weight determination module, configured to determine a current weight of each of the business processing resources based on a current health corresponding to each of the business processing resources;
[0153] The selection submodule is configured to determine a random selection probability based on the current weight of each of the business processing resources, and select a target available business processing resource based on the random selection probability.
[0154] In an exemplary embodiment, the health information further includes historical weights; and the current weight determination module includes:
[0155] A comparison module, configured to compare a historical weight corresponding to the business processing resource with a preset weight when the current health corresponding to the business processing resource is less than a health threshold;
[0156] a first downward adjustment module, configured to, if the comparison result indicates that the historical weight is greater than the preset weight, reduce the historical weight according to a first adjustment range to obtain a current weight of the business processing resource;
[0157] The second downward adjustment module is used to reduce the historical weight according to a second adjustment range to obtain the current weight of the business processing resource when the comparison result indicates that the historical weight is less than or equal to the preset weight; wherein the first adjustment range is greater than the second adjustment range.
[0158] In an exemplary embodiment, the health information further includes historical health, and the current weight determination module further includes:
[0159] a health change trend determination module, configured to determine a health change trend based on the current health of the business processing resource and the historical health within a preset time period when the current health corresponding to the business processing resource is greater than or equal to a health threshold;
[0160] a weight-up adjustment module, configured to, when the health status change trend satisfies a preset trend, increase the historical weight by a third adjustment range to obtain a current weight of the business processing resource; wherein the third adjustment range is smaller than the second adjustment range, and the preset trend indicates a continuous increase;
[0161] The determination submodule is configured to determine the current weight of the business processing resource based on the historical weight of the business processing resource when the health change trend does not meet the preset trend.
[0162] In an exemplary embodiment, the determination submodule is specifically used to: determine the statistical value of the historical weight of the business processing resource within the preset time period, and use the statistical value as the current weight of the business processing resource; or, use the historical weight of the business processing resource closest to the current time as the current weight of the business processing resource.
[0163] In an exemplary embodiment, the processing result determination module 940 also includes a first health update module, which is specifically used to: determine the failure type if the real-time write detection result indicates a failure; determine the target health reduction range corresponding to the failure type based on the correspondence between the preset failure type and the health reduction range; and adjust the current health of the target available business processing resources in the resource health storage based on the target health reduction range.
[0164] In an exemplary embodiment, the first health update module is further configured to adjust the current health of the target available business processing resource in the resource health storage according to a preset health increase range when the real-time write detection result indicates success.
[0165] In an exemplary embodiment, the data processing device 900 further includes:
[0166] A bypass write detection module, configured to perform bypass write detection on each of the service processing resources at preset time intervals to obtain bypass write detection results corresponding to each of the service processing resources;
[0167] The second health updating module is configured to update the health information of each of the business processing resources in the resource health storage based on the bypass write detection result corresponding to each of the business processing resources.
[0168] In an exemplary embodiment, the resource health storage includes multiple levels of resource health storage.
[0169] It should be noted that the apparatus provided in the above embodiments, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0170] An embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement any one of the data processing methods provided in the above method embodiments.
[0171] The memory can be used to store software programs and modules. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory can mainly include a program storage area and a data storage area. The program storage area can store the operating system, application programs required for the functions, etc.; the data storage area can store data created based on the use of the device, etc. In addition, the memory can include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory can also include a memory controller to provide the processor with access to the memory.
[0172] The method embodiments provided in the embodiments of the present application can be executed in a computer terminal, a server or a similar computing device, that is, the above-mentioned electronic device can include a computer terminal, a server or a similar computing device. Figure 10 This is a hardware structure diagram of an electronic device that runs a data processing method provided in an embodiment of the present application, such as Figure 10As shown, the server 1000 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPUs) 1010 (the processor 1010 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 1030 for storing data, and one or more storage media 1020 (such as one or more mass storage devices) for storing application programs 1023 or data 1022. Among them, the memory 1030 and the storage medium 1020 can be temporary storage or permanent storage. The program stored in the storage medium 1020 may include one or more modules, each module may include a series of instruction operations on the server. Furthermore, the central processing unit 1010 can be configured to communicate with the storage medium 1020 to execute a series of instruction operations in the storage medium 1020 on the server 1000. The server 1000 may also include one or more power supplies 1060, one or more wired or wireless network interfaces 1050, one or more input and output interfaces 1040, and / or one or more operating systems 1021, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0173] The input / output interface 1040 can be used to receive or send data via a network. Specific examples of the aforementioned network may include a wireless network provided by the communication provider of the server 1000. In one embodiment, the input / output interface 1040 includes a network interface controller (NIC), which can be connected to other network devices via a base station to communicate with the Internet. In one embodiment, the input / output interface 1040 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0174] It can be understood by those skilled in the art that Figure 10 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 10 More or fewer components than shown, or with Figure 10 Different configurations shown.
[0175] An embodiment of the present application also provides a computer-readable storage medium, which can be set in an electronic device to store at least one instruction or at least one program related to implementing a data processing method. The at least one instruction or the at least one program is loaded and executed by the processor to implement any data processing method provided in the above method embodiments.
[0176] Embodiments of the present application further provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform any of the data processing methods provided in the above method embodiments.
[0177] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.
[0178] It should be noted that the order of the embodiments of the present application described above is for descriptive purposes only and does not represent the superiority or inferiority of the embodiments. The above description is of specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0179] The various embodiments in this specification are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences from other embodiments. In particular, the device embodiments are generally similar to the method embodiments, so the description is relatively simple. For relevant parts, refer to the description of the method embodiments.
[0180] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.
[0181] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. A data processing method, characterized in that: The method comprises: In response to a ticket skipping request triggered by a business processing request, searching for ticket number information corresponding to a processing identifier in the business processing request from ticket number mapping information; the ticket number mapping information represents a correspondence between the processing identifier and the ticket number information, the ticket number information including a business processing resource identifier, the business processing resource identifier indicating a business processing resource for processing the business processing request with the corresponding processing identifier, the business processing resource being any one of a plurality of mutually independent business processing resources; If no target business processing resource is found, selecting a target available business processing resource based on the health information of each business processing resource in the resource health storage, and generating routing information pointing to the target available business processing resource; the health information represents the business processing status of the corresponding business processing resource; Performing real-time write detection on the target available business processing resource based on the routing number information to obtain a real-time write detection result; The health information of the target available business processing resource in the resource health storage is updated based on the real-time write detection result, and when the real-time write detection result indicates a failure, the business processing result corresponding to the business processing request is determined based on the updated resource health storage.
2. The method according to claim 1, characterized in that When the real-time write detection result indicates a failure, determining the business processing result corresponding to the business processing request based on the updated resource health storage includes: If the real-time write detection result indicates a failure, updating the number of real-time write detection failures; If the number of real-time write detection failures is less than the preset number, the steps of selecting the target available business processing resources and performing real-time write detection and the update are executed based on the updated resource health storage until the number of real-time write detection failures reaches the preset number, and the preset business processing result is used as the business processing result corresponding to the business processing request; the preset business processing result indicates that the business processing is wrong.
3. The method according to claim 2, characterized in that The method further comprises: If the real-time write detection result indicates success, calling the target available business processing resource to process the business processing request and obtain a business processing result; Based on the processing identifier of the business processing request, the routing number information pointing to the target available business processing resource is added to the number mapping information.
4. The method according to claim 1, wherein The health information includes current health; The selecting of target available business processing resources based on the health information of each business processing resource in the resource health storage includes: Determining a current weight of each of the business processing resources based on a current health corresponding to each of the business processing resources; A random selection probability is determined based on the current weight of each of the business processing resources, and a target available business processing resource is selected based on the random selection probability.
5. The method according to claim 4, characterized in that The health information also includes a historical weight; and determining the current weight of each of the business processing resources based on the current health corresponding to each of the business processing resources includes: If the current health of the business processing resource is less than the health threshold, the historical weight of the business processing resource is compared with the preset weight; If the comparison result indicates that the historical weight is greater than the preset weight, reducing the historical weight according to a first adjustment range to obtain a current weight of the business processing resource; When the comparison result indicates that the historical weight is less than or equal to the preset weight, the historical weight is reduced according to a second adjustment range to obtain the current weight of the business processing resource; wherein the first adjustment range is greater than the second adjustment range.
6. The method according to claim 5, characterized in that The health information also includes historical health information, and the method further includes: If the current health of the business processing resource is greater than or equal to the health threshold, determining a health change trend based on the current health of the business processing resource and the historical health within a preset time period; If the health change trend satisfies a preset trend, increasing the historical weight according to a third adjustment range to obtain a current weight of the business processing resource; wherein the third adjustment range is smaller than the second adjustment range, and the preset trend indicates a continuous increase; If the health status change trend does not meet the preset trend, the current weight of the business processing resource is determined based on the historical weight of the business processing resource.
7. The method according to claim 6, characterized in that The determining the current weight of the service processing resource based on the historical weight of the service processing resource includes: Determine a statistical value of the historical weight of the service processing resource within the preset time period, and use the statistical value as the current weight of the service processing resource; or, The historical weight of the business processing resource that is closest to the current one is used as the current weight of the business processing resource.
8. The method according to claim 4, characterized in that The updating of the health information of the target available business processing resource in the resource health storage based on the real-time write detection result includes: If the real-time write detection result indicates a failure, determining the failure type; Determine the target health level reduction range corresponding to the failure type based on the corresponding relationship between the preset failure type and the health level reduction range; Based on the target health reduction range, the current health of the target available business processing resource in the resource health storage is adjusted.
9. The method according to claim 8, characterized in that The method further comprises: If the real-time write detection result indicates success, the current health of the target available business processing resource in the resource health storage is adjusted according to a preset health increase range.
10. The method according to any one of claims 1 to 9, characterized in that The method further comprises: Performing bypass write detection on each of the business processing resources at preset time intervals to obtain bypass write detection results corresponding to each of the business processing resources; The health information of each of the business processing resources in the resource health storage is updated based on the bypass write detection result corresponding to each of the business processing resources.
11. The method according to claim 1, wherein The resource health storage includes multiple levels of resource health storage.
12. A data processing device, characterized in that: The device comprises: a tripping module configured to, in response to a tripping request triggered by a business processing request, search from the ticket number mapping information for ticket number information corresponding to a processing identifier in the business processing request; the ticket number mapping information representing a correspondence between the processing identifier and the ticket number information, the ticket number information including a business processing resource identifier, the business processing resource identifier indicating a business processing resource for processing the business processing request with the corresponding processing identifier, the business processing resource being any one of a plurality of mutually independent business processing resources; An available selection module is used to select a target available business processing resource based on the health information of each business processing resource in the resource health storage if no such resource is found, and generate routing information pointing to the target available business processing resource; the health information represents the business processing status of the corresponding business processing resource; A real-time write detection module is used to perform real-time write detection on the target available business processing resource based on the routing number information to obtain a real-time write detection result; A processing result determination module is used to update the health information of the target available business processing resources in the resource health storage based on the real-time write detection result, and when the real-time write detection result indicates a failure, determine the business processing result corresponding to the business processing request based on the updated resource health storage.
13. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement the data processing method according to any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that The computer-readable storage medium stores at least one instruction or at least one program segment, and the at least one instruction or the at least one program segment is loaded and executed by a processor to implement the data processing method according to any one of claims 1 to 11.
15. A computer program, characterized in that When the computer program is executed by a processor, the data processing method according to any one of claims 1 to 11 is implemented.