API Gateway Caching for Redundant AI Queries in Microservices

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Extracting meaningful insights from API traffic within microservice architectures is a cumbersome and labor-intensive task that requires manual data gathering, preprocessing, and analysis, consuming significant resources and time.

Innovation Solution

An API gateway autonomously trains an AI model on existing API traffic, intercepting and analyzing patterns and behaviors to refine predictive capabilities without user intervention, enabling real-time adjustments to microservice operations.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If manual data gathering and preprocessing is performed to extract insights from API traffic, then analysis accuracy is improved, but labor intensity and time consumption increase

Engineering Contradiction:
Improveanalysis accuracyVSAvoidtime consumption
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The API gateway autonomously performs data collection, preprocessing, and analysis without requiring manual intervention. The system automatically gathers API traffic data, preprocesses it through filtering and transformation, and generates insights autonomously, eliminating the need for human operators to perform these labor-intensive tasks while maintaining high analysis accuracy

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system performs preliminary data preprocessing and pattern recognition in advance by continuously monitoring and analyzing API traffic. By pre-processing the data and identifying patterns beforehand, the system reduces the time required for real-time analysis while ensuring accurate insights are available when needed

Inventive Principle:
Principle #10Preliminary action

2Measurement precision

If comprehensive API traffic analysis is performed, then insight quality is improved, but computational resources consumed increase

Engineering Contradiction:
Improveinsight qualityVSAvoidcomputational resources
Core Design Contradiction:
Measurement precisionVSUse of energy by moving object

Solution Approach 1:

The system extracts only the most relevant features and patterns from API traffic data using automated pattern recognition algorithms. By selectively extracting key insights rather than processing all raw data comprehensively, the system maintains high insight quality while significantly reducing computational resource consumption

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The system dynamically adjusts analysis parameters and processing depth based on traffic patterns and resource availability. By changing parameters such as sampling rates, analysis granularity, and pattern complexity thresholds, the system optimizes the balance between insight quality and computational resource usage in real-time

Inventive Principle:
Principle #35Parameter changes

3Adaptability or versatility

If real-time AI model training is implemented, then adaptive capability is improved, but system complexity increases

Engineering Contradiction:
Improveadaptive capabilityVSAvoidsystem complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The system introduces an intermediary layer between raw API traffic and the AI model training process. This intermediary automatically performs data preprocessing, feature extraction, and transformation, converting raw traffic into training-ready formats. This intermediary simplifies the overall system by encapsulating complexity in a dedicated component while enabling real-time adaptive model training

Inventive Principle:
Principle #24Intermediary (Mediator)

4Productivity

If automated pattern recognition is deployed, then operational efficiency is improved, but implementation complexity increases

Engineering Contradiction:
Improveoperational efficiencyVSAvoidimplementation complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The system merges multiple functions including data collection, preprocessing, pattern recognition, and insight generation into a single integrated automated pipeline within the API gateway. By combining these previously separate operations into one unified system, the implementation complexity is consolidated and managed more efficiently while achieving high operational efficiency through automation

Inventive Principle:
Principle #5Merging (Combining)

Data Source

PatentUS20260072771A1Microservices architecture with gateway caching of artificial intelligence messages
Publication Date: 2026.03.12 KONG INC
  • US20260072771A1 patent drawing
  • US20260072771A1 patent drawing
  • US20260072771A1 patent drawing

AI summary

Optimizing artificial intelligence (AI) usage within a microservice-based application comprising multiple microservices leads to improved resource efficiency/economy. An example solution includes establishing an API gateway to monitor API traffic between the microservices and an AI model service. Cache records, including AI query and response data observed in API messages, are stored in a database. When an API message from a microservice is detected and addressed to the AI model service, the API gateway compares the query data in the message with the stored cache records. If a similarity threshold is met, the API gateway blocks the message from reaching the AI model service and generates an API response using the cached response data. Example solutions disclosed herein reduce redundant AI queries, optimizes resource usage, and enhances the efficiency of microservice applications.