Service Mesh Transaction Delay for Overload Avoidance

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current circuit breaking mechanisms are inadequate in preventing transaction failures and resource wastage in microservices architectures, as they do not effectively anticipate and prevent service overload or unavailability, leading to unnecessary resource consumption and potential data loss.

Innovation Solution

A method that forecasts overloaded periods in services by analyzing historical data using service-related and user-related metrics, and delays transaction sequences to avoid service overload or unavailability, using techniques such as pattern analysis or machine learning to predict when a transaction will arrive during an overloaded period, thereby activating circuit breakers or adjusting transaction sequences to prevent failures.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If circuit breaking is activated to prevent service overload, then service reliability is improved, but transaction processing time increases due to timeout and retry delays

Engineering Contradiction:
Improveservice reliabilityVSAvoidtransaction processing time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system performs preliminary actions by forecasting overloaded periods before they occur and delaying transactions in advance. The service mesh forecasts when a service will become overloaded, then proactively delays transactions before the overload occurs, preventing circuit breaker activation and avoiding timeout retries. This resolves the contradiction by eliminating both the reliability issue (no failures) and the time loss (no retries needed).

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system uses feedback mechanisms by continuously monitoring service metrics (latency, traffic, errors, saturation) and using this feedback to forecast future overloaded periods. The service mesh adjusts transaction routing based on this feedback loop, delaying transactions only when forecasted overload is detected, thus optimizing both reliability and processing time dynamically.

Inventive Principle:
Principle #23Feedback

2Loss of energy

If transactions are delayed to avoid service overload, then resource wastage is reduced, but transaction completion time increases

Engineering Contradiction:
Improveresource wastageVSAvoidtransaction completion time
Core Design Contradiction:
Loss of energyVSLoss of time

Solution Approach 1:

The system delays transactions preliminarily before the overloaded period occurs, rather than after failure. By forecasting the overload window and holding transactions in a delayed state until the forecasted period ends, the system prevents resource wastage from failed transactions while minimizing total completion time, as transactions resume immediately after the forecasted overload window closes.

Inventive Principle:
Principle #10Preliminary action

3Reliability

If circuit breakers are used to limit failure impact, then service resilience is improved, but transaction throughput decreases due to request blocking

Engineering Contradiction:
Improveservice resilienceVSAvoidtransaction throughput
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

Instead of blocking requests with circuit breakers after failure detection, the system performs preliminary action by forecasting overloaded periods and delaying transactions before the overload occurs. This maintains high throughput during normal periods while preventing failures during forecasted overload windows, thus improving resilience without sacrificing productivity.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The service mesh acts as an intermediary between the caller service and the callee service. It forecasts overloaded periods and intermediates transaction flow by delaying requests during forecasted overload windows, rather than allowing direct failed connections. This intermediary approach maintains throughput by smoothly routing transactions around predicted failure periods.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS11973842B2Service status prediction based transaction failure avoidance
Publication Date: 2024.04.30 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US11973842B2 patent drawing
  • US11973842B2 patent drawing
  • US11973842B2 patent drawing

AI summary

An overloaded period of a first service is forecast. A first transaction is predicted to arrive at the first service during the overloaded period. At a second service, a transaction sequence including the first transaction is delayed, the delaying resulting in a delayed transaction sequence, the delayed transaction sequence delaying arrival of the first transaction at the first service until after the overloaded period.