Cross-Border Service Caching via Hierarchical Node Areas
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Cross-border service networks face inefficiencies due to direct service calls causing high pressure and slow return speeds, especially with increasing numbers of nodes, leading to a need for service caching to improve invocation speed and reduce costs.
Innovation Solution
A service caching method that divides cache space into resident, change, and pre-reclaimed areas, with a hierarchical cache mode and collaborative caching, optimizing cache content replacement and storage based on hit frequency and availability, and utilizing an index area for efficient service call path management.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If direct service calls are used between nodes, then service invocation simplicity is maintained, but service node pressure increases and return speed decreases
Solution Approach 1:
The patent introduces a service cache as an intermediary component between service nodes. When a service call is made, the system first checks the cache for previously cached results. If a cache hit occurs, the cached result is returned directly without involving the original service node, thus reducing service node pressure while maintaining simple service invocation for the user.
2Speed
If service caching is implemented, then service invocation speed increases and node pressure reduces, but cache space management complexity increases
Solution Approach 1:
The patent divides the cache space into multiple regions: a first cache region for caching service call results and a second cache region for caching service call paths. This segmentation allows independent management of different types of cached data, simplifying the overall cache management complexity while maintaining high invocation speeds through efficient region-specific retrieval operations.
Solution Approach 2:
The patent implements dynamic cache management where the cache system adaptively determines whether to return cached results or forward requests based on cache hit/miss conditions. The cache management dynamically adjusts between serving from cache and invoking actual services, optimizing performance while managing complexity through conditional logic rather than static configurations.
3Reliability
If cache space is expanded to store more service results, then cache hit rate increases, but memory resource consumption increases
Solution Approach 1:
The patent implements partial caching by selectively caching only service call results in the first cache region while storing service call paths in a separate second cache region. This partial action approach caches only the necessary data (results rather than entire service contexts), achieving adequate cache hit rates without proportionally increasing memory consumption for storing complete service execution environments.
Data Source
AI summary
The present invention discloses a service caching method for a cross-border service network, wherein the method includes: a cache space of a service switch node is divided into a resident area, a change area, a pre-reclaimed area and a maintenance index area; among them, a cache hit frequency is: a resident area>a change area>a pre-reclaimed area, and the maintenance index area is used for separate storage services call path. when a service call is generated, a cache content in the cache space is replaced according to a cache value of a missed cache or a hit cache; a service router and service switch nodes in the corresponding area jointly form a hierarchical cache mode. When the cache space of any node in the service switch node is insufficient, the service switch nodes in the same area perform collaborative cache and store them in other cache space of the service switch node through indexing. The method provided by the present invention can improve the cache utilization efficiency in the cross-border service network, thereby accelerating service invocation.


