REST API Identifier Links Reduce Network Latency
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing REST APIs face performance issues due to excessive number of invocations and lengthy response contents, leading to network transmission latency, and are complex to navigate for users who need to formulate multi-level nested query statements.
Innovation Solution
The system provides consistent and predictable URL links to identifiers, allowing users to specify exact data contents without nested query statements, and includes predefined query functions and resource model schema in response messages, enabling efficient data retrieval through a single request and reducing the need to understand the underlying resource model.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Loss of information
If REST APIs return all properties of a given resource by default, then completeness of data is improved, but network transmission latency increases
Solution Approach 1:
The patent extracts and returns only the specific properties requested by the client rather than all properties of a resource. The system identifies and returns only the necessary subset of data, reducing network transmission while maintaining data completeness for the requested information.
2Measurement precision
If REST APIs require multi-level nested query statements, then precision of data retrieval is improved, but ease of operation deteriorates
Solution Approach 1:
The patent introduces an intermediary layer that translates simple client requests into precise database queries. The system acts as a mediator between the client's simple request and the complex data retrieval operation, maintaining precision while simplifying the user interface.
Solution Approach 2:
The system performs preliminary actions by pre-defining query functions and resource model schemas that encapsulate complex retrieval logic. These pre-prepared query structures allow clients to make simple requests while the system handles the complex nested queries in the background.
3Manufacturing precision
If REST APIs require understanding of resource model schema, then manufacturing precision is improved, but ease of manufacture deteriorates
Solution Approach 1:
The patent introduces an intermediary layer that translates simple client requests into precise database queries. The system acts as a mediator between the client's simple request and the complex data retrieval operation, maintaining precision while simplifying the user interface.
Solution Approach 2:
The system creates simplified copies or representations of the complex resource model schema through predefined query functions. These query functions serve as simplified interfaces that replicate the functionality of complex schema-based queries without requiring clients to understand the underlying complexity.
Data Source
AI summary
A system can receive, from a device, a first request according to a representational state transfer protocol, wherein the first request identifies a uniform resource locator to a resource. The system can determine a group of identifiers that are related to the resource, based on a group of nested join operations, based on the first request and without reference to another request, and wherein respective identifiers of the group of identifiers comprise respective uniform resource locators to the respective identifiers. The system can generate a query response that comprises the group of identifiers, and send a message to the device according to the representational state transfer protocol, wherein the message comprises the query response. The system can receive, from the device, a second request that indicates executing a stored procedure that corresponds to a first identifier of the group of identifiers, and execute the stored procedure.


