A real-time database data interaction method and system based on microservices
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 improving development efficiency and simplifying the process
- 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, where the external REST interface request includes a real-time database access request embedded with an SQL statement in the message body;
[0071] Parse the http 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, forward the real-time database access request to a started access request execution microservice instance according to the preset allocation strategy; the access request executes the microservice instance of the microservice instance. The quantity is at least one;
[0073] Execute the microservice instance through the access request to parse the message bo...
Embodiment 1-1
[0076] This embodiment specifically introduces an implementation manner of Embodiment 1, and on the basis of Embodiment 1, it also involves authentication of the user identity of the requesting party, that is, authentication.
[0077] The method of this embodiment includes the following aspects:
[0078] 1. Receiving and parsing external REST access requests
[0079] This part of the content can be implemented using service gateway technology.
[0080] Only consider that the external access request type is a real-time database access request, and does not consider the case where the access frequency is too high due to user misoperation: After receiving and parsing the http header of the external REST interface request, obtain the identity information of the requester, if the requester If the identity information includes user identity information, the search matches the currently logged-in user identity information. If the match is successful, the external REST interface requ...
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, parses the http header of the external REST interface request, and determines 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 is allocated. 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 an SQL statement in the message body;
[0123] The access request exec...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


