Real-time database data interaction method and system based on micro-service
A data interaction and microservice technology, applied in database management systems, transmission systems, structured data retrieval, etc., can solve problems such as inability to provide RESTful interfaces, complex debugging and deployment processes, and low development efficiency, to ensure data access efficiency, The effect of avoiding service unavailability and improving utilization efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0069] This embodiment introduces a real-time database data interaction method based on microservices, refer to figure 1 ,include:
[0070] Receive an external REST interface request, and the external REST interface request includes a real-time database access request embedded with a SQL statement in the message body;
[0071] Analyze the HTTP message header of the external REST interface request to determine whether the external REST interface request is a real-time database access request with access rights;
[0072] In response to the external REST interface request being a real-time database access request with access rights, the real-time database access request is forwarded to a started access request execution microservice instance according to the preset allocation strategy; the access request execution microservice instance The quantity is at least one;
[0073] Execute the microservice instance through the access request to parse the message body requested by the e...
Embodiment 1-1
[0076] This embodiment specifically introduces an implementation manner of Embodiment 1. On the basis of Embodiment 1, it also involves authentication of the user identity of the requesting party, ie.
[0077] The method of the present embodiment includes the following aspects:
[0078] 1. Receiving and parsing of external REST access requests
[0079] This section can be implemented using service gateway technology.
[0080] Only consider that the type of external access request is a real-time database access request, and do not consider the case that the user's misoperation leads to a high frequency of access: After receiving and parsing the HTTP header of the external REST interface request, obtain the identity information of the requester. If the requester The identity information includes the user identity information, then find and match the identity information of the currently logged-in user, and if the match is successful, the external REST interface request is a rea...
Embodiment 2
[0121] Based on the same inventive concept as Embodiment 1 and Embodiment 1-1, this embodiment introduces a real-time database data interaction system based on microservices. Refer to figure 1 , the system includes a service gateway module and an access request execution microservice instance; the number of the access request execution microservice instance is at least one;
[0122] The service gateway module receives the external REST interface request, analyzes the http message header of the external REST interface request, and judges whether the external REST interface request is a real-time database access request with access rights, and if so, according to the preset allocation strategy, the real-time database The access request is forwarded to a started access request execution microservice instance; the external REST interface request includes a real-time database access request embedded with a SQL statement in the message body;
[0123] The access request execution mic...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com