Hash Key Generation by Sorting Request Payloads

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing caching systems face inefficiencies due to cache misses when requests with non-critical differences are hashed uniquely, leading to redundant calculations and increased response times, as they fail to map requests with similar attributes in different orders to the same hash key.

Innovation Solution

Generating hash keys by sorting the contents of a request's payload body and using a consistent hashing algorithm to map requests with non-critical differences to the same hash key, ensuring that requests with the same attribute-value pairs but in different orders are treated as identical.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If traditional hashing algorithms are used to generate hash keys from request payloads, then each unique request receives a unique hash key, but requests with non-critical differences (e.g., different attribute orders) are incorrectly treated as distinct, leading to cache misses

Engineering Contradiction:
Improvehash key uniquenessVSAvoidcache hit ratio
Core Design Contradiction:
Measurement precisionVSReliability

Solution Approach 1:

The patent applies preliminary action by sorting the payload body contents before generating the hash key. This preprocessing step ensures that requests with the same semantic meaning but different attribute orders are normalized to the same format, allowing them to generate identical hash keys and be correctly identified as cache hits.

Inventive Principle:
Principle #10Preliminary action

2Device complexity

If requests with non-critical differences are treated as distinct, then hash key generation is simple, but redundant calculations occur and response times increase due to cache misses

Engineering Contradiction:
Improvehash key generationVSAvoidresponse time
Core Design Contradiction:
Device complexityVSLoss of time

Solution Approach 1:

By sorting the payload body contents before hash key generation, the system performs a preliminary normalization action that enables subsequent cache hits. Although this adds a sorting step, it eliminates the need for redundant calculation of identical requests, ultimately reducing overall response time by serving cached results.

Inventive Principle:
Principle #10Preliminary action

3Productivity

If cache miss rate is high, then all requests can be processed individually, but resource utilization decreases and processing speed slows due to repeated calculations

Engineering Contradiction:
Improverequest processing throughputVSAvoidcomputational resource utilization
Core Design Contradiction:
ProductivityVSLoss of energy

Solution Approach 1:

The sorting operation performed before hash key generation serves as a preliminary action that enables effective caching. By normalizing request formats beforehand, the system can identify duplicate requests with the same semantic meaning, serve them from cache, and thereby improve resource utilization and reduce redundant computational energy consumption.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS11924304B2Accessing cached data using hash keys
Publication Date: 2024.03.05 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US11924304B2 patent drawing
  • US11924304B2 patent drawing
  • US11924304B2 patent drawing

AI summary

A computer system accesses a storage device. Contents of an object of a request are sorted. The contents of an object of a request are sorted. A hash key is generated to access information in the storage device based on the sorted contents of the object, wherein objects with non-critical differences are mapped to the same hash key. The information in the storage device is accessed based on the generated hash key to produce a response to the request. Embodiments of the present invention further include a method and program product for accessing a storage device in substantially the same manner described above.