Cloud Traffic Prediction with Graph-Structured API Traces

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Cloud applications generate substantial performance trace logs with nested API calls that are difficult to store and parse for accurate future API traffic prediction, hindering effective cloud resource planning and optimization.

Innovation Solution

A traffic prediction server retrieves and parses performance stack trace logs, storing them in a graph database to capture parent/child relationships, transforms the data into training data with spatial and temporal information, and uses a transformer model for accurate prediction.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of manufacture

If performance stack trace logs with nested API calls are stored as plain text, then storage is simple, but parsing difficulty increases and prediction accuracy decreases

Engineering Contradiction:
Improvestorage simplicityVSAvoidparsing difficulty
Core Design Contradiction:
Ease of manufactureVSDifficulty of detecting and measuring

Solution Approach 1:

The patent segments the complex nested API call structure into a hierarchical graph representation where each API call is a node and parent-child relationships are edges. This segmentation transforms the unstructured plain text into organized graph data that can be efficiently parsed and queried, resolving the contradiction between storage simplicity and parsing difficulty.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces a graph database as an intermediary layer between the raw performance logs and the prediction model. This intermediary automatically parses and structures the nested API call data, eliminating manual parsing complexity while preserving the hierarchical relationships needed for accurate traffic prediction.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Ease of operation

If nested API calls are stored in a relational database, then structured queries are enabled, but the tree-like semi-structured data structure becomes difficult to represent

Engineering Contradiction:
Improvequery capabilityVSAvoiddata structure representation
Core Design Contradiction:
Ease of operationVSDevice complexity

Solution Approach 1:

The patent transitions from traditional two-dimensional relational database tables to a multi-dimensional graph structure that naturally represents hierarchical relationships. The graph database adds a new dimension of relationship modeling, allowing parent-child API call relationships to be represented directly as edges between nodes, thus enabling efficient queries without forcing semi-structured data into rigid relational schemas.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

3Productivity

If cloud resources are manually adjusted to match traffic patterns, then resource optimization is achieved, but response time to traffic changes increases

Engineering Contradiction:
Improveresource optimizationVSAvoidresponse time
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The patent implements preliminary action by using the trained transformer model to predict future cloud traffic patterns before they actually occur. This allows cloud providers to proactively adjust resources in advance of predicted traffic spikes or drops, achieving both resource optimization and rapid response time by acting before the actual traffic change happens rather than reacting to it.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent establishes a feedback loop where actual traffic data continuously feeds into the prediction model, which then generates resource adjustment recommendations. This closed-loop system enables automatic, real-time resource optimization that responds immediately to changing traffic patterns, eliminating the delays associated with manual resource adjustment.

Inventive Principle:
Principle #23Feedback

4Device complexity

If transformer model training data includes only basic traffic information, then data processing is simpler, but prediction accuracy decreases due to lack of spatial and temporal context

Engineering Contradiction:
Improvedata processing complexityVSAvoidprediction accuracy
Core Design Contradiction:
Device complexityVSMeasurement precision

Solution Approach 1:

The patent transforms the training data by enriching it with spatial and temporal parameters extracted from the graph database. Each API call node is enhanced with temporal information (timestamps, duration) and spatial information (hierarchical position in the API call tree, relationship to parent/child calls). This parameter enrichment significantly improves prediction accuracy while the automated extraction process keeps data processing complexity manageable.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS12407577B2Graph neural network based cloud traffic prediction and optimization
Publication Date: 2025.09.02 SAP SE
  • US12407577B2 patent drawing
  • US12407577B2 patent drawing
  • US12407577B2 patent drawing

AI summary

Some embodiments may be associated with a cloud computing environment. A computer processor of a traffic prediction server may retrieve performance stack trace logs from a traffic performance stack trace log repository that stores traffic information of the cloud computing environment. The traffic prediction server parses the performance stack trace logs as an objects list including parent/child object relationships and stores the parsed objects list in a graph database. The traffic prediction server may then transform the graph database into training data including spatial and temporal information and use the transformed training data to train a transformer model. According to some embodiments, the traffic prediction server also provides previous traffic input data to the transformer model when generates predicted traffic output data based on the previous traffic input data (e.g., to facilitate cloud load management).