Task Processing Reliability via External Memory Server Failover
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current task processing systems face low reliability due to task interruption when a server fails, even if the task engine is functional, requiring reprocessing of tasks.
Innovation Solution
A method and apparatus that store task engine information and client identifiers in an external memory, allowing another server to reconnect and continue processing tasks if the initial server fails, ensuring uninterrupted task processing.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the server processes the task using a task engine, then the task processing capability is improved, but if the server is faulty, the task is forced to end and needs to be reprocessed, so the reliability is reduced
Solution Approach 1:
The patent applies preliminary action by pre-storing the mapping relationship between client identifiers and task engine information in an external memory system (such as ZooKeeper) before the server fails. This allows the system to quickly retrieve and transfer task processing to another server without complex real-time discovery mechanisms, thereby improving reliability while maintaining manageable system complexity.
Solution Approach 2:
The patent introduces an external memory system (intermediary) that stores the mapping relationships between client identifiers and task engine information. This intermediary enables seamless task transfer between servers by providing a centralized storage location that both the original and backup servers can access, resolving the reliability issue without significantly increasing system complexity.
2Reliability
If the server stores task engine information in external memory, then the reliability of task processing is improved, but the memory usage and system resources are increased
Solution Approach 1:
The patent extracts the storage of mapping relationships from the server's local memory to an external memory system. This extraction allows the server to maintain lower memory usage while still achieving high reliability through externalized persistence of task engine information, effectively resolving the contradiction between reliability and memory resource consumption.
3Reliability
If the task is reprocessed after server failure, then the system can recover, but the processing time is increased and productivity is reduced
Solution Approach 1:
By pre-storing the mapping relationships in external memory before failure occurs, the system enables rapid task resumption after server failure. The backup server can immediately retrieve the task engine information and continue processing without time-consuming reprocessing, thus maintaining high productivity while ensuring system recovery capability.
Data Source
AI summary
This application provides a task processing method, a first server may receive a first task processing request sent by a client, and then determine information of a task engine that is used to processes the first task processing request. The information of the task engine may be used to establish a connection to the task engine. The first server may store the information of the task engine and an identifier of the client in correspondence into an external memory. After the first server is faulty, another server may determine the information of the task engine based on the information of the task engine and the identifier of the client that are stored correspondingly in the external memory, and establish a connection to the task engine based on the information of the task engine, to use the task engine to continue to process a task initiated by the client.


