Microservice Rate Limiting With Predictive Retry Scheduling

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional rate limiting and retry strategies for microservices are overly sensitive to extraneous factors, leading to inaccurate reflection of service endpoint throughput capacity, resulting in service endpoint overload, delayed recovery from transient failures, and failure to meet Quality of Service (QoS) standards and Service Level Agreements (SLAs).

Innovation Solution

A provider service maintains a request log to extract failure count and response duration data, uses a regression model to adjust rate limiting thresholds based on learned throughput capacity, and employs time series forecasting to predict optimal retry times, ensuring the service endpoint can handle both new and delayed requests.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If conventional rate limiting strategies are applied, then service endpoint overload is prevented, but the rate limiting thresholds do not accurately reflect real-time throughput capacity

Engineering Contradiction:
Improveaccuracy of throughput capacity reflectionVSAvoidcomplexity of rate limiting strategy
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The rate limiting threshold is made dynamic by continuously adjusting it based on real-time throughput capacity measurements. The system monitors actual service endpoint performance and adapts the threshold accordingly, transitioning from a static conventional approach to a dynamic adaptive one that accurately reflects current system state.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system implements feedback mechanisms by monitoring service endpoint responses and using this information to adjust rate limiting thresholds. Throughput capacity is measured based on actual service interactions, and this feedback loop enables the threshold to self-adjust to accurately reflect real-time capacity without requiring complex external configuration.

Inventive Principle:
Principle #23Feedback

2Reliability

If requests are delayed due to rate limiting, then service endpoint overload is avoided, but recovery from transient failures is delayed

Engineering Contradiction:
Improveservice endpoint stabilityVSAvoidrecovery time from transient failures
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system detects transient failures preliminarily and adjusts the rate limiting threshold in advance before they cause overload. By identifying patterns indicative of transient issues and proactively modifying the threshold, the system prevents both overload and unnecessary delays, enabling faster recovery while maintaining stability.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The rate limiting threshold parameter is dynamically changed based on detected service endpoint state. When transient failures are detected, the threshold is adjusted to allow faster request throughput, thereby reducing recovery time while still preventing actual overload conditions through continuous monitoring.

Inventive Principle:
Principle #35Parameter changes

3Reliability

If rate limiting threshold is lowered, then service endpoint overload is prevented, but QoS standards and SLAs are not met

Engineering Contradiction:
Improveservice endpoint stabilityVSAvoidrequest throughput
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The rate limiting threshold transitions from a fixed low value to a dynamic value that adapts to real-time service endpoint capacity. This enables the system to maintain reliability by preventing overload while simultaneously improving productivity by allowing higher throughput when the endpoint can actually handle it, based on continuous capacity measurement.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system uses feedback from actual service endpoint performance to adjust the rate limiting threshold. This ensures that the threshold accurately reflects the endpoint's ability to handle requests, thereby meeting QoS and SLA requirements while maintaining system stability through evidence-based adaptive control.

Inventive Principle:
Principle #23Feedback

4Productivity

If rate limiting threshold is raised, then request throughput is improved, but service endpoint overload occurs

Engineering Contradiction:
Improverequest throughputVSAvoidservice endpoint stability
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The system implements continuous feedback monitoring of service endpoint health and performance metrics. This feedback mechanism detects early signs of overload and triggers threshold adjustment, enabling the system to safely raise the rate limiting threshold to improve throughput while maintaining reliability through real-time oversight and automatic correction.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The system takes preliminary action by detecting potential overload conditions before they actually occur. Through continuous monitoring and pattern recognition, the system adjusts the rate limiting threshold proactively to prevent overload, thereby allowing higher throughput to be achieved safely without compromising endpoint stability.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentEP4654546A1Adaptive rate limiting and predictive retry for microservices
Publication Date: 2025.11.26 EBAY INC
  • EP4654546A1 patent drawingFigure 1
  • EP4654546A1 patent drawingFigure 2
  • EP4654546A1 patent drawingFigure 3

AI summary

In accordance with the described techniques, a provider service receives a request log of a service endpoint including requests sent to the service endpoint by the provider service. The provider service extracts request log data from the request log including a failure count and an average response duration for the requests. The failure count includes the requests that have failed due to the provider service sending too many requests to the service endpoint and the requests that have failed due to server-side errors of the service endpoint. A throughput capacity for the service endpoint is predicted using a machine learning model based on the failure count and the average response duration. Then, the provider service adjusts a rate limiting threshold for the service endpoint based on the throughput capacity, and the rate limiting threshold defines a rate at which the provider service sends requests to the service endpoint.