Service Verification Using Terminal-Segmented Cache
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In scenarios involving dynamic data calculation, the interference between different terminals using the same user account can lead to service data overwriting and verification failures, disrupting the service flow due to potential tampering or unintentional changes in service parameters.
Innovation Solution
A service-verification method and apparatus that involves receiving and calculating service parameters from different terminals, storing corresponding relationships between service parameters and calculated service data, and verifying the accuracy of service data by comparing it with target data using a cache-based system to ensure independent verification logic and prevent interference.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If service data is stored in cache for verification, then verification efficiency is improved, but data accuracy deteriorates due to overwriting from multiple terminals
Solution Approach 1:
The cache is segmented by terminal identifier, with each terminal having its own dedicated cache region. This prevents data from different terminals from overwriting each other while maintaining efficient cache-based verification for each terminal individually.
Solution Approach 2:
A terminal identifier acts as an intermediary key between the service parameters and the cached service data. This intermediary ensures that data retrieval is both efficient (through cache) and accurate (by preventing cross-terminal overwriting).
2Ease of operation
If service parameters are accepted from multiple terminals, then user convenience is improved, but service security deteriorates due to potential data interference
Solution Approach 1:
The verification process is segmented by terminal identifier, creating independent verification contexts for each terminal. This allows multiple terminals to operate concurrently with the same user account while maintaining security through isolation.
Solution Approach 2:
Each terminal receives customized service data calculation based on its specific parameters and terminal identifier. The verification logic adapts to local terminal characteristics while maintaining overall system security.
Data Source
AI summary
Embodiments of the present disclosure provide a service-verification method and apparatus, wherein the method comprises: respectively receiving service parameters sent by a same user account on different terminals, respectively calculating corresponding service data according to the service parameters sent by each terminal; storing a plurality of corresponding relationships, each corresponding relationship comprising: service parameters sent by one terminal and corresponding calculated service data; when a service-processing request sent by any one of the different terminals is received and the service-processing request carries a target service parameter and target service data used in a current service, obtaining service data corresponding to the target service parameter according to the corresponding relationships; and acquiring a verification result according to a comparison between the obtained service data and the target service data.


