Rate-Limited API Data Ingestion via Asynchronous Token Routing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Rate limits imposed on application programming interfaces (APIs) restrict the number of data requests that can be made within a given time period, leading to delays and inefficiencies in data retrieval processes, especially for applications requiring large data sets or frequent data updates.

Innovation Solution

The system employs multiple structured query objects and unique API access tokens to asynchronously process data requests across multiple repositories, dynamically determining transmission delays based on current rate limits to manage API usage efficiently and support pagination of retrieved data.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If rate limits are imposed on the API to prevent denial-of-service attacks and bottlenecks, then system stability and performance are improved, but data retrieval speed and completeness deteriorate

Engineering Contradiction:
Improvesystem stabilityVSAvoiddata retrieval speed
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent segments the data retrieval process by dividing it into multiple batches or pages, where each batch is retrieved separately within rate limits. The system also segments the request source by using multiple API access tokens from different accounts, allowing parallel retrieval without violating individual rate limits. This enables complete data retrieval while maintaining system stability.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system performs preliminary actions by checking the current rate limit status before initiating data retrieval. It determines the remaining rate limit for each access token and calculates appropriate transmission delays in advance, ensuring that requests are sent optimally without exceeding limits. This preliminary assessment allows the system to maximize data retrieval speed within acceptable boundaries.

Inventive Principle:
Principle #10Preliminary action

2Reliability

If rate limits are imposed on the API, then denial-of-service attacks and bottlenecks are prevented, but delays in data retrieval increase

Engineering Contradiction:
Improveperformance protectionVSAvoiddata retrieval delay
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent maintains continuous data retrieval action by implementing an asynchronous processing system that continuously monitors rate limit status and automatically adjusts transmission timing. Multiple access tokens are used in parallel, ensuring that data retrieval continues without interruption even when some tokens hit their rate limits. The system continuously fetches data across multiple repositories without idle waiting periods.

Inventive Principle:
Principle #20Continuity of useful action

Solution Approach 2:

The system introduces an intermediary layer that manages multiple API access tokens and coordinates requests across them. This intermediary asynchronously processes requests, monitors rate limits, and dynamically routes requests to appropriate tokens based on their current status. This mediation eliminates delays by finding available capacity across multiple tokens rather than waiting for a single token to reset.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Productivity

If multiple API access tokens are used to retrieve data in parallel, then data retrieval speed is improved, but system complexity increases

Engineering Contradiction:
Improvedata ingestion speedVSAvoidsystem architecture complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent implements a universal data retrieval system that can work with multiple types of repositories and API structures through a standardized interface. The asynchronous processing framework and rate limit management logic are designed to be token-agnostic and repository-agnostic, allowing the same system architecture to handle different data sources uniformly. This universality reduces complexity by avoiding the need for separate handling logic for each token or repository type.

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

Solution Approach 2:

The system implements self-service mechanisms where each access token autonomously manages its own rate limit status and transmission timing. The asynchronous processing system automatically monitors rate limits and adjusts request timing without external intervention. This self-management reduces the complexity of centralized control while maintaining coordinated operation across multiple tokens.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS20250077543A1Systems and methods for automatic ingestion of data using a rate-limited application programming interface
Publication Date: 2025.03.06 FMR CORP
  • US20250077543A1 patent drawing
  • US20250077543A1 patent drawing
  • US20250077543A1 patent drawing

AI summary

Methods and apparatuses for automatic ingestion of data using a rate-limited application programming interface (API) include a computing device that creates structured query objects, each comprising instructions for retrieving data from a repository using the rate-limited API. The computing device requests data from the repository via the rate-limited API using the structured query objects and a plurality of API access tokens, including a) generating data requests, each comprising a structured query object; b) determining a transmission delay for each API access token based upon a current rate limit imposed by the rate-limited API; c) transmitting each data request to the repository via the rate-limited API using an API access token that has a transmission delay below a threshold value; and d) processing data received from the repository in response to each data request. The computing device repeats steps b) through d) until data responsive to each data request is received.