Canceling SVG Conversion via Unique ID in Cloud Document Generation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In cloud-based business form document generation systems, when an error occurs during the generation of PDF data, it is difficult to identify and cancel the corresponding SVG conversion process, leading to resource wastage and performance degradation due to asynchronous and parallel processing.
Innovation Solution
The system includes a generation unit, a conversion request unit, and a deletion request unit that allow for immediate cancellation of subsequent processes when an error occurs in the preceding process, ensuring that resources are not unnecessarily consumed by identifying and canceling the SVG conversion process through unique identification information.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Loss of time
If SVG conversion process is started before PDF generation completes (asynchronous parallel processing), then web form availability time is reduced, but resource wastage occurs when generation is canceled
Solution Approach 1:
The system performs preliminary action by requesting SVG conversion before PDF generation completes, allowing the conversion process to start in advance. This reduces the overall time to web form availability while enabling cancellation if generation fails, thus preventing wasted resources.
Solution Approach 2:
The system establishes feedback mechanisms through callbacks and event listeners that monitor the PDF generation process. When generation completes successfully or is canceled, the feedback triggers appropriate actions: either stopping the conversion process or proceeding with it, thereby avoiding unnecessary resource consumption.
2Loss of time
If SVG conversion is requested before PDF generation completes, then processing time is reduced, but difficulty in identifying and canceling conversion process increases
Solution Approach 1:
The system segments the conversion process into independently trackable units by creating separate conversion tasks for different PDF files. Each conversion process receives a unique identifier, allowing the system to selectively cancel specific conversion processes based on their corresponding PDF generation status.
Solution Approach 2:
The system introduces an intermediary mechanism (callback functions and event listeners) that bridges the PDF generation process and SVG conversion process. This intermediary enables precise tracking and control of conversion processes, making it easy to identify and cancel the correct conversion task based on generation outcomes.
3Productivity
If multiple conversion processes run in parallel, then productivity increases, but resource management complexity increases
Solution Approach 1:
The system implements dynamic process management where the state of conversion processes is continuously updated based on PDF generation status. Conversion processes can be dynamically started, stopped, or allowed to complete based on real-time feedback, enabling efficient parallel processing without overwhelming resource management complexity.
Data Source
AI summary
In a case where generation of processing-target document data in a first format by a generation unit is canceled, deletion of a conversion process identified by identified information is requested to a conversion service.


