Quick fault-tolerant processing method for data-writing Redis failure
A technology of data writing and processing methods, applied in the field of fault-tolerant processing, which can solve problems such as business data loss and incorrect communication establishment, and achieve the effects of solving data loss, ensuring fluency, and being convenient and simple to use
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Example Embodiment
[0021] Example 1:
[0022] A fast fault-tolerant processing method for failure of data writing to Redis, such as figure 1 As shown, including: business start, execute Redis business, determine whether the Redis business is executed successfully, if the execution is successful, save to the Redis server cluster, if the Redis business execution fails, execute the following steps:
[0023] S1: Add the failed Redis service as a fault-tolerant task to the queue for fault-tolerant processing;
[0024] S2: Obtain the fault-tolerant to-be-processed task from the fault-tolerant to-be-processed queue and determine whether there is a fault-tolerant to-be-processed task. If there is a fault-tolerant to-be-processed task, re-execute the Redis business, and the number of repeated executions of the Redis business is increased by 1 (the Redis business The initial value of the number of repeated executions is 0), continue to execute step S3; if there is no fault-tolerant pending task, execute step S4...
Example Embodiment
[0030] Example 2:
[0031] In order to ensure the order of the added and processed fault-tolerant tasks, on the basis of Embodiment 1, the fault-tolerant pending processing queue is a self-defined synchronization linked list.
Example Embodiment
[0032] Example 3:
[0033] In order to ensure the global unified processing of fault-tolerant tasks, on the basis of Embodiment 1 or Embodiment 2, the fault-tolerant pending processing queue is implemented by using a database.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap