Order Cache Synchronization for Database Resource Reduction

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Retailers face significant resource burdens and slower response times in their order databases due to frequent redundant queries from customers, leading to a negative impact on the customer experience and potential loss of business.

Innovation Solution

Implementing a system that synchronizes order data from an order management system database to an order cache, using a caching interface to publish modified order states and route non-state impacting lookups to the cache, thereby reducing resource consumption and improving response times.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If order data is stored only in the database without caching, then data consistency is maintained, but response time becomes slow and database resources are consumed excessively

Engineering Contradiction:
Improveresponse timeVSAvoiddatabase resource consumption
Core Design Contradiction:
SpeedVSLoss of energy

Solution Approach 1:

An order cache is introduced as an intermediary component between the database and customers. The cache stores copies of order data and handles lookup requests, acting as a mediator that reduces direct database access. When a customer queries order data, the system first checks the cache; if found, it returns immediately without querying the database, thus improving response time and reducing database resource consumption.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Productivity

If a cache is introduced to improve response time, then resource consumption is reduced, but system complexity increases due to synchronization requirements

Engineering Contradiction:
Improvelookup efficiencyVSAvoidcaching system complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

A trigger-based feedback mechanism is implemented in the database to automatically detect when order data is modified. When an order is updated, the trigger fires and sends a notification to the order cache. The cache receives this feedback, invalidates its cached copy of the order data, and forces subsequent lookups to retrieve fresh data from the database. This automated feedback loop ensures data consistency without requiring complex manual synchronization logic.

Inventive Principle:
Principle #23Feedback

3Reliability

If redundant queries are allowed to proceed to the database, then data accuracy is ensured, but database resources are depleted and response times worsen

Engineering Contradiction:
Improvedata accuracyVSAvoiddatabase response time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system performs preliminary actions by pre-loading order data into the cache before it is needed for customer lookups. When orders are created or updated in the database, the trigger mechanism proactively pushes this data to the cache in advance. This preliminary population of the cache ensures that when customers subsequently query for order data, the information is already available in the cache, eliminating the need for repeated database queries and ensuring both data accuracy and fast response times.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS10902017B2Synchronizing database data to a database cache
Publication Date: 2021.01.26 WALMART APOLLO LLC
  • US10902017B2 patent drawing
  • US10902017B2 patent drawing
  • US10902017B2 patent drawing

AI summary

A system to perform certain acts to indicate when an order state within an order database has been modified. The acts can include determining that an order lookup comprises an intent to cancel an order line item. The acts can also include running rules to determine whether the order line item is authorized to be cancelled by synchronizing the cancellation and pushing a cancel state asynchronously to the order database cache. When the order line item is not authorized to be cancelled, the acts can detect that the order state has not been modified. The acts can call to a caching interface to asynchronously push a not cancel state to the order state in the order database cache. The acts can publish the not cancel order state from the order database to the order database cache. The acts can display a message that the order state cannot be modified.