CN114979189B - Metadata-based space-time big data REST micro-service data interaction method and system - Google Patents

Metadata-based space-time big data REST micro-service data interaction method and system Download PDF

Info

Publication number
CN114979189B
CN114979189B CN202110189292.8A CN202110189292A CN114979189B CN 114979189 B CN114979189 B CN 114979189B CN 202110189292 A CN202110189292 A CN 202110189292A CN 114979189 B CN114979189 B CN 114979189B
Authority
CN
China
Prior art keywords
space
big data
time big
service
rest micro
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110189292.8A
Other languages
Chinese (zh)
Other versions
CN114979189A (en
Inventor
胡于龙
周明
黄明
马亿华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Baosight Software Co Ltd
Original Assignee
Shanghai Baosight Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Baosight Software Co Ltd filed Critical Shanghai Baosight Software Co Ltd
Priority to CN202110189292.8A priority Critical patent/CN114979189B/en
Publication of CN114979189A publication Critical patent/CN114979189A/en
Application granted granted Critical
Publication of CN114979189B publication Critical patent/CN114979189B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a space-time big data REST micro-service data interaction method based on metadata, wherein a JSON data packet returned by using space-time big data distributed REST micro-service comprises operation data, routing data, request data and response data; the operation data comprises GETMETA operation data and GETDATA operation data, metadata information is obtained by using GETMETA operation data to send request data through the routing data, and GETDATA operation data obtains space-time big data according to the response data; the routing data identifies an industrial Internet system and a space-time big data REST micro-service, including source address data and destination address data. The invention solves the technical problem that the calling end of the space-time big data REST micro service can not intelligently identify the semantics of the return data of the space-time big data REST service, and simultaneously solves the technical problem that the space-time big data REST service is accessed in an industrial internet system and by providing a unified method across the industrial internet system.

Description

Metadata-based space-time big data REST micro-service data interaction method and system
Technical Field
The invention relates to the technical field of industrial Internet, in particular to a space-time big data REST micro-service data interaction method and system based on metadata.
Background
In the industrial internet of the Baowu group, each iron and steel plant is deployed with an industrial internet, and each industrial internet is accessed by using a space-time big data REST micro-service architecture. For example, the space-time large data REST service of the internet system of the steel industry in the city of jaw can be accessed only in the steel of jaw, the space-time large data REST service of the internet system of the steel industry in the Zhanjiang can be accessed only in the steel of Zhanjiang, but in practical application, the need for accessing the space-time large data REST service across the industrial internet system exists.
In general, REST services use JSON data format to perform data interaction, and the JSON data returned by REST services is a Key-Value Key pair without metadata information. When using the space-time big data REST service, a developer usually checks the REST service interface document and then calls the space-time big data REST service according to the parameter description and the return value description described by the interface document. This is problematic for the calling end of the spatiotemporal big data REST micro service because it is not possible for the calling end of the spatiotemporal big data REST micro service to know which data are spatial data, and more not possible to know whether these spatial data are points, lines, or planes, among the data returned by the spatiotemporal big data REST service.
Through retrieval, patent document CN111752965A discloses a real-time database data interaction method and system based on micro-service, by embedding an SQL operation request into a REST request message body, adopting a service gateway technology to realize the reception of a REST access request and the analysis of an http message header, and balancing the request load into an access request execution micro-service instance, the access request execution micro-service instance analyzes a micro-service REST request message, extracts the content of the SQL request, invokes a real-time library SQL interface to execute and returns an execution result. The prior art solves the problem of data interaction of a real-time database, but cannot solve the problem of data interaction of space-time big data.
Patent document CN110096653a discloses a method for constructing a space-time information service architecture. The method comprises the following steps: acquiring target space-time data corresponding to a space-time information service interface; determining interface types corresponding to the space-time information service interfaces according to the target space-time data; searching RESTful styles corresponding to the space-time information service interfaces and configuration requirements corresponding to the RESTful styles according to interface categories; according to RESTful style and configuration requirements, modifying the time information service interface to obtain a time information service interface specification conforming to the REST architecture; and constructing a space-time information service architecture according to the space-time information service interface specification. The technical problems that the heterogeneous platform cannot realize resource service sharing and data fusion are solved, and the problem of data interaction of space-time big data cannot be solved.
Therefore, there is an urgent need to develop a data interaction method and system for accessing space-time big data REST service across industrial internet systems.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a metadata-based space-time big data REST micro-service data interaction method and system, which solve the technical problem that the calling end of the space-time big data REST micro-service cannot intelligently identify the semantics of the returned data of the space-time big data REST service, and simultaneously solve the technical problem that the space-time big data REST service is accessed by providing a unified method in an industrial Internet system and across the industrial Internet system, so that the space-time big data REST service is accessed in the industrial Internet system and the space-time big data REST service is accessed across the industrial Internet system in interaction experience, and the access method is completely the same.
According to the metadata-based space-time big data REST micro-service data interaction method provided by the invention, a JSON data packet returned by using space-time big data distributed REST micro-service comprises operation data, routing data, request data and response data;
The operation data comprises GETMETA operation data and GETDATA operation data, metadata information is obtained by using GETMETA operation data to send request data through the routing data, and GETDATA operation data obtains space-time big data according to the response data;
the routing data identifies an industrial Internet system and a space-time big data REST micro-service, including source address data and destination address data.
Preferably, the method comprises the following steps:
step S1: the calling end of the space-time big data REST micro service sends a REST micro service GETMETA operation calling request to the space-time big data REST micro service or the space-time big data REST micro service gateway;
step S2: the space-time big data REST micro service gateway routes the REST micro service GETMETA operation calling request to the space-time big data REST micro service;
step S3: the space-time big data REST micro service sends response data of REST micro service GETMETA operation to a calling end of the space-time big data REST micro service or a space-time big data REST micro service gateway;
step S4: the space-time big data REST micro service gateway routes response data operated by the REST micro service GETMETA to a calling end of the space-time big data REST micro service;
step S5: the calling end of the space-time big data REST micro service sends a REST micro service GETDATA operation calling request to the space-time big data REST micro service or the space-time big data REST micro service gateway;
Step S6: the space-time big data REST micro service gateway routes the REST micro service GETDATA operation calling request to the space-time big data REST micro service;
step S7: the space-time big data REST micro service sends response data of REST micro service GETDATA operation to a calling end of the space-time big data REST micro service or a space-time big data REST micro service gateway;
Step S8: the space-time big data REST micro service gateway routes response data operated by the REST micro service GETDATA to a calling end of the space-time big data REST micro service;
GETMETA operations refer to obtaining metadata information of REST micro-services;
GETDATA operations refer to data query services provided by REST microservices.
Preferably, step S1 comprises the steps of:
Step S1.1: when a system starts to operate, a calling end of the space-time big data REST micro service acquires a space-time big data REST micro service registration information table from a space-time big data REST micro service gateway of an industrial Internet system, and updates the space-time big data REST micro service registration information table regularly, and a part of latest space-time big data REST micro service registration information table of the industrial Internet system is maintained in a memory;
step S1.2: constructing a space-time big data REST micro service GETMETA operation call request JSON data packet;
step S1.3: the calling end of the space-time big data REST micro service compares the GUID of the space-time big data REST micro service with the GUID of the calling end of the space-time big data REST micro service, if the calling end is in the same industrial Internet system, a registration information table of the space-time big data REST micro service is searched, and HTTP or HTTPS connection is directly established with the space-time big data REST micro service; if the system is in different industrial internet systems, establishing HTTP or HTTPS connection with a space-time big data REST micro-service gateway of the industrial internet system;
step S1.4: and the calling end of the space-time big data REST micro service sends a REST micro service GETMETA operation calling request JSON data packet to the space-time big data REST micro service or the space-time big data REST micro service gateway through HTTP or HTTPS connection.
Preferably, step S2 comprises the steps of:
step S2.1: the space-time big data REST micro-service gateway of each industrial internet system always keeps TCP/IP long connection, reduces the time consumption for establishing HTTP or HTTPS short connection, establishes a high-speed communication channel to accelerate space-time big data REST micro-service route;
step S2.2: the space-time big data REST micro-service gateway analyzes the space-time big data REST micro-service GETMETA operation call request JSON data packet, and searches a space-time big data REST micro-service gateway static routing table according to the target address data in the routing data;
step S2.3: the space-time big data REST micro-service gateway sends a space-time big data REST micro-service GETMETA operation calling request JSON data packet to a space-time big data REST micro-service gateway of an industrial internet system corresponding to target address data through long connection between the space-time big data REST micro-service gateways of the industrial internet system;
Step S2.4: establishing HTTP or HTTPS connection between the space-time big data REST micro-service gateway of the target address and the space-time big data REST micro-service pointed by the target address in the routing data;
step S2.5: and the space-time big data REST micro-service gateway of the target address sends the operation calling request JSON data packet of the space-time big data REST micro-service GETMETA to the space-time big data REST micro-service pointed by the Destination address in the routing data through HTTP or HTTPS connection.
Preferably, step S3 comprises the steps of:
step S3.1: the space-time big data REST micro service receives a calling end of the space-time big data REST micro service or a space-time big data REST micro service GETMETA operation calling request JSON data packet sent by a space-time big data REST micro service gateway;
step S3.2: constructing a REST micro service GETMETA operation response JSON data packet;
Step S3.3: and returning the response JSON data packet of the REST micro service GETMETA operation to a calling end of the space-time big data REST micro service through the HTTP or HTTPS connection established in the step 1.4 or to the space-time big data REST micro service gateway through the HTTP or HTTPS connection established in the step 2.4.
Preferably, step S4 comprises the steps of:
Step S4.1: the space-time big data REST micro-service gateway of each industrial Internet system always keeps TCP/IP long connection, reduces the time consumption for establishing HTTP/HTTPS short connection, and is convenient for establishing a high-speed communication channel to accelerate space-time big data REST micro-service routing;
step S4.2: the space-time big data REST micro-service gateway analyzes the space-time big data REST micro-service GETMETA operation response JSON data packet, and searches the space-time big data REST micro-service routing table according to the target address in the routing data;
Step S4.3: the space-time big data REST micro-service gateway sends a space-time big data REST micro-service GETMETA operation response JSON data packet to a space-time big data REST micro-service gateway of an industrial internet system corresponding to the target address through long connection between the space-time big data REST micro-service gateways of the industrial internet system;
Step S4.4: and (3) returning the operation response JSON data packet of the space-time big data REST micro service GETMETA to a calling end of the space-time big data REST micro service through HTTP or HTTPS connection established in the step S1.4 by the space-time big data REST micro service gateway of the target address.
Preferably, step S5 comprises the steps of:
Step S5.1: when a system starts to operate, a calling end of the space-time big data REST micro service acquires a space-time big data REST micro service registration information table from a space-time big data REST micro service gateway of the current industrial Internet system, and updates the space-time big data REST micro service registration information table regularly, and a part of latest space-time big data REST micro service registration information table of the industrial Internet system is maintained in a memory;
step S5.2: constructing a space-time big data REST micro service GETDATA operation call request JSON data packet;
Step S5.3: the calling end of the space-time big data REST micro service compares the GUID of the space-time big data REST micro service with the GUID of the calling end of the space-time big data REST micro service, if the calling end is in the same industrial Internet system, a registration information table of the space-time big data REST micro service is searched, and HTTP or HTTPS connection is directly established with the space-time big data REST micro service; if the system is in different industrial internet systems, establishing HTTP or HTTPS connection with a space-time big data REST micro-service gateway of the industrial internet system;
Step S5.4: the calling end of the space-time big data REST micro service sends a REST micro service GETDATA operation calling request JSON data packet to the space-time big data REST micro service or a space-time big data REST micro service gateway through HTTP or HTTPS connection;
Preferably, step S6 comprises the steps of:
Step S6.1: the space-time big data REST micro-service gateway of each industrial Internet system always keeps TCP/IP long connection, reduces the time consumption for establishing HTTP/HTTPS short connection, establishes a high-speed communication channel to accelerate space-time big data REST micro-service route;
Step S6.2: the space-time big data REST micro-service gateway analyzes the space-time big data REST micro-service GETDATA to operate and call the request JSON data packet, and searches a static routing table of the space-time big data REST micro-service gateway according to a target address in the routing data;
step S6.3: the space-time big data REST micro-service gateway sends a space-time big data REST micro-service GETDATA operation calling request JSON data packet to a space-time big data REST micro-service gateway of an industrial internet system corresponding to a target address through long connection between the space-time big data REST micro-service gateways of the industrial internet system;
Step S6.4: the space-time big data REST micro-service gateway of the Destination address Destination searches the latest space-time big data REST micro-service registration information table in the memory, and establishes HTTP or HTTPS connection with the space-time big data REST micro-service pointed by the Destination address in the routing data;
Step S6.5: the spatio-temporal big data REST micro service gateway of the target address sends a spatio-temporal big data REST micro service GETDATA operation calling request JSON data packet to the spatio-temporal big data REST micro service pointed by the target address in the routing data through HTTP or HTTPS connection.
Preferably, step S7 comprises the steps of:
Step S7.1: the space-time big data REST micro service receives a calling end of the space-time big data REST micro service or a space-time big data REST micro service GETDATA operation calling request JSON data packet sent by a space-time big data REST micro service gateway;
step S7.2: constructing a REST micro service GETDATA operation response JSON data packet;
Step S7.3: returning the response JSON data packet of the REST micro service GETDATA to a calling end of the space-time big data REST micro service through the HTTP or HTTPS connection established in the step 5.4 or to a space-time big data REST micro service gateway through the HTTP or HTTPS connection established in the step 6.4;
step S8 includes the steps of:
Step S8.1: the space-time big data REST micro-service gateway of each industrial Internet system always keeps TCP/IP long connection, reduces the time consumption for establishing HTTP/HTTPS short connection, establishes a high-speed communication channel to accelerate space-time big data REST micro-service route;
step S8.2: the space-time big data REST micro-service gateway analyzes the space-time big data REST micro-service GETDATA operation response JSON data packet, and searches the space-time big data REST micro-service routing table according to the target address in the routing data;
Step S8.3: the space-time big data REST micro-service gateway sends a space-time big data REST micro-service GETDATA operation response JSON data packet to a space-time big data REST micro-service gateway of an industrial internet system corresponding to the target address through long connection between the space-time big data REST micro-service gateways of the industrial internet system;
Step S8.4: and (3) returning the operation response JSON data packet of the space-time big data REST micro service GETDATA to a calling end of the space-time big data REST micro service through HTTP or HTTPS connection established in the step (5.4) by the space-time big data REST micro service gateway of the target address.
The invention provides a space-time big data REST micro-service data interaction system based on metadata, which comprises the following components:
module M1: the calling end of the space-time big data REST micro service sends a REST micro service GETMETA operation calling request to the space-time big data REST micro service or the space-time big data REST micro service gateway;
Module M2: the space-time big data REST micro service gateway routes the REST micro service GETMETA operation calling request to the space-time big data REST micro service;
module M3: the space-time big data REST micro service sends response data of REST micro service GETMETA operation to a calling end of the space-time big data REST micro service or a space-time big data REST micro service gateway;
module M4: the space-time big data REST micro service gateway routes response data operated by the REST micro service GETMETA to a calling end of the space-time big data REST micro service;
Module M5: the calling end of the space-time big data REST micro service sends a REST micro service GETDATA operation calling request to the space-time big data REST micro service or the space-time big data REST micro service gateway;
Module M6: the space-time big data REST micro service gateway routes the REST micro service GETDATA operation calling request to the space-time big data REST micro service;
Module M7: the space-time big data REST micro service sends response data of REST micro service GETDATA operation to a calling end of the space-time big data REST micro service or a space-time big data REST micro service gateway;
Module M8: the space-time big data REST micro service gateway routes response data operated by the REST micro service GETDATA to a calling end of the space-time big data REST micro service;
GETMETA operations refer to obtaining metadata information of REST micro-services;
GETDATA operations refer to data query services provided by REST microservices.
Compared with the prior art, the invention has the following beneficial effects:
1. The invention can easily authenticate and realize load balance for accessing the space-time big data REST micro service across the industrial Internet system by the data interaction method of the space-time big data REST micro service, is also convenient for a network manager to configure a network firewall for the industrial Internet system, and solves the data interaction problem for accessing the space-time big data REST micro service across the industrial Internet system. For the calling end of the space-time big data REST micro service, the space-time big data REST micro service accessed by the industrial internet system is identical to the space-time big data REST micro service accessed by the cross-industrial internet system, and the space-time big data REST micro service is completely transparent.
2. The invention solves the problem that the calling end of the space-time big data REST micro service intelligently identifies the returned data of the space-time big data REST micro service by utilizing the metadata, and the calling end of the space-time big data REST micro service can completely and intelligently identify which data are space data and can also intelligently identify whether the space data are points, lines or planes in the returned data of the space-time big data REST service according to the metadata. The developer does not need to check the REST micro service interface document at all, and does not need to worry about the situation that the REST micro service interface document is inconsistent with the REST micro service actual interface.
3. The invention solves the problem of the space-time big data REST micro service that intelligently identifies the calling request sent by the calling end of the space-time big data REST micro service by utilizing metadata, the space-time big data REST micro service can intelligently identify which data are space data in the request parameters sent by the calling end of the space-time big data REST micro service, can also intelligently identify whether the space data are points, lines or faces, and can also intelligently identify which space query is made, for example, the metadata of the request parameters sent by the calling end of the space-time big data REST micro service can be used for designating space positioning query, point query, rectangular query, round query, polygonal query, space relation query, adjacent query, inclusive relation query, traversing query, falling query, buffer region query, attribute-space query, single attribute lookup, SQL query and extended SQL query.
Drawings
Other features, objects and advantages of the present invention will become more apparent upon reading of the detailed description of non-limiting embodiments, given with reference to the accompanying drawings in which:
FIG. 1 is a flow chart of steps of a metadata-based space-time big data REST micro-service data interaction method in the invention;
FIG. 2 is a schematic diagram of a space-time big data REST micro-service architecture of an industrial Internet system according to the present invention;
Fig. 3 is a schematic diagram of a two-way link architecture of a space-time big data REST micro-service gateway according to the present invention.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the present invention, but are not intended to limit the invention in any way. It should be noted that variations and modifications could be made by those skilled in the art without departing from the inventive concept. These are all within the scope of the present invention.
1-3, The invention provides a space-time big data REST micro-service data interaction method based on metadata, wherein a JSON data packet returned by using a space-time big data distributed REST micro-service comprises operation data, routing data, request data and response data; the operation data comprises GETMETA operation data and GETDATA operation data, metadata information is obtained by using GETMETA operation data to send request data through the routing data, and GETDATA operation data obtains space-time big data according to the response data; the routing data identifies an industrial Internet system and a space-time big data REST micro-service, including source address data and destination address data.
The operation data, the routing data, the request data and the response data are interacted in one-to-one correspondence with the operation area, the routing area, the request area and the response area; the routing area comprises a source address and a target address, the source address and the target address are GUID, wherein the first two sections identify industrial Internet systems, the last three sections identify space-time big data REST micro-services, such as 6eae233e-1499-4c61-96ad-fb81c1729094, 6eae233e-1499 identify jaw iron and steel industrial Internet systems, 4c61-96ad-fb81c1729094 identify space-time big data REST micro-services, and 6eae233e-1499-0000-0000-000000000000 identify space-time big data REST micro-service gateways; the request area comprises a metadata subarea of the request parameter, a data Value subarea of the request parameter and a control parameter subarea of the response area, wherein the Key in the Key-Value is stored in the metadata subarea, the Value is stored in the data Value subarea, and the control parameter subarea is used for controlling data returned by the response area; the response area comprises a metadata subarea and a data Value subarea of returned data, the Key in the Key-Value is stored in the metadata subarea, and the Value is stored in the data Value subarea.
Specifically, the method comprises the following steps:
Step S1: and the calling end of the space-time big data REST micro service sends a REST micro service GETMETA operation calling request to the space-time big data REST micro service or the space-time big data REST micro service gateway.
Step S1.1: when the system starts to operate, the calling end of the space-time big data REST micro service acquires a space-time big data REST micro service registration information table from a space-time big data REST micro service gateway of the industrial internet system, and updates the space-time big data REST micro service registration information table regularly, and a part of latest space-time big data REST micro service registration information table of the industrial internet system is maintained in a memory.
Step S1.2: constructing a space-time big data REST micro service GETMETA operation call request JSON data packet; the JSON packet format is shown in table1 for details, and is the data format of the REST micro service GETMETA operation call request, and the call end is assumed to be located in the jaw city steel industry internet system 6eae233e-1498, the space-time big data REST micro service is assumed to be located in the zhanjiang steel industry internet system 6eae233e-1499, and the GUID of the space-time big data REST micro service is 6eae233e-1499-4c61-96ad-fb81c1729094.
Table 1 data format for sending REST micro service GETMETA operation call request
Step S1.3: the calling end of the space-time big data REST micro service compares the GUID of the space-time big data REST micro service with the GUID of the calling end of the space-time big data REST micro service, if the calling end is in the same industrial Internet system, a registration information table of the space-time big data REST micro service is searched, and HTTP or HTTPS connection is directly established with the space-time big data REST micro service; if the system is in different industrial internet systems, establishing HTTP or HTTPS connection with a space-time big data REST micro-service gateway of the industrial internet system; assuming that the calling end is located in an industrial Internet system 6eae233e-1498, if the Destination address Destination is located in the same industrial Internet and is 6eae233e-1498-4c61-96ad-fb81c1729094, connection is directly established with space-time big data REST micro-service 6eae233e-1498-4c61-96ad-fb81c1729094, and if the Destination address Destination is located in different industrial Internet and is 6eae233e-1499-4c61-96ad-fb81c1729094, connection is established with space-time big data REST micro-service gateway 6eae233 e-1498-0000-0000-000000000000.
Step S1.4: and the calling end of the space-time big data REST micro service sends a REST micro service GETMETA operation calling request JSON data packet to the space-time big data REST micro service or the space-time big data REST micro service gateway through HTTP or HTTPS connection.
Step S2: the spatio-temporal big data REST micro service gateway routes REST micro service GETMETA operation call requests to the spatio-temporal big data REST micro service.
Step S2.1: the space-time big data REST micro-service gateway of each industrial internet system always keeps TCP/IP long connection, reduces the time consumption for establishing HTTP or HTTPS short connection, establishes a high-speed communication channel to accelerate space-time big data REST micro-service route; for example, the jaw steel space time big data REST micro service gateway 6eae233e-1498-0000-0000-000000000000 and the Zhanjiang steel space time big data REST micro service gateway 6eae233e-1499-0000-0000-000000000000 remain long connection all the time.
Step S2.2: the space-time big data REST micro-service gateway analyzes the space-time big data REST micro-service GETMETA to operate the calling request JSON data packet, and searches the space-time big data REST micro-service gateway static routing table according to the target address data in the routing data.
Step S2.3: and the space-time big data REST micro-service gateway sends the space-time big data REST micro-service GETMETA operation calling request JSON data packet to the space-time big data REST micro-service gateway of the industrial internet system corresponding to the target address data through long connection between the space-time big data REST micro-service gateways of the industrial internet system.
Step S2.4: and the space-time big data REST micro-service gateway of the target address establishes HTTP or HTTPS connection with the space-time big data REST micro-service pointed by the target address in the routing data.
Step S2.5: and the space-time big data REST micro-service gateway of the target address sends the operation calling request JSON data packet of the space-time big data REST micro-service GETMETA to the space-time big data REST micro-service pointed by the Destination address in the routing data through HTTP or HTTPS connection.
Step S3: the spatio-temporal big data REST micro service sends response data of REST micro service GETMETA operation to a calling end of the spatio-temporal big data REST micro service or a spatio-temporal big data REST micro service gateway.
Step S3.1: the spatio-temporal big data REST micro service receives a call request JSON data packet sent by a call end (the source address and the target address are in the same industrial internet system) of the spatio-temporal big data REST micro service or a spatio-temporal big data REST micro service GETMETA operation call request JSON data packet sent by a spatio-temporal big data REST micro service gateway (the source address and the target address are in different industrial internet systems).
Step S3.2: constructing a REST micro service GETMETA operation response JSON data packet; the JSON data packet format is shown in table 2 for details, wherein the data format of the REST micro service GETMETA operation response data is shown in table 2, and the source address and the destination address of the routing area in the REST micro service GETMETA operation response JSON data packet are respectively the destination address and the source address of the routing area in the space-time big data REST micro service GETMETA operation call request JSON data packet; metadata of the request area indicates which query parameters are supported by the spatio-temporal big data REST micro service, and the query parameters in the request area of the request JSON packet for operation and call of the spatio-temporal big data REST micro service GETDATA must be valued from the request area; the metadata of the Response fields indicates which fields the spatiotemporal big data REST micro service returns and which spatial coordinate systems are supported, and the spatiotemporal big data REST micro service GETDATA operation call Request JSON packet Request fields ResponseFileds and ResponseCoordinate must take values from the Response fields.
Table 2 data format for transmitting REST microservice GETMETA operation response data
/>
Step S3.3: the REST micro service GETMETA is returned to a calling end of the space-time big data REST micro service (the source address and the target address are in the same industrial internet system) through the HTTP or HTTPS connection established in the step 1.4 or returned to a space-time big data REST micro service gateway (the source address and the target address are in different industrial internet systems) through the HTTP or HTTPS connection established in the step 2.4.
Step S4: the spatio-temporal big data REST micro service gateway routes response data of REST micro service GETMETA operation to the calling end of the spatio-temporal big data REST micro service.
Step S4.1: the space-time big data REST micro-service gateway of each industrial internet system always keeps TCP/IP long connection, reduces the time consumption for establishing HTTP/HTTPS short connection, and is convenient for establishing a high-speed communication channel to accelerate space-time big data REST micro-service routing. For example, the jaw steel space time big data REST micro service gateway 6eae233e-1498-0000-0000-000000000000 and the Zhanjiang steel space time big data REST micro service gateway 6eae233e-1499-0000-0000-000000000000 remain long connection all the time.
Step S4.2: the space-time big data REST micro service gateway analyzes the space-time big data REST micro service GETMETA operation response JSON data packet, and searches the space-time big data REST micro service route table according to the target address in the route data.
Step S4.3: and the space-time big data REST micro-service gateway transmits the space-time big data REST micro-service GETMETA operation response JSON data packet to the space-time big data REST micro-service gateway of the industrial internet system corresponding to the target address through long connection between the space-time big data REST micro-service gateways of the industrial internet system.
Step S4.4: and (3) returning the operation response JSON data packet of the space-time big data REST micro service GETMETA to a calling end of the space-time big data REST micro service through HTTP or HTTPS connection established in the step S1.4 by the space-time big data REST micro service gateway of the target address.
Step S5: and the calling end of the space-time big data REST micro service sends a REST micro service GETDATA operation calling request to the space-time big data REST micro service or the space-time big data REST micro service gateway.
Step S5.1: when the system starts to operate, the calling end of the space-time big data REST micro service acquires a space-time big data REST micro service registration information table from a space-time big data REST micro service gateway of the current industrial internet system, and updates the space-time big data REST micro service registration information table regularly, and a part of latest space-time big data REST micro service registration information table of the industrial internet system is maintained in a memory.
Step S5.2: constructing a space-time big data REST micro service GETDATA operation call request JSON data packet; the JSON packet format is detailed in table 3, and the data format of the REST micro service GETDATA operation call Request is sent, and the query parameters in the space-time big data REST micro service GETDATA operation call Request JSON packet Request area must be valued from the space-time big data REST micro service GETMETA operation response JSON packet Request area; the spatiotemporal big data REST micro service GETDATA operation call requests ResponseFileds and ResponseCoordinate in the JSON packet request region must take values from Fileds and Coordinate of the spatiotemporal big data REST micro service GETMETA operation response JSON packet response region. Assuming that the calling end is located in the jaw steel industry internet system 6eae233e-1498, the space-time big data REST micro-service is located in the Zhan river steel industry internet system 6eae233e-1499, the GUID of the space-time big data REST micro-service is 6eae233e-1499-4c61-96ad-fb81c1729094, the example space-time big data REST micro-service GETDATA operation calling request JSON data packet shows that the query Address comprises Guo Shoujing paths, longitude and latitude coordinates are located in the circle center [121.1,31.4], records with the radius of 1000 meters are returned only in two fields Address and Location, and a space coordinate system of returned data adopts WGS84.
Table 3 data format for sending REST micro service GETDATA operation call request
/>
Step S5.3: the calling end of the space-time big data REST micro service compares the GUID of the space-time big data REST micro service with the GUID of the calling end of the space-time big data REST micro service, if the calling end is in the same industrial Internet system, a registration information table of the space-time big data REST micro service is searched, and HTTP or HTTPS connection is directly established with the space-time big data REST micro service; if the system is in different industrial internet systems, establishing HTTP or HTTPS connection with a space-time big data REST micro-service gateway of the industrial internet system; assuming that the calling end is located in an industrial Internet system 6eae233e-1498, if the Destination address Destination is located in the same industrial Internet and is 6eae233e-1498-4c61-96ad-fb81c1729094, connection is directly established with space-time big data REST micro-service 6eae233e-1498-4c61-96ad-fb81c1729094, and if the Destination address Destination is located in different industrial Internet and is 6eae233e-1499-4c61-96ad-fb81c1729094, connection is established with space-time big data REST micro-service gateway 6eae233 e-1498-0000-0000-000000000000.
Step S5.4: the calling end of the space-time big data REST micro service sends a REST micro service GETDATA operation calling request JSON data packet to the space-time big data REST micro service or a space-time big data REST micro service gateway through HTTP or HTTPS connection;
step S6: the spatio-temporal big data REST micro service gateway routes REST micro service GETDATA operation call requests to the spatio-temporal big data REST micro service.
Step S6.1: the space-time big data REST micro-service gateway of each industrial Internet system always keeps TCP/IP long connection, reduces the time consumption for establishing HTTP/HTTPS short connection, establishes a high-speed communication channel to accelerate space-time big data REST micro-service route; for example, the jaw steel space time big data REST micro service gateway 6eae233e-1498-0000-0000-000000000000 and the Zhanjiang steel space time big data REST micro service gateway 6eae233e-1499-0000-0000-000000000000 remain long connection all the time.
Step S6.2: the space-time big data REST micro-service gateway analyzes the space-time big data REST micro-service GETDATA to operate the calling request JSON data packet, and searches the space-time big data REST micro-service gateway static routing table according to the target address in the routing data.
Step S6.3: and the space-time big data REST micro-service gateway sends the space-time big data REST micro-service GETDATA operation calling request JSON data packet to the space-time big data REST micro-service gateway of the industrial internet system corresponding to the target address through long connection between the space-time big data REST micro-service gateways of the industrial internet system.
Step S6.4: the space-time big data REST micro service gateway of the Destination address Destination searches the latest space-time big data REST micro service registration information table in the memory, and establishes HTTP or HTTPS connection with the space-time big data REST micro service pointed by the Destination address in the routing data.
Step S6.5: the spatio-temporal big data REST micro service gateway of the target address sends a spatio-temporal big data REST micro service GETDATA operation calling request JSON data packet to the spatio-temporal big data REST micro service pointed by the target address in the routing data through HTTP or HTTPS connection.
Step S7: the spatio-temporal big data REST micro service sends response data of REST micro service GETDATA operation to a calling end of the spatio-temporal big data REST micro service or a spatio-temporal big data REST micro service gateway.
Step S7.1: the spatio-temporal big data REST micro service receives a call request JSON data packet sent by a call end (the source address and the target address are in the same industrial internet system) of the spatio-temporal big data REST micro service or a spatio-temporal big data REST micro service GETDATA operation call request JSON data packet sent by a spatio-temporal big data REST micro service gateway (the source address and the target address are in different industrial internet systems).
Step S7.2: constructing a REST micro service GETDATA operation response JSON data packet; the JSON packet format is detailed in table 4, and the data format of the response data of the REST micro service GETDATA is sent, where the Source and Destination of the Route routing area in the response JSON packet are respectively referred to as a Destination and Source of the Route routing area in the response JSON packet, the Request area in the response JSON packet is referred to as a Request area in the response JSON packet, the response area is returned according to ResponseFileds and ResponseCoordinate in the Request area, the example returns only two fields Address and Location in the response JSON packet, the space coordinate system of the returned data adopts WGS84, the return Address is the Route number Guo Shoujing in the Shanghai city, location is number 121.212312,31.323143, and the Address is the Route number Guo Shoujing in the Shanghai city, and Location is the record number of two [ 76 ] in the example.
Table 4 data format for transmitting REST micro service GETDATA operation response data
/>
Step S7.3: the REST micro service GETDATA operation response JSON data packet is returned to the calling end of the space-time big data REST micro service (the source address and the target address are in the same industrial internet system) through the HTTP or HTTPS connection established in the step 5.4 or returned to the space-time big data REST micro service gateway (the source address and the target address are in different industrial internet systems) through the HTTP or HTTPS connection established in the step 6.4.
Step S8: the spatio-temporal big data REST micro service gateway routes response data of REST micro service GETDATA operation to the calling end of the spatio-temporal big data REST micro service.
Step S8.1: the space-time big data REST micro-service gateway of each industrial Internet system always keeps TCP/IP long connection, reduces the time consumption for establishing HTTP/HTTPS short connection, establishes a high-speed communication channel to accelerate space-time big data REST micro-service route; for example, the jaw steel space time big data REST micro service gateway 6eae233e-1498-0000-0000-000000000000 and the Zhanjiang steel space time big data REST micro service gateway 6eae233e-1499-0000-0000-000000000000 remain long connection all the time.
Step S8.2: the space-time big data REST micro-service gateway analyzes the space-time big data REST micro-service GETDATA operation response JSON data packet, and searches the space-time big data REST micro-service routing table according to the target address in the routing data;
Step S8.3: the space-time big data REST micro-service gateway sends a space-time big data REST micro-service GETDATA operation response JSON data packet to a space-time big data REST micro-service gateway of an industrial internet system corresponding to the target address through long connection between the space-time big data REST micro-service gateways of the industrial internet system;
Step S8.4: and (3) returning the operation response JSON data packet of the space-time big data REST micro service GETDATA to a calling end of the space-time big data REST micro service through HTTP or HTTPS connection established in the step (5.4) by the space-time big data REST micro service gateway of the target address.
GETMETA operations refer to obtaining metadata information of REST micro-services;
GETDATA operations refer to data query services provided by REST microservices.
Taking the order query REST micro-service as an example,
GETDATA the operation returns the following detailed information of each queried order:
OrderNo OrderDate OrderAmount
Order000001 2021, 1/1 89.00
Order000002 2021, 1 And 8 days 99.88
GETMETA the operations return information as follows, namely metadata information for each field:
field name Field type Description of the invention
OrderNo String Order number
OrderDate Date Order date
OrderAmount Double Order amount
The invention adopts space-time big data REST micro-service static route, which comprises the following steps:
First, each industrial Internet system is statically assigned a unique GUID, for example, the first two sections of GUID assigned by the Emotion iron and Steel industry Internet system are 6eae233e-1498, and the first two sections of GUID assigned by the Zhanjiang iron and Steel industry Internet system are 6eae233e-1499.
Secondly, statically distributing unique GUIDs for space-time big data REST micro-service gateways of each industrial Internet system, for example, distributing GUIDs of 6eae233e-1498-0000-0000-000000000000 for space-time big data REST micro-service gateways of Ebeige steel and distributing GUIDs of 6eae233e-1499-0000-0000-000000000000 for space-time big data REST micro-service gateways of Zhanjiang steel.
Thirdly, the space-time big data REST micro service gateway of each industrial internet system stores a latest space-time big data REST micro service gateway static routing table, and the details are shown in the space-time big data REST micro service gateway static routing table in table 5.
TABLE 5 space-time big data REST micro-service gateway static routing table
Fourth, the space-time big data REST micro service gateway of each industrial internet system establishes long connection with the space-time big data REST micro service gateway of all other industrial internet systems in the static routing table of the space-time big data REST micro service gateway, so that the time for establishing HTTP/HTTPS short connection is reduced, and the space-time big data REST micro service routing is accelerated by establishing a high-speed communication channel.
Fifth, the space-time big data REST micro-service of each industrial internet system is registered to the space-time big data REST micro-service gateway, and unique GUIDs are statically allocated to each space-time big data REST micro-service by the space-time big data REST micro-service gateway, for example, GUIDs allocated to a space-time big data REST micro-service by the jaw steel space-time big data REST micro-service gateway are 6eae233e-1498-4c61-96ad-fb81c1729084, and GUIDs allocated to a space-time big data REST micro-service by the Zhanjiang steel space-time big data REST micro-service gateway are 6eae233e-1499-4c61-96ad-fb81c1729094.
Sixth, the space-time big data REST micro service gateway of each industrial internet system stores a latest space-time big data REST micro service registration information table in the memory, and details are shown in the space-time big data REST micro service registration information table in table 6.
TABLE 6 space-time big data REST micro-service registration information table
Spatiotemporal big data REST microservice GUID IP address URL
6eae233e-1498-4c61-96ad-fb81c1729084 10.10.10.21:9999 /app/service/data
6eae233e-1498-4c61-96ad-fb81c1729085 10.10.10.32:8888 /app/service/spatial
Seventh, each client of the industrial internet system obtains the latest space-time big data REST micro-service registration information table from the space-time big data REST micro-service gateway.
According to the detailed steps provided by the invention and the space-time big data REST micro service GETMETA operation calling request JSON data packet, the space-time big data REST micro service GETMETA operation response JSON data packet, the space-time big data REST micro service GETDATA operation calling request JSON data packet, the space-time big data REST micro service GETDATA operation response JSON data packet, the space-time big data REST micro service gateway static routing table and the space-time big data REST micro service registration information table provided by the invention, the space-time big data REST micro service gateway static routing table can be realized.
Those skilled in the art will appreciate that the invention provides a system and its individual devices, modules, units, etc. that can be implemented entirely by logic programming of method steps, in addition to being implemented as pure computer readable program code, in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Therefore, the system and various devices, modules and units thereof provided by the invention can be regarded as a hardware component, and the devices, modules and units for realizing various functions included in the system can also be regarded as structures in the hardware component; means, modules, and units for implementing the various functions may also be considered as either software modules for implementing the methods or structures within hardware components.
The foregoing describes specific embodiments of the present application. It is to be understood that the application is not limited to the particular embodiments described above, and that various changes or modifications may be made by those skilled in the art within the scope of the appended claims without affecting the spirit of the application. The embodiments of the application and the features of the embodiments may be combined with each other arbitrarily without conflict.

Claims (9)

1. A metadata-based space-time big data REST micro-service data interaction method is characterized in that a JSON data packet returned by using space-time big data distributed REST micro-service comprises operation data, routing data, request data and response data;
The operation data comprise GETMETA operation data and GETDATA operation data, the request data is sent by using GETMETA operation data through the route data to obtain metadata information, and GETDATA operation data obtain space-time big data according to the response data;
the routing data identifies an industrial Internet system and space-time big data REST micro service, and comprises source address data and target address data;
The interaction method comprises the following steps:
step S1: the calling end of the space-time big data REST micro service sends a REST micro service GETMETA operation calling request to the space-time big data REST micro service or the space-time big data REST micro service gateway;
step S2: the space-time big data REST micro service gateway routes the REST micro service GETMETA operation calling request to the space-time big data REST micro service;
step S3: the space-time big data REST micro service sends response data of REST micro service GETMETA operation to a calling end of the space-time big data REST micro service or a space-time big data REST micro service gateway;
step S4: the space-time big data REST micro service gateway routes response data operated by the REST micro service GETMETA to a calling end of the space-time big data REST micro service;
step S5: the calling end of the space-time big data REST micro service sends a REST micro service GETDATA operation calling request to the space-time big data REST micro service or the space-time big data REST micro service gateway;
Step S6: the space-time big data REST micro service gateway routes the REST micro service GETDATA operation calling request to the space-time big data REST micro service;
step S7: the space-time big data REST micro service sends response data of REST micro service GETDATA operation to a calling end of the space-time big data REST micro service or a space-time big data REST micro service gateway;
Step S8: the space-time big data REST micro service gateway routes response data operated by the REST micro service GETDATA to a calling end of the space-time big data REST micro service;
the GETMETA operation refers to obtaining metadata information of REST micro-services;
the GETDATA operations refer to the data query service provided by the REST microservice.
2. The metadata-based spatio-temporal big data REST micro-service data interaction method according to claim 1, wherein said step S1 comprises the steps of:
Step S1.1: when a system starts to operate, a calling end of the space-time big data REST micro service acquires a space-time big data REST micro service registration information table from a space-time big data REST micro service gateway of an industrial Internet system, and updates the space-time big data REST micro service registration information table regularly, and a part of latest space-time big data REST micro service registration information table of the industrial Internet system is maintained in a memory;
step S1.2: constructing a space-time big data REST micro service GETMETA operation call request JSON data packet;
step S1.3: the calling end of the space-time big data REST micro service compares the GUID of the space-time big data REST micro service with the GUID of the calling end of the space-time big data REST micro service, if the calling end is in the same industrial Internet system, a registration information table of the space-time big data REST micro service is searched, and HTTP or HTTPS connection is directly established with the space-time big data REST micro service; if the system is in different industrial internet systems, establishing HTTP or HTTPS connection with a space-time big data REST micro-service gateway of the industrial internet system;
step S1.4: and the calling end of the space-time big data REST micro service sends a REST micro service GETMETA operation calling request JSON data packet to the space-time big data REST micro service or the space-time big data REST micro service gateway through HTTP or HTTPS connection.
3. The metadata-based spatio-temporal big data REST micro-service data interaction method according to claim 2, wherein said step S2 comprises the steps of:
step S2.1: the space-time big data REST micro-service gateway of each industrial internet system always keeps TCP/IP long connection, reduces the time consumption for establishing HTTP or HTTPS short connection, establishes a high-speed communication channel to accelerate space-time big data REST micro-service route;
step S2.2: the space-time big data REST micro-service gateway analyzes the space-time big data REST micro-service GETMETA operation call request JSON data packet, and searches a space-time big data REST micro-service gateway static routing table according to the target address data in the routing data;
step S2.3: the space-time big data REST micro-service gateway sends a space-time big data REST micro-service GETMETA operation calling request JSON data packet to a space-time big data REST micro-service gateway of an industrial internet system corresponding to target address data through long connection between the space-time big data REST micro-service gateways of the industrial internet system;
Step S2.4: establishing HTTP or HTTPS connection between the space-time big data REST micro-service gateway of the target address and the space-time big data REST micro-service pointed by the target address in the routing data;
step S2.5: and the space-time big data REST micro-service gateway of the target address sends the operation calling request JSON data packet of the space-time big data REST micro-service GETMETA to the space-time big data REST micro-service pointed by the Destination address in the routing data through HTTP or HTTPS connection.
4. The metadata-based spatio-temporal big data REST micro-service data interaction method according to claim 3, wherein said step S3 comprises the steps of:
step S3.1: the space-time big data REST micro service receives a calling end of the space-time big data REST micro service or a space-time big data REST micro service GETMETA operation calling request JSON data packet sent by a space-time big data REST micro service gateway;
step S3.2: constructing a REST micro service GETMETA operation response JSON data packet;
Step S3.3: and returning the response JSON data packet of the REST micro service GETMETA operation to a calling end of the space-time big data REST micro service through the HTTP or HTTPS connection established in the step 1.4 or to the space-time big data REST micro service gateway through the HTTP or HTTPS connection established in the step 2.4.
5. The metadata-based spatio-temporal big data REST micro-service data interaction method according to claim 2, wherein said step S4 comprises the steps of:
Step S4.1: the space-time big data REST micro-service gateway of each industrial Internet system always keeps TCP/IP long connection, reduces the time consumption for establishing HTTP/HTTPS short connection, and is convenient for establishing a high-speed communication channel to accelerate space-time big data REST micro-service routing;
step S4.2: the space-time big data REST micro-service gateway analyzes the space-time big data REST micro-service GETMETA operation response JSON data packet, and searches the space-time big data REST micro-service routing table according to the target address in the routing data;
Step S4.3: the space-time big data REST micro-service gateway sends a space-time big data REST micro-service GETMETA operation response JSON data packet to a space-time big data REST micro-service gateway of an industrial internet system corresponding to the target address through long connection between the space-time big data REST micro-service gateways of the industrial internet system;
Step S4.4: and (3) returning the operation response JSON data packet of the space-time big data REST micro service GETMETA to a calling end of the space-time big data REST micro service through HTTP or HTTPS connection established in the step S1.4 by the space-time big data REST micro service gateway of the target address.
6. The metadata-based spatio-temporal big data REST micro-service data interaction method according to claim 1, wherein said step S5 comprises the steps of:
Step S5.1: when a system starts to operate, a calling end of the space-time big data REST micro service acquires a space-time big data REST micro service registration information table from a space-time big data REST micro service gateway of the current industrial Internet system, and updates the space-time big data REST micro service registration information table regularly, and a part of latest space-time big data REST micro service registration information table of the industrial Internet system is maintained in a memory;
step S5.2: constructing a space-time big data REST micro service GETDATA operation call request JSON data packet;
Step S5.3: the calling end of the space-time big data REST micro service compares the GUID of the space-time big data REST micro service with the GUID of the calling end of the space-time big data REST micro service, if the calling end is in the same industrial Internet system, a registration information table of the space-time big data REST micro service is searched, and HTTP or HTTPS connection is directly established with the space-time big data REST micro service; if the system is in different industrial internet systems, establishing HTTP or HTTPS connection with a space-time big data REST micro-service gateway of the industrial internet system;
Step S5.4: and the calling end of the space-time big data REST micro service sends a REST micro service GETDATA operation calling request JSON data packet to the space-time big data REST micro service or the space-time big data REST micro service gateway through HTTP or HTTPS connection.
7. The metadata-based spatio-temporal big data REST micro-service data interaction method according to claim 6, wherein said step S6 comprises the steps of:
Step S6.1: the space-time big data REST micro-service gateway of each industrial Internet system always keeps TCP/IP long connection, reduces the time consumption for establishing HTTP/HTTPS short connection, establishes a high-speed communication channel to accelerate space-time big data REST micro-service route;
Step S6.2: the space-time big data REST micro-service gateway analyzes the space-time big data REST micro-service GETDATA to operate and call the request JSON data packet, and searches a static routing table of the space-time big data REST micro-service gateway according to a target address in the routing data;
step S6.3: the space-time big data REST micro-service gateway sends a space-time big data REST micro-service GETDATA operation calling request JSON data packet to a space-time big data REST micro-service gateway of an industrial internet system corresponding to a target address through long connection between the space-time big data REST micro-service gateways of the industrial internet system;
Step S6.4: the space-time big data REST micro-service gateway of the Destination address Destination searches the latest space-time big data REST micro-service registration information table in the memory, and establishes HTTP or HTTPS connection with the space-time big data REST micro-service pointed by the Destination address in the routing data;
Step S6.5: the spatio-temporal big data REST micro service gateway of the target address sends a spatio-temporal big data REST micro service GETDATA operation calling request JSON data packet to the spatio-temporal big data REST micro service pointed by the target address in the routing data through HTTP or HTTPS connection.
8. The metadata-based spatio-temporal big data REST micro-service data interaction method according to claim 7, wherein said step S7 comprises the steps of:
Step S7.1: the space-time big data REST micro service receives a calling end of the space-time big data REST micro service or a space-time big data REST micro service GETDATA operation calling request JSON data packet sent by a space-time big data REST micro service gateway;
step S7.2: constructing a REST micro service GETDATA operation response JSON data packet;
Step S7.3: returning the response JSON data packet of the REST micro service GETDATA to a calling end of the space-time big data REST micro service through the HTTP or HTTPS connection established in the step 5.4 or to a space-time big data REST micro service gateway through the HTTP or HTTPS connection established in the step 6.4;
the step S8 includes the steps of:
Step S8.1: the space-time big data REST micro-service gateway of each industrial Internet system always keeps TCP/IP long connection, reduces the time consumption for establishing HTTP/HTTPS short connection, establishes a high-speed communication channel to accelerate space-time big data REST micro-service route;
step S8.2: the space-time big data REST micro-service gateway analyzes the space-time big data REST micro-service GETDATA operation response JSON data packet, and searches the space-time big data REST micro-service routing table according to the target address in the routing data;
Step S8.3: the space-time big data REST micro-service gateway sends a space-time big data REST micro-service GETDATA operation response JSON data packet to a space-time big data REST micro-service gateway of an industrial internet system corresponding to the target address through long connection between the space-time big data REST micro-service gateways of the industrial internet system;
Step S8.4: and (3) returning the operation response JSON data packet of the space-time big data REST micro service GETDATA to a calling end of the space-time big data REST micro service through HTTP or HTTPS connection established in the step (5.4) by the space-time big data REST micro service gateway of the target address.
9. The space-time big data REST micro-service data interaction system based on metadata is characterized in that a JSON data packet returned by using space-time big data distributed REST micro-service comprises operation data, routing data, request data and response data;
The operation data comprise GETMETA operation data and GETDATA operation data, the request data is sent by using GETMETA operation data through the route data to obtain metadata information, and GETDATA operation data obtain space-time big data according to the response data;
the routing data identifies an industrial Internet system and space-time big data REST micro service, and comprises source address data and target address data;
the interactive system comprises:
module M1: the calling end of the space-time big data REST micro service sends a REST micro service GETMETA operation calling request to the space-time big data REST micro service or the space-time big data REST micro service gateway;
Module M2: the space-time big data REST micro service gateway routes the REST micro service GETMETA operation calling request to the space-time big data REST micro service;
module M3: the space-time big data REST micro service sends response data of REST micro service GETMETA operation to a calling end of the space-time big data REST micro service or a space-time big data REST micro service gateway;
module M4: the space-time big data REST micro service gateway routes response data operated by the REST micro service GETMETA to a calling end of the space-time big data REST micro service;
Module M5: the calling end of the space-time big data REST micro service sends a REST micro service GETDATA operation calling request to the space-time big data REST micro service or the space-time big data REST micro service gateway;
Module M6: the space-time big data REST micro service gateway routes the REST micro service GETDATA operation calling request to the space-time big data REST micro service;
Module M7: the space-time big data REST micro service sends response data of REST micro service GETDATA operation to a calling end of the space-time big data REST micro service or a space-time big data REST micro service gateway;
Module M8: the space-time big data REST micro service gateway routes response data operated by the REST micro service GETDATA to a calling end of the space-time big data REST micro service;
the GETMETA operation refers to obtaining metadata information of REST micro-services;
the GETDATA operations refer to the data query service provided by the REST microservice.
CN202110189292.8A 2021-02-19 2021-02-19 Metadata-based space-time big data REST micro-service data interaction method and system Active CN114979189B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110189292.8A CN114979189B (en) 2021-02-19 2021-02-19 Metadata-based space-time big data REST micro-service data interaction method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110189292.8A CN114979189B (en) 2021-02-19 2021-02-19 Metadata-based space-time big data REST micro-service data interaction method and system

Publications (2)

Publication Number Publication Date
CN114979189A CN114979189A (en) 2022-08-30
CN114979189B true CN114979189B (en) 2024-05-07

Family

ID=82954623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110189292.8A Active CN114979189B (en) 2021-02-19 2021-02-19 Metadata-based space-time big data REST micro-service data interaction method and system

Country Status (1)

Country Link
CN (1) CN114979189B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546800A (en) * 2012-01-06 2012-07-04 华为技术有限公司 Handshake and communication methods for gateway, gateway and Web communication system
CN111327619A (en) * 2020-02-26 2020-06-23 南方电网科学研究院有限责任公司 Micro-service data exchange method and device
CN111464592A (en) * 2020-03-09 2020-07-28 平安科技(深圳)有限公司 Load balancing method, device, equipment and storage medium based on microservice

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA3051556A1 (en) * 2018-08-10 2020-02-10 Somos, Inc. Toll-free telecommunications data management interface
US11057487B2 (en) * 2019-05-17 2021-07-06 Citrix Systems, Inc. Systems and methods for recording metadata about microservices for requests to the microservices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546800A (en) * 2012-01-06 2012-07-04 华为技术有限公司 Handshake and communication methods for gateway, gateway and Web communication system
CN111327619A (en) * 2020-02-26 2020-06-23 南方电网科学研究院有限责任公司 Micro-service data exchange method and device
CN111464592A (en) * 2020-03-09 2020-07-28 平安科技(深圳)有限公司 Load balancing method, device, equipment and storage medium based on microservice

Also Published As

Publication number Publication date
CN114979189A (en) 2022-08-30

Similar Documents

Publication Publication Date Title
CN110209719B (en) System and method for unified access of multiple databases based on micro-service architecture
CN104125208B (en) Data transmission method and device
US9165048B2 (en) Linked field table for databases
JPS6170654A (en) Resource control system of decentralized processing system
CN105591819A (en) Method and device of configuring network equipment
JPH0765032A (en) Information processing system having data base language converting function
US9723045B2 (en) Communicating tuples in a message
CN112995273B (en) Network call-through scheme generation method and device, computer equipment and storage medium
CN102034144B (en) The system and method on the scene for determining group
CN110958180B (en) Gateway routing method, intelligent gateway, electronic device and computer storage medium
CN112579319A (en) Service calling method and device based on LRU Cache optimization
US11526560B2 (en) Backwards-compatible method for retrieving data stored in a database using versioned reference perspectives of edges
US11263453B2 (en) Method and system for tracking and displaying object trajectory
CN107948005B (en) Internet of things protocol updating method and device
CN114979189B (en) Metadata-based space-time big data REST micro-service data interaction method and system
CN107105004B (en) Cross-platform service calling method and device
US20190149511A1 (en) System and method for connecting using aliases
EP3018883A1 (en) Login method and system for client unit
EP2635001A1 (en) System and method for providing access to presence status for mobile devices
CN105978744A (en) Resource allocation method, device and system
CN112559542B (en) Network basic information base updating method, device, equipment and storage medium
CN114840718A (en) Link data processing method, device, equipment, storage medium and program product
CN114154825A (en) Two-dimensional power grid distributed cache service system
CN112702441A (en) Container-based access data processing method, device and system and storage medium
Chen et al. Supporting adaptive ubiquitous applications with the SOLAR system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant