Database Replication for Zero-Downtime Website Updates

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Website updates often require downtime, disrupting user sessions and potentially leading to lost data or incomplete transactions, especially for e-commerce sites, as conventional methods struggle to maintain availability 24/7.

Innovation Solution

The method involves replicating databases before updates, allowing one copy to remain operational while the other is updated, with data changes copied over once the update is complete, or using application programming interfaces (APIs) to introduce new software code without replicating data, ensuring backward compatibility and minimizing downtime.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If the website is taken down for updates, then the update can be completed without interruption, but user access and transactions are disrupted

Engineering Contradiction:
Improveupdate completionVSAvoiduser access
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The system segments the website into multiple virtual copies (e.g., copy1, copy2) that can operate independently. During updates, one copy is taken offline while another continues to serve users, eliminating the need to take down the entire website.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent creates virtual copies of the website database and application environment. These copies allow seamless switching during updates - when one copy is updated, users are redirected to another copy that remains operational, ensuring continuous availability.

Inventive Principle:
Principle #26Copying

2Object-affected harmful factors

If updates are performed during low-traffic periods, then fewer users are affected, but it is difficult to identify such periods for globally accessed websites

Engineering Contradiction:
Improveuser inconvenienceVSAvoidtraffic analysis
Core Design Contradiction:
Object-affected harmful factorsVSDevice complexity

Solution Approach 1:

By segmenting the website into multiple independent virtual copies, the system eliminates the need to analyze traffic patterns to determine update timing. Updates can be performed on any copy at any time without affecting user access to the service.

Inventive Principle:
Principle #1Segmentation

3Ease of manufacture

If the website is taken down for updates, then the update process is simplified, but session data may be lost and transactions may be incomplete

Engineering Contradiction:
Improveupdate processVSAvoidsession data
Core Design Contradiction:
Ease of manufactureVSLoss of information

Solution Approach 1:

Virtual copies of the website database are maintained in parallel. When updating one copy, users continue to interact with another copy, preserving all session data and transaction states. The system can synchronize data between copies without loss.

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The system maintains multiple active copies simultaneously, allowing it to discard (take offline) one copy for updates while recovering (switching to) another copy that remains fully operational with all user data intact.

Inventive Principle:
Principle #34Discarding and recovering

4Productivity

If multiple virtual copies are maintained, then continuous availability is achieved, but system complexity increases

Engineering Contradiction:
Improvewebsite availabilityVSAvoidsystem architecture
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The virtual copy architecture serves multiple functions: it enables continuous availability, provides isolated testing environments, and allows parallel updates. This multi-functionality justifies the increased complexity by delivering multiple benefits from a single architectural approach.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS9021461B2Method and system for minimizing or eliminating downtime when updating a website
Publication Date: 2015.04.28 WALMART APOLLO LLC
  • US9021461B2 patent drawing
  • US9021461B2 patent drawing
  • US9021461B2 patent drawing

AI summary

Websites, including supporting databases, are updated with little or no downtime. In one aspect, a database is replicated prior to updating, so that updates can be performed on one copy while the other remains operational. In another aspect, the data remains in one location while an application programming interface for interacting with the data using new software code is introduced. Another application programming interface remains operational while the update is taking place. Public and private synonyms are used to direct web traffic to the appropriate application programming interface during the update process.