Dynamic Signature Algorithm Loading for CDN Edge Adaptation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The efficiency of loading signature algorithms in edge servers of a content delivery network (CDN) is low due to traditional hard-coded implementation, especially when different clients require customized algorithms, leading to bottlenecks in user access and service adaptation.
Innovation Solution
A method and apparatus for dynamically loading signature algorithms by obtaining and encapsulating script APIs corresponding to a dynamic part of the target signature algorithm, mapping them to general APIs, and compiling the result, allowing for hot-pluggable implementation on statically compiled software.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If signature algorithms are implanted into edge servers in a traditional hard-coded manner, then the implementation is simple and stable, but the loading efficiency of signature algorithms is low
Solution Approach 1:
The signature algorithm is divided into a static part (general APIs) and a dynamic part (script APIs). The static part is pre-compiled and loaded once, while the dynamic part can be selectively loaded and replaced. This segmentation allows the system to maintain simplicity for the common case while enabling efficient dynamic loading when needed, resolving the contradiction between loading efficiency and implementation simplicity.
Solution Approach 2:
The patent introduces a dynamic loading mechanism where signature algorithms can be loaded, replaced, and unloaded at runtime without restarting the edge server. The dynamic part of the algorithm is loaded only when required and can be replaced by pushing new script files to the edge server. This dynamic approach significantly improves loading efficiency while maintaining relative simplicity through automated mechanisms.
2Adaptability or versatility
If signature algorithms are hard-coded into edge servers, then the system is stable and easy to manage, but the adaptability to different clients requiring customized algorithms is poor
Solution Approach 1:
By segmenting the algorithm into static and dynamic parts, the system can maintain stability with the pre-compiled static part while enabling customization through the dynamic script part. Different clients can receive customized algorithms by loading different script files without affecting the stable core functionality.
Solution Approach 2:
The static part of the algorithm is pre-compiled and prepared in advance, so when a client needs a customized algorithm, only the dynamic script part needs to be loaded and replaced, rather than re-compiling the entire algorithm. This preliminary preparation significantly reduces the time required for algorithm switching and adaptation.
3Productivity
If all edge servers use traditional hard-coded signature algorithm implementation, then the system is uniform and easy to deploy, but the overall loading efficiency in the CDN is low and creates bottlenecks
Solution Approach 1:
The patent creates a universal loading mechanism that can handle both traditional hard-coded algorithms and dynamic customized algorithms through the same framework. The edge server can load static algorithms using the existing mechanism and dynamically load customized algorithms when needed, making the system universally applicable to different scenarios without complicating deployment and management.
Data Source
AI summary
A dynamic loading method and apparatus for a signature algorithm, a device and a storage medium. The method including: obtaining a script corresponding to a dynamic part of a target signature algorithm, where the script comprises at least one script API; encapsulating at least one general API of a static part of the target signature algorithm, where the at least one script API and the at least one general API have a mapping relationship; based on the mapping relationship, combining the script with the static part, so as to generate the target signature algorithm; compiling the target signature algorithm. Therefore, the loading efficiency of the signature algorithm can be improved. In addition, with respect to a whole CDN delivery system, the loading efficiency of signature algorithms in the whole CDN can be increased, such that the efficiency of user access or service adaptation is improved.


