Evidence storage request processing method and evidence storage platform
By introducing a dynamic proxy class into the evidence storage platform, the availability of the evidence storage service provider is determined and a preset processing flow is executed, which solves the problem of unavailability when the evidence storage service provider is abnormal, and achieves high availability of the evidence storage platform and optimization of user experience.
Patent Information
- Application Number
- CN202411294614.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-14
- Publication Date
- 2024-11-26
AI Technical Summary
When the evidence storage service provider is experiencing an anomaly, the evidence storage platform is unable to provide normal evidence storage support, which affects the operation of business systems. Existing technologies cannot effectively improve the availability of evidence storage services.
By introducing dynamic proxy classes into the evidence storage platform, proxy classes corresponding to each evidence storage service provider are pre-configured, service availability is determined and preset processing flows are executed, task information is stored, a circuit breaker mechanism is implemented, and incomplete evidence storage tasks are automatically processed, reducing dependence on external service providers.
This improved the availability of the evidence storage platform's services, reduced the risk of unavailability due to abnormalities of external service providers, optimized the user experience, and reduced reliance on external service providers.
Smart Images

Figure CN119027225A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method for processing evidence storage requests and an evidence storage platform. Background Art
[0002] With the development of Internet technology, social life has gradually become online, and financial institutions have begun to provide online service channels, such as mobile banking, direct banking, etc. The "Internet + Finance" business model has developed rapidly. In order to deal with online operations and transaction disputes, financial institutions need to collect and preserve electronic evidence during the operation process.
[0003] The evidence storage platform can provide data evidence storage services for mobile banking, direct banking and other channels in the form of interfaces. However, once the evidence storage service provider that provides signature and seal evidence storage functions for the evidence storage platform is abnormal, such as CFCA (China Financial Certification Authority, CFCA, China Financial Certification Center) service is unavailable, Zhiyin signature interface is unavailable, etc., the evidence storage platform will stop providing evidence storage support for business systems such as mobile banking and direct banking, which will affect the business development of the business system and have a significant impact on the business system. Summary of the invention
[0004] In view of the above problems, the present application provides a method for processing evidence storage requests and an evidence storage platform to achieve the purpose of improving the availability of evidence storage services.
[0005] The specific plan is as follows:
[0006] The first aspect of the present application provides a method for processing a storage request, which is applied to a storage platform. The method includes:
[0007] Receiving a proof storage request from a business system, wherein the proof storage request is used to request to call a proof storage service provided by the proof storage platform;
[0008] Parsing the evidence storage request, and determining the evidence storage service requested to be called by the business system as the target service;
[0009] In the case where the target service belongs to a preset service set, the dynamic proxy class corresponding to the target service is triggered to execute a preset processing flow; wherein the preset service set includes: a storage service involving service items provided by a storage service provider to the storage platform; the storage platform is pre-configured with dynamic proxy classes corresponding to each service in the preset service set; the preset processing flow includes: determining whether the storage service provider is available, if available, calling the target service and saving the corresponding result file; if not available, storing storage task information, wherein the storage task information is determined based on the storage request;
[0010] Determine the processing result of the dynamic proxy class corresponding to the target service on the evidence storage request, and send return information corresponding to the processing result to the business system;
[0011] When the preset task processing conditions are met, the execution of the pending task processing flow is triggered; the pending task processing flow includes: when the evidence service provider is available, obtaining the evidence task information stored in each of the dynamic proxy classes, determining the pending evidence task, calling the evidence service corresponding to the pending evidence task, and saving the corresponding result file.
[0012] The second aspect of the present application provides an evidence storage platform, including: an evidence storage request response module and a dynamic proxy class corresponding to each service in a preset service set; wherein the preset service set includes: an evidence storage service involving service items provided by an evidence storage service provider to the evidence storage platform;
[0013] The evidence request response module is used to: receive an evidence request from a business system, the evidence request is used to request to call an evidence service provided by the evidence platform; parse the evidence request, determine the evidence service requested to be called by the business system as the target service; and trigger the dynamic proxy class corresponding to the target service when the target service belongs to a preset service set;
[0014] The dynamic proxy class corresponding to the target service is used to execute a preset processing flow under the triggering of the evidence storage request response module, and the preset processing flow includes: determining whether the evidence storage service provider is available, and if so, calling the target service and saving the corresponding result file; if not, storing evidence storage task information, and the evidence storage task information is determined based on the evidence storage request;
[0015] The evidence request response module is also used to: determine the processing result of the dynamic proxy class corresponding to the target service on the evidence request, and send return information corresponding to the processing result to the business system; and when the preset task processing conditions are met, trigger the execution of the pending task processing flow; the pending task processing flow includes: when the evidence service provider is available, obtain the evidence task information stored in each of the dynamic proxy classes, determine the evidence task to be processed, call the evidence service corresponding to the pending evidence task, and save the corresponding result file.
[0016] By means of the above technical scheme, the present application first responds to the evidence request of the business system, determines that the evidence service requested by the business system is the target service; then, when the target service belongs to the preset service set, triggers the corresponding dynamic proxy class to execute the preset processing flow to process the call to the target service; determines the processing result of the dynamic proxy class on the evidence request, and returns the corresponding information to the business system. Based on this, regardless of whether an abnormality occurs in the evidence service provider, the business system can carry out business normally, and since the generation of the proxy object will not affect the target object, the present application implements the fuse mechanism for the evidence service with less intrusion into the original service logic; finally, when the preset task processing conditions are met, triggers the execution of the pending task processing flow, so as to re-access the evidence service provider based on the evidence task information stored by the dynamic proxy when the service provider is unavailable, automatically processes the previously unprocessed evidence tasks, and realizes the purpose of supplementing the business system with signature, preservation and other services without the need for the business system to re-initiate the evidence request, thereby effectively improving the availability of the evidence service of the evidence platform, reducing the risk of unavailability of the evidence service due to the unavailability of the external service provider, reducing the degree of dependence on the external service provider, and optimizing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0018] Figure 1 A flowchart of a method for processing a deposit request provided for this application;
[0019] Figure 2 A schematic diagram of the processing logic of a dynamic proxy class is shown;
[0020] Figure 3 A schematic diagram of the processing logic of a timed task is shown. DETAILED DESCRIPTION
[0021] The embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation mode of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application. It is known to those skilled in the art that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0022] The present application provides a method for processing evidence storage requests and an evidence storage platform, which can realize evidence storage tasks and improve the availability of the evidence storage platform.
[0023] Figure 1 A flow chart of a method for processing evidence request provided for this application is applied to an evidence platform, which can also be called a unified evidence platform. It can provide evidence services for business systems connected to the evidence platform based on the evidence function provided by the evidence service provider.
[0024] Combination Figure 1 As shown, the evidence storage request processing method may include the following steps:
[0025] Step S101: receiving a request for evidence storage from a business system.
[0026] Among them, the evidence request is a request initiated by the business system through the interface connected to the evidence platform, and the evidence request is used to request to call an evidence service provided by the evidence platform.
[0027] Step S102: parse the evidence storage request and determine the evidence storage service requested to be called by the business system as the target service.
[0028] Step S103: When the target service belongs to a preset service set, trigger the dynamic proxy class corresponding to the target service to execute a preset processing flow.
[0029] The preset service set may include: a proof service involving service items provided by a proof service provider to the proof platform. Exemplarily, the preset service set may include: CFCA signature service, CFCA security service, smart seal signature service, etc.
[0030] It should be noted that the evidence storage platform is pre-configured with dynamic proxy classes corresponding to each service in the preset service set. The following takes the dynamic proxy class corresponding to the target service as an example. Each time the Service of the target service is called, the dynamic proxy class corresponding to the target service is automatically triggered to create a proxy object of the target object to execute the preset processing flow before executing the method in the target object.
[0031] The preset processing flow may include the following steps AC:
[0032] Step A: Determine whether the evidence storage service provider is available. If available, proceed to step B; if not available, proceed to step C.
[0033] For example, the service status of the provider can be obtained by requesting to connect to the interface of the evidence storage service provider to determine whether the evidence storage service provider is available.
[0034] Step B: call the target service and save the corresponding result file to implement the evidence storage task corresponding to the evidence storage request.
[0035] When the evidence storage service provider is available, the signature, evidence storage and other services do not need to be shut down, that is, the service fuse is in the closed state, and the target service can be called normally to meet the evidence storage needs of the business system, and the request result (i.e., result file) returned by the target service is saved to the database. It should be noted that in step B, the target service is called based on the received evidence storage request.
[0036] Step C: store the evidence task information.
[0037] When the evidence service provider is unavailable, services such as signature and evidence storage are temporarily closed, that is, the service circuit breaker is turned on, and the target service cannot be called immediately to implement the evidence storage task. However, the evidence storage task information can be stored to provide a basis for subsequent processing retries after the service provider recovers.
[0038] The evidence storage task information is determined based on the evidence storage request and may include various information required to implement the evidence storage task corresponding to the evidence storage request, such as request parameters of the evidence storage request.
[0039] Correspondingly, when the target service does not belong to the preset service set, the evidence storage request can be processed according to the current target service calling process to implement the corresponding evidence storage task.
[0040] Step S104: determine the processing result of the dynamic proxy class corresponding to the target service on the evidence storage request, and send return information corresponding to the processing result to the business system.
[0041] In a possible implementation, when the evidence storage service provider is available, the processing result of the evidence storage request by the dynamic proxy class and the return information of the business information returned by the evidence storage platform can be the evidence storage result indicating the success of the evidence storage; when the evidence storage service provider is unavailable, the processing result of the evidence storage request by the dynamic proxy class can be the evidence storage task information indicating the failure of the evidence storage. In this case, the return information returned by the evidence storage platform to the business system can be a default return msg, such as "the current service provider is unavailable". It should be noted that the business system can continue to carry out business through the return information.
[0042] Step S105: When the preset task processing conditions are met, trigger the execution of the pending task processing flow.
[0043] The processing flow of the pending tasks may include:
[0044] The first step is to obtain the evidence storage task information stored in each of the dynamic proxy classes when the evidence storage service provider is available, and determine the evidence storage task to be processed;
[0045] The second step is to call the evidence storage service corresponding to the evidence storage task to be processed and save the corresponding result file to implement the evidence storage task to be processed.
[0046] It should be noted that in the process of processing pending tasks, the evidence service is called based on the evidence task information previously stored by the dynamic proxy class. The calling method of the evidence service can refer to the current calling method, which will not be repeated here.
[0047] By means of the above scheme, the evidence storage platform responds to the evidence storage request of the business system and determines that the evidence storage service requested by the business system is the target service; then, when the target service belongs to the preset service set, the corresponding dynamic proxy class is triggered to execute the preset processing flow to process the call to the target service; the processing result of the dynamic proxy class on the evidence storage request is determined, and the corresponding information is returned to the business system. Based on this, regardless of whether an abnormality occurs in the evidence storage service provider, the business system can carry out business normally, and since the generation of the proxy object will not affect the target object, the present application implements the fuse mechanism for the evidence storage service with less intrusion into the original service logic; finally, when the preset task processing conditions are met, the execution of the pending task processing flow is triggered to re-access the evidence storage service provider based on the evidence storage task information stored by the dynamic proxy when the service provider is unavailable, and automatically process the previously unprocessed evidence storage tasks, so as to achieve the purpose of supplementing the business system with signature, preservation and other services without the need for the business system to re-initiate the evidence storage request, thereby effectively improving the availability of the evidence storage service of the evidence storage platform, reducing the risk of unavailability of the evidence storage service due to the unavailability of the external service provider, reducing the degree of dependence on the external service provider, and optimizing the user experience.
[0048] Next, the processing logic of the dynamic proxy class is explained.
[0049] In one or more embodiments provided in the present application, the above-mentioned step A, determining whether the evidence storage service provider is available, may include:
[0050] Check whether the system table of the evidence storage platform has service circuit breaker turned on.
[0051] The system table may refer to a table storing system configuration information, and the switch status of the service fuse is one of the system configuration information; for example, the system table may be represented as a TT_SYSTEM_CONFIG table, which may be cached and maintained in the internal management system of the evidence storage platform. Based on this, in a possible implementation, querying the system table of the evidence storage platform to see whether the service fuse is turned on may include the following steps A1-A2:
[0052] Step A1: query the field value of the fuse flag from the system table of the evidence storage platform.
[0053] The field value of the fuse flag is configured by the internal management system of the evidence storage platform according to the real-time status of the evidence storage service provider detected, and is used to represent the switch state of the evidence storage service fuse. Exemplarily, if the evidence storage service fuse is in the on state, the corresponding field value of the fuse flag can be 1; if the evidence storage service fuse is in the off state, the corresponding field value of the fuse flag can be 0.
[0054] Step A2: determine whether the queried field value indicates that the evidence storage service fuse is in the open state.
[0055] Specifically, if the queried field value does not indicate that the evidence service circuit breaker is in the open state, that is, it indicates that the evidence service circuit breaker is in the closed state, then it indicates that the evidence service provider is available; if the queried field value indicates that the evidence service circuit breaker is in the open state, then it indicates that the evidence service provider is unavailable.
[0056] With the above solution, the dynamic proxy does not need to directly request an interface to connect to the evidence service provider when determining whether the service provider is available, thereby reducing the processing pressure of the evidence service provider for liveness detection requests.
[0057] In one or more embodiments provided in the present application, after the field value of the blown fuse flag is queried, the preset processing flow may further include:
[0058] Step D: save the queried field value in the secondary cache.
[0059] The field value of the fuse flag in the secondary cache is synchronously updated by the internal management system when the internal management system changes the field value of the fuse flag in the system table. Based on this, the internal management system can be used to update the field value in the secondary cache (such as the secondary cache of mybatis) while modifying the fuse according to the detected real-time status of the evidence storage service provider.
[0060] On the basis of the above, before querying the field value of the fuse flag from the system table of the evidence storage platform in step A1, the above step A, determining whether the evidence storage service provider is available, may also include:
[0061] Step A0, query the field value of the fuse flag from the secondary cache; if the query does not hit, execute step A1 to query the field value of the fuse flag from the system table of the evidence storage platform; if the query hits, execute step A2 to determine whether the queried field value indicates that the evidence service fuse is in the on state.
[0062] Based on the above content, by saving the queried field values in the secondary cache and giving priority to querying the secondary cache in subsequent queries, the number of database accesses is reduced, the query burden on the database is reduced, and the performance of the evidence storage platform can be improved. In addition, the secondary cache is the global cache of mybatis, that is, the cache based on the entire evidence storage platform, which can be shared by various dynamic agents.
[0063] In one or more embodiments provided in this application, the preset processing flow may further include:
[0064] Step E: When the evidence service provider is unavailable, use a preset file as a temporary result file corresponding to the evidence request, upload the temporary result file to the imaging platform of the evidence platform, and add information corresponding to the temporary result file to the evidence record table corresponding to the target service.
[0065] The above-mentioned preset file can be a pre-set fixed template file. It should be noted that when the evidence service provider is unavailable, the imaging platform cannot obtain the real evidence result file. Based on this, the dynamic agent can upload the fixed template file to the imaging platform based on the path of the fixed template file as a temporary result file. In addition, for different target services, there are different evidence record tables. For example, the evidence record table corresponding to the CFCA signature service can be a signature record table. Through the evidence record table, the evidence records of the evidence platform can be recorded and saved.
[0066] For example, Figure 2 A schematic diagram of the processing logic of a dynamic proxy class is shown, combined with Figure 2 As shown, the evidence storage platform pre-configures dynamic agents. According to the corresponding service types, the configured agent classes may include: agent class 1 corresponding to the CFCA signature service, agent class 2 corresponding to the CFCA security service, agent class 3 corresponding to the smart seal signature service, etc. The following takes the received evidence storage request as an example of calling the CFCA signature service. When the agent class 1 is triggered, it first determines the fuse flag of the system table. If the CFCA service is in a normal state, that is, it is not blown, then the signature Service service is called to execute the normal signature logic. If the CFCA service is abnormal, that is, it is blown, then the preset file is first uploaded to the image platform, and the preset file is used as a temporary signature result, and the information is saved to the signature table, and the signature task is recorded in the fuse task table for subsequent processing.
[0067] Based on the above content, in one or more embodiments provided in the present application, the process of processing the pending tasks may further include:
[0068] The third step is to obtain the result file of successful processing by the evidence service after calling the evidence service corresponding to the evidence task to be processed; and to call the file replacement service of the imaging platform to replace the temporary result file corresponding to the evidence task to be processed with the result file.
[0069] It should be noted that since the preset file is stored as a temporary result file when the evidence service provider is unavailable, after the subsequent evidence service provider is available and the corresponding service is called, the obtained result file will be uploaded to the object storage to overwrite the previous temporary result file to maintain data consistency.
[0070] In one or more embodiments provided in the present application, the above-mentioned step C, storing evidence task information, may include:
[0071] Step C1: add an entry corresponding to the evidence storage request to the fuse task table of the evidence storage platform, and configure a task status identifier corresponding to a pending status for the entry.
[0072] Exemplarily, the fuse task table can be represented as the TT_TASKRECORD_BROKEN table, which is used to record the business request information that failed to store evidence due to the fuse of the evidence service. Specifically, the above-mentioned items may include: item identifier and task status identifier. Among them, the item identifier is a unique identifier representing the evidence request (or evidence task) corresponding to the item, which can also be referred to as a jobID; the task status identifier is used to represent the task status of the evidence task corresponding to the item. The initial task status is represented as an identifier corresponding to the pending status. Exemplarily, 0 can be used to represent the pending status, and 1 can be used to represent the processing status.
[0073] Step C2: Determine the entry identifier of the entry in the fuse task table.
[0074] Step C3: Save the task information of the evidence storage task corresponding to the entry identifier and the evidence storage request to the business table of the evidence storage platform.
[0075] Based on this, the corresponding task information can be obtained from the business table according to the entry identifier to implement the corresponding evidence storage task. Exemplarily, the above business table can be represented as TT_business table, which contains task information such as request parameters determined according to the evidence storage request.
[0076] Based on the above content, in one or more embodiments provided in the present application, the first step of obtaining the evidence storage task information stored in each of the dynamic proxy classes and determining the evidence storage tasks to be processed may include:
[0077] Step F: Obtain the entry identifier corresponding to the entry with the specified task status identifier from the fuse task table as the entry identifier corresponding to the evidence storage task to be processed.
[0078] The specified task status identifier is a task status identifier corresponding to a pending state, such as an entry identifier with a task status identifier of 0. Optionally, when obtaining an entry identifier, the pending evidence storage task corresponding to the obtained entry identifier may be occupied to avoid duplicate processing.
[0079] Step G: Based on the entry identifier corresponding to the evidence storage task to be processed, task information is obtained from the business table as the task information of the evidence storage task to be processed.
[0080] Optionally, after the third step mentioned above, the pending task processing flow may further include: updating the task status identifier of the entry corresponding to the pending evidence task in the fuse task table, such as modifying it to a non-zero value.
[0081] In one or more embodiments provided in the present application, the above step S105, triggering the execution of the pending task processing flow when the preset task processing condition is met, may include:
[0082] When the preset scheduled task execution time is reached, the scheduled task is triggered.
[0083] The scheduled task is used to execute the processing flow of the pending task. Optionally, the scheduled task can be configured to be executed once every preset time after the evidence storage platform is enabled, wherein the preset time can be 15 minutes (min).
[0084] For example, Figure 3 A schematic diagram of the processing logic of a timed task is shown, combined with Figure 3 As shown, the process of processing pending tasks by scheduled tasks may include: when the scheduled task execution time is reached, the scheduled task is triggered, firstly, the entry identifier corresponding to the pending status is obtained from the fuse task table, and the pending task is determined and occupied accordingly, and then the task information of the pending task is obtained from the joint business table, and each pending task is processed in turn. For any pending task, according to the different task types, the corresponding evidence service Service is called, such as one of the CFCA signature service, CFCA preservation service and Zhiyin synchronous signature service, to process the task; after the call, the result file successfully processed by the evidence service Service is downloaded from the image platform, and the result file is uploaded to the object storage to overwrite the previous temporary file; and then the task status in the fuse task table is updated.
[0085] The following is a description of the evidence storage platform provided in the embodiment of the present application. The evidence storage platform described below and the evidence storage request processing method described above can be referenced to each other.
[0086] The evidence storage platform may include: an evidence storage request response module and a dynamic proxy class corresponding to each service in a preset service set; wherein the preset service set includes: an evidence storage service involving service items provided by an evidence storage service provider to the evidence storage platform. Specifically:
[0087] The evidence request response module can be used to: receive an evidence request from a business system, the evidence request is used to request to call an evidence service provided by the evidence platform; parse the evidence request, determine the evidence service requested to be called by the business system as the target service; if the target service belongs to a preset service set, trigger the dynamic proxy class corresponding to the target service;
[0088] The dynamic proxy class corresponding to the target service can be used to execute a preset processing flow under the triggering of the evidence storage request response module, and the preset processing flow includes: judging whether the evidence storage service provider is available, if available, calling the target service and saving the corresponding result file, if not available, storing evidence storage task information, and the evidence storage task information is determined based on the evidence storage request;
[0089] The evidence request response module can also be used to: determine the processing result of the dynamic proxy class corresponding to the target service on the evidence request, and send return information corresponding to the processing result to the business system; and when the preset task processing conditions are met, trigger the execution of the pending task processing flow; the pending task processing flow includes: when the evidence service provider is available, obtain the evidence task information stored in each of the dynamic proxy classes, determine the evidence task to be processed, call the evidence service corresponding to the pending evidence task, and save the corresponding result file.
[0090] In one or more embodiments provided in the present application, the evidence storage platform may further include: a scheduled task execution module.
[0091] On the basis of the above, when the preset task processing conditions are met, the evidence storage request response module triggers the process of executing the pending task processing flow, which may include:
[0092] When the preset scheduled task execution time is reached, the scheduled task execution module is triggered.
[0093] The scheduled task execution module can be used to: execute the pending task processing flow under triggering.
[0094] In one or more embodiments provided in this application, the preset processing flow may further include:
[0095] When the evidence service provider is unavailable, a preset file is used as a temporary result file corresponding to the evidence request, the temporary result file is uploaded to the imaging platform of the evidence platform, and information corresponding to the temporary result file is added to the evidence record table corresponding to the target service.
[0096] In one or more embodiments provided in the present application, the process of processing the pending tasks may further include:
[0097] After calling the evidence storage service corresponding to the evidence storage task to be processed, obtaining the result file of successful processing of the evidence storage service;
[0098] The file replacement service of the image platform is called to replace the temporary result file corresponding to the evidence storage task to be processed with the result file.
[0099] In one or more embodiments provided in the present application, the process of storing evidence task information in the dynamic proxy class corresponding to the target service may include:
[0100] Adding an entry corresponding to the evidence storage request to the fuse task table of the evidence storage platform, and configuring a task status identifier corresponding to a pending status for the entry;
[0101] Determine the entry identifier of the entry in the fuse task table;
[0102] The task information of the evidence storage task corresponding to the entry identifier and the evidence storage request is saved in the business table of the evidence storage platform.
[0103] In one or more embodiments provided in the present application, the process in which the scheduled task execution module obtains the evidence task information stored in each of the dynamic proxy classes and determines the evidence task to be processed may include:
[0104] Obtaining the entry identifier corresponding to the entry of the specified task status identifier from the fuse task table as the entry identifier corresponding to the evidence storage task to be processed; the specified task status identifier is the task status identifier corresponding to the pending state;
[0105] Based on the entry identifier corresponding to the evidence storage task to be processed, task information is obtained from the business table as the task information of the evidence storage task to be processed.
[0106] In one or more embodiments provided in the present application, the process in which the dynamic proxy class corresponding to the target service determines whether the evidence storage service provider is available may include:
[0107] Querying the field value of the fuse flag from the system table of the evidence storage platform; the field value of the fuse flag is configured by the internal management system of the evidence storage platform according to the detected real-time status of the evidence storage service provider, and is used to represent the switch status of the evidence storage service fuse;
[0108] Determine whether the queried field value indicates that the evidence storage service fuse is in an open state;
[0109] If not, it indicates that the evidence storage service provider is available;
[0110] If so, it indicates that the evidence service provider is unavailable.
[0111] In one or more embodiments provided in the present application, the process in which the dynamic proxy class corresponding to the target service executes the preset processing flow may further include:
[0112] After the field value of the blown flag is queried, the queried field value is saved in a secondary cache; the field value of the blown flag in the secondary cache is synchronously updated by the internal management system when the internal management system changes the field value of the blown flag in the system table;
[0113] On the basis of the above, the process of the dynamic proxy class corresponding to the target service determining whether the evidence storage service provider is available may also include:
[0114] Before querying the field value of the fuse flag from the system table of the evidence storage platform, querying the field value of the fuse flag from the secondary cache;
[0115] If the query does not hit, query the field value of the fuse flag from the system table of the evidence storage platform;
[0116] If the query hits, it is determined whether the queried field value indicates that the evidence service fuse is in the open state.
[0117] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0118] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can refer to each other.
[0119] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for processing a request for evidence storage, characterized in that: Applied to the evidence storage platform, the method includes: Receiving a proof storage request from a business system, wherein the proof storage request is used to request to call a proof storage service provided by the proof storage platform; Parsing the evidence storage request, and determining the evidence storage service requested to be called by the business system as the target service; In the case where the target service belongs to a preset service set, the dynamic proxy class corresponding to the target service is triggered to execute a preset processing flow; wherein the preset service set includes: a storage service involving service items provided by a storage service provider to the storage platform; the storage platform is pre-configured with dynamic proxy classes corresponding to each service in the preset service set; the preset processing flow includes: determining whether the storage service provider is available, if available, calling the target service and saving the corresponding result file; if not available, storing storage task information, wherein the storage task information is determined based on the storage request; Determine the processing result of the dynamic proxy class corresponding to the target service on the evidence storage request, and send return information corresponding to the processing result to the business system; When the preset task processing conditions are met, the execution of the pending task processing flow is triggered; the pending task processing flow includes: when the evidence service provider is available, obtaining the evidence task information stored in each of the dynamic proxy classes, determining the pending evidence task, calling the evidence service corresponding to the pending evidence task, and saving the corresponding result file.
2. The method for processing a request for evidence storage according to claim 1, characterized in that: The preset processing flow also includes: When the evidence service provider is unavailable, a preset file is used as a temporary result file corresponding to the evidence request, the temporary result file is uploaded to the imaging platform of the evidence platform, and information corresponding to the temporary result file is added to the evidence record table corresponding to the target service.
3. The method for processing a request for evidence storage according to claim 2, characterized in that: The process of processing the pending tasks also includes: After calling the evidence storage service corresponding to the evidence storage task to be processed, obtaining the result file of successful processing of the evidence storage service; The file replacement service of the image platform is called to replace the temporary result file corresponding to the evidence storage task to be processed with the result file.
4. The method for processing a request for evidence storage according to claim 1, characterized in that: Stores evidence task information, including: Adding an entry corresponding to the evidence storage request to the fuse task table of the evidence storage platform, and configuring a task status identifier corresponding to a pending status for the entry; Determine the entry identifier of the entry in the fuse task table; The task information of the evidence storage task corresponding to the entry identifier and the evidence storage request is saved in the business table of the evidence storage platform.
5. The method for processing a request for evidence storage according to claim 4, characterized in that: Obtaining the evidence storage task information stored in each of the dynamic proxy classes and determining the evidence storage tasks to be processed, including: Obtaining the entry identifier corresponding to the entry of the specified task status identifier from the fuse task table as the entry identifier corresponding to the evidence storage task to be processed; the specified task status identifier is the task status identifier corresponding to the pending state; Based on the entry identifier corresponding to the evidence storage task to be processed, task information is obtained from the business table as the task information of the evidence storage task to be processed.
6. The method for processing a request for evidence storage according to any one of claims 1 to 5, characterized in that: When the preset task processing conditions are met, the pending task processing flow is triggered, including: When the preset scheduled task execution time is reached, the scheduled task is triggered; the scheduled task is used to execute the processing flow of the pending task.
7. The method for processing a request for evidence storage according to any one of claims 1 to 5, characterized in that: Determining whether the evidence storage service provider is available includes: Querying the field value of the fuse flag from the system table of the evidence storage platform; the field value of the fuse flag is configured by the internal management system of the evidence storage platform according to the detected real-time status of the evidence storage service provider, and is used to represent the switch status of the evidence storage service fuse; Determine whether the queried field value indicates that the evidence storage service fuse is in an open state; If not, it indicates that the evidence storage service provider is available; If so, it indicates that the evidence service provider is unavailable.
8. The method for processing evidence storage request according to claim 7, characterized in that: After the field value of the fuse flag is queried, the preset processing flow further includes: The queried field value is stored in a secondary cache; the field value of the fuse flag in the secondary cache is synchronously updated by the internal management system when the internal management system changes the field value of the fuse flag in the system table; Determining whether the evidence storage service provider is available further includes: Before querying the field value of the fuse flag from the system table of the evidence storage platform, querying the field value of the fuse flag from the secondary cache; If the query does not hit, query the field value of the fuse flag from the system table of the evidence storage platform; If the query hits, it is determined whether the queried field value indicates that the evidence service fuse is in the open state.
9. A proof storage platform, characterized in that: include: A proof request response module and a dynamic proxy class corresponding to each service in a preset service set; wherein the preset service set includes: a proof service involving service items provided by a proof service provider to the proof platform; The evidence request response module is used to: receive an evidence request from a business system, the evidence request is used to request to call an evidence service provided by the evidence platform; parse the evidence request, determine the evidence service requested to be called by the business system as the target service; and trigger the dynamic proxy class corresponding to the target service when the target service belongs to a preset service set; The dynamic proxy class corresponding to the target service is used to execute a preset processing flow under the triggering of the evidence storage request response module, and the preset processing flow includes: determining whether the evidence storage service provider is available, and if so, calling the target service and saving the corresponding result file; if not, storing evidence storage task information, and the evidence storage task information is determined based on the evidence storage request; The evidence request response module is also used to: determine the processing result of the dynamic proxy class corresponding to the target service on the evidence request, and send return information corresponding to the processing result to the business system; and when the preset task processing conditions are met, trigger the execution of the pending task processing flow; the pending task processing flow includes: when the evidence service provider is available, obtain the evidence task information stored in each of the dynamic proxy classes, determine the evidence task to be processed, call the evidence service corresponding to the pending evidence task, and save the corresponding result file.
10. The evidence storage platform according to claim 9, characterized in that: The evidence storage platform also includes: a scheduled task execution module; When the preset task processing conditions are met, the evidence storage request response module triggers the process of executing the pending task processing flow, including: When the preset scheduled task execution time is reached, the scheduled task execution module is triggered; The scheduled task execution module is used to: execute the pending task processing flow under triggering.
