Gateway system and implementation method for implementing REST access service based on transaction middleware

By implementing the REST gateway system on the transaction middleware, the problem that the transaction middleware cannot share application services on the industrial Internet platform is solved, user convenience and performance are improved, and domestic middleware has the ability to benchmark foreign software.

CN119814869APending Publication Date: 2025-04-11SHANGHAI BAOSIGHT SOFTWARE CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510003995.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-02
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

The existing transaction middleware cannot effectively share the application services carried by the industrial Internet platform. This is mainly due to performance and security reasons, so the client needs to forward through multi-layer application protocols to complete resource calls, which limits the wide sharing of services.

Method used

Using a REST gateway system based on transaction middleware, through distributed architecture and REST architecture style, the HTTP/1.1 protocol provides unified interface specifications and resource identifiers, realizes interaction with external system information, and encrypts data transmission through SSL protocol.

Benefits of technology

It improves the convenience of user use and the speed and performance of service resource call, so that domestic middleware can benchmark against similar excellent foreign software products in terms of comprehensive functions, performance support capabilities and security, with system throughput increased by 10%, and CPU usage load rate reduced by 60%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119814869A_ABST
    Figure CN119814869A_ABST
Patent Text Reader

Abstract

The invention provides a gateway system and realization method for realizing REST access service based on transaction middleware, and the method comprises the steps: employing a distributed architecture for the transaction middleware, and enabling the transaction middleware to comprise an application interface layer, a service framework layer, a data access layer and a basic support layer from top to bottom; the application interface layer is used for packaging interaction among different modules, services or systems in the transaction middleware in a standardized mode; and the service framework layer is used for providing a network communication mode for the transaction middleware and realizing information interaction with an external system. The data access layer is used for processing various business data for the transaction middleware; the basic support layer is used for providing various types of hardware, networks, operating systems and database servers for a data service resource processing platform related to the transaction middleware and dispersed application clients. Wherein the service framework layer comprises a REST gateway, and the REST gateway is used for providing a REST access service mode to realize information interaction with an external system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer communication technology in an industrial Internet platform environment, and in particular to a gateway system and an implementation method for implementing REST access services based on transaction middleware. Background Art

[0002] The Industrial Internet is an emerging business model and application pattern formed by the deep integration of new-generation information technology and manufacturing. It achieves the interconnection between the internal control system and management information system of the enterprise, optimizes the configuration of manufacturing resources, and integrates and shares data resources by building an open cloud platform with data as the core, efficient resource allocation, and active innovation.

[0003] Transaction middleware is a software system for application transactions provided by the industrial Internet platform. It provides a development environment and transaction processing platform for application systems through a distributed architecture, shielding heterogeneous environments and supporting rapid response of high-concurrency processing.

[0004] Transaction middleware is widely used in the core online transaction systems of manufacturing, finance, transportation, communications, electricity, nonferrous metals and petrochemical industries, helping these companies achieve key business.

[0005] In actual application, due to performance, security and other reasons, transaction middleware often uses private protocols for data communication. The client needs to connect to the application access interface provided by the server and complete resource calls after forwarding through multiple layers of application protocols. Therefore, the server cannot widely share the application services it carries through the industrial Internet platform.

[0006] In order to overcome the existing functional deficiencies, the present invention proposes a gateway system and method for implementing REST access services based on transaction middleware, which can effectively improve the working efficiency of the application system.

[0007] By opening up service resources through REST / HTTP software communication technology, users can quickly and completely use remote application services through the browser / server-side architecture as long as they master simple calling methods, even if they do not have professional knowledge of networks, operating systems, and application programming interfaces.

[0008] The results show that the gateway software system and its method are of practical significance in improving the convenience of user use and the speed and performance of service resource calling.

[0009] At the same time, by adapting to the REST service gateway, domestic middleware has the ability to match the large-scale application of similar excellent foreign software products in terms of comprehensive functionality, performance support capabilities, and security. Summary of the invention

[0010] In view of the defects in the prior art, the object of the present invention is to provide a gateway system and implementation method for implementing REST access services based on transaction middleware.

[0011] A gateway system for implementing REST access services based on transaction middleware according to the present invention includes: transaction middleware;

[0012] The transaction middleware adopts a distributed architecture, which includes an application interface layer, a service framework layer, a data access layer and a basic support layer from top to bottom;

[0013] The application interface layer is used to encapsulate the interactions between different modules, services or systems within the transaction middleware in a standardized manner;

[0014] The service framework layer is used to provide a network communication method for the transaction middleware to realize information interaction with the external system.

[0015] The data access layer is used to process various types of business data for the transaction middleware;

[0016] The basic support layer is used to provide various types of hardware, networks, operating systems and database servers for the data service resource processing platform and scattered application clients involved in the transaction middleware.

[0017] The service framework layer includes a REST gateway, and the REST gateway is used to provide a REST access service method to achieve information interaction with an external system.

[0018] Preferably, the REST gateway is a network software system based on the REST architectural style and adopting the international open standard HTTP / 1.1 protocol;

[0019] The REST gateway uses a unified interface specification to define the operation mode of resources, uses a uniform resource identifier URI to identify the resource location, and uses a media type to perform data interaction.

[0020] Preferably, the REST gateway comprises: a listener and a gateway processor;

[0021] The client calls the REST resource address to establish a socket connection with the listener; the listener passes the socket connection handle to the gateway processor to achieve a communication connection between the client and the gateway processor;

[0022] The client completes the network transmission of the request data through the HTTP protocol, and the gateway processor transmits the application data contained in the request message to the application server for processing through inter-process communication. The application server returns the response data after the service program is executed. After obtaining the response data, the gateway processor encapsulates it into an HTTP response message and replies to the client after encrypting it through the SSL protocol.

[0023] Preferably, the listener is used to monitor the HTTP / S protocol port and the UNIX domain socket port, and receive connections from the external client and the internal gateway processor respectively;

[0024] The listener selects a gateway processor according to a random scheduling strategy or a lightest load strategy of load balancing, and transmits a client connection handle to the gateway processor. The gateway processor performs data interaction with the client based on the client connection handle.

[0025] Preferably, the gateway processor includes: a connection management module, an information security processing module, an HTTP protocol processing module and an application data interaction module;

[0026] The connection management module is used to connect the gateway processor and the listener, establish and manage the connection with the external client request, and establish the association between the socket connection handle and the SSL layer and set the data read and write events;

[0027] The information security processing module is used to encrypt and decrypt messages transmitted by both parties of communication based on a symmetric key;

[0028] The HTTP protocol processing module is used to parse and encapsulate HTTP / 1.1 request and response messages;

[0029] The application data interaction module is used to read the processed response data from the memory through the inter-process communication mechanism, and then encapsulate it into an HTTP response message and then encrypt and reply to the client.

[0030] According to the present invention, a gateway system implementation method for implementing REST access services based on transaction middleware includes: constructing transaction middleware, wherein the transaction middleware adopts a distributed architecture and includes an application interface layer, a service framework layer, a data access layer, and a basic support layer from top to bottom;

[0031] The application interface layer is used to encapsulate the interactions between different modules, services or systems within the transaction middleware in a standardized manner;

[0032] The service framework layer is used to provide a network communication method for the transaction middleware to realize information interaction with the external system.

[0033] The data access layer is used to process various types of business data for the transaction middleware;

[0034] The basic support layer is used to provide various types of hardware, networks, operating systems and database servers for the data service resource processing platform and scattered application clients involved in the transaction middleware.

[0035] The service framework layer includes a REST gateway, and the REST gateway is used to provide a REST access service method to achieve information interaction with an external system.

[0036] Preferably, the REST gateway is a network software system based on the REST architectural style and adopting the international open standard HTTP / 1.1 protocol;

[0037] The REST gateway uses a unified interface specification to define the operation mode of resources, uses a uniform resource identifier URI to identify the resource location, and uses a media type to perform data interaction.

[0038] Preferably, the REST gateway comprises: a listener and a gateway processor;

[0039] The client calls the REST resource address to establish a socket connection with the listener; the listener passes the socket connection handle to the gateway processor to achieve a communication connection between the client and the gateway processor;

[0040] The client completes the network transmission of the request data through the HTTP protocol, and the gateway processor transmits the application data contained in the request message to the application server for processing through inter-process communication. The application server returns the response data after the service program is executed. After obtaining the response data, the gateway processor encapsulates it into an HTTP response message and replies to the client after encrypting it through the SSL protocol.

[0041] Preferably, the listener is used to monitor the HTTP / S protocol port and the UNIX domain socket port, and receive connections from the external client and the internal gateway processor respectively;

[0042] The listener selects a gateway processor according to a random scheduling strategy or a lightest load strategy of load balancing, and transmits a client connection handle to the gateway processor. The gateway processor performs data interaction with the client based on the client connection handle.

[0043] Preferably, the gateway processor includes: a connection management module, an information security processing module, an HTTP protocol processing module and an application data interaction module;

[0044] The connection management module is used to connect the gateway processor and the listener, establish and manage the connection with the external client request, and establish the association between the socket connection handle and the SSL layer and set the data read and write events;

[0045] The information security processing module is used to encrypt and decrypt messages transmitted by both parties of communication based on a symmetric key;

[0046] The HTTP protocol processing module is used to parse and encapsulate HTTP / 1.1 request and response messages;

[0047] The application data interaction module is used to read the processed response data from the memory through the inter-process communication mechanism, and then encapsulate it into an HTTP response message and then encrypt and reply to the client.

[0048] Compared with the prior art, the present invention has the following beneficial effects:

[0049] 1. The new browser / server-side architecture calling method of the present invention greatly improves the flexibility of client use and ensures the accuracy of the process; the browser / server-side architecture calling method refers to the client accessing the application on the server through the browser. The core part of this architecture is the server, which is responsible for handling all business logic and data access operations; the client only needs to install a standard browser to interact with the server through the network to obtain the required information or perform corresponding operations; the advantage of this architecture is that it greatly reduces the complexity and maintenance cost of the client, because all updates and upgrades can be performed on the server without modifying each client;

[0050] 2. Make domestic middleware comparable to similar excellent foreign software products in terms of comprehensive functions, performance support capabilities, and security. The system throughput in the same scenario can be increased by 10% and the CPU usage load rate can be reduced by 60% year-on-year;

[0051] 3. Through strict software function and performance testing, combined with the analysis of operation data accumulated during the project use process, a comprehensive evaluation of the software product can be formed; by collecting the operation experience of similar excellent foreign software in the actual use of enterprise projects, analyzing the software's operating efficiency, user feedback and other issues, targeted functional optimization can be carried out for domestic software. For example, by analyzing the user's operating habits and common problems, the use and logical processing functions of the software can be optimized, and the user experience and overall performance of the software can be improved;

[0052] 4. The REST service gateway system was successfully implemented after design, coding and comprehensive testing; after the overall testing of the system, all test indicators met the industry standards and fully achieved the design goals. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0054] Figure 1 This is the system architecture diagram of the transaction middleware.

[0055] Figure 2 This is the functional module structure diagram of the REST gateway.

[0056] Figure 3 This is the functional flow chart of the listener module.

[0057] Figure 4 The event flow chart of the underlying architecture of the gateway processor module.

[0058] Figure 5 This is a diagram of the gateway processor module.

[0059] Figure 6 A flowchart for establishing a secure channel based on the handshake protocol and the record protocol for the SSL protocol.

[0060] Figure 7 Processing and parsing workflow diagram for HTTP protocol. DETAILED DESCRIPTION

[0061] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

[0062] Example 1

[0063] A gateway system for implementing REST access services based on transaction middleware according to the present invention includes:

[0064] The transaction middleware software system adopts a distributed architecture, which consists of the application interface layer, service framework layer, data access layer and basic support layer from top to bottom. It has distributed transaction processing and application communication functions, and provides a variety of comprehensive services to establish, run and manage application systems, such as Figure 1 shown.

[0065] The application interface layer mainly includes client programs, application programming interfaces, web browsers, third-party software tools, and management consoles. The management console is a user management interface that provides administrators with management and configuration functions for application services.

[0066] The service framework layer includes listeners responsible for handling external concurrent call connections and parsing request data, gateway systems (including private gateways and REST gateways), BBS bulletin boards responsible for application interaction, system management, application servers, transaction processing, running real-time libraries and other functional modules.

[0067] The data access layer is composed of application service programs written by users and is responsible for processing various types of business data.

[0068] The basic support layer is responsible for supporting heterogeneous hardware, networks, operating systems, and database servers.

[0069] The application interface layer, service framework layer, data access layer and basic support layer constitute the enterprise transaction middleware platform, which enables developers to establish cross-platform, interoperable application systems, and coordinate the unified and centralized data service resource processing platform and independent and decentralized application clients to jointly realize integrated resource management under the Industrial Internet platform.

[0070] The transaction middleware gateway is a software system that implements application layer protocol conversion and is also the entry and exit for information interaction with external systems. The private gateway uses the enterprise's private protocol for data communication, and the client program calls a specific application programming interface to complete functions such as connecting to the gateway system, requesting services, processing business data, and canceling connections, thereby protecting data security and privacy.

[0071] REST gateway is a network software system based on REST architecture style and adopts the international open standard HTTP (Hypertext Transfer Protocol) / 1.1 protocol. It uses a unified interface specification to define the operation mode of resources, uses the Uniform Resource Identifier URI (Uniform Resource Identifier) ​​to identify the resource location, and uses media types (such as JSON, XML, etc.) for data interaction.

[0072] Through the HTTP protocol, the REST gateway can achieve loose coupling of data interaction between WEB browsers, client programs and server-side application business processing programs, and provide a convenient, flexible, secure interface calling method based on the browser / server-side architecture at the service framework layer. At the same time, it also has basic communication transmission functions such as load balancing, flow control, SSL encryption, and authentication.

[0073] The REST gateway consists of two functional modules: listener and gateway processor. Figure 2 shown.

[0074] Each transaction middleware REST gateway system contains a listener and several gateway processors that can be flexibly configured, which can effectively improve the system throughput and server-side processing capabilities. The client program completes the network transmission of the request data through the HTTP protocol, and the gateway processor efficiently transmits the application data contained in the request message to the application server for processing through inter-process communication. After obtaining the response data, it replies with a response message. The main business functions are described as follows:

[0075] 1. The client calls the REST resource address to establish a socket connection with the listener.

[0076] 2. The listener passes the socket connection handle to the gateway processor, and then the client's communication connection is handled by the latter, and the listener is no longer involved.

[0077] 3. The gateway processor is responsible for transmitting data at the TCP layer, and decrypting and parsing the HTTP request message through the upper-layer SSL protocol to obtain application data.

[0078] 4. The gateway processor passes the data to the application server, which returns the response data after executing the service program.

[0079] 5. After the gateway processor obtains the response data, it encapsulates it into an HTTP response message, and then encrypts it through the SSL protocol and replies to the client.

[0080] Among them, the listener module includes:

[0081] The listener module is the network entrance of the transaction middleware software system. The client connects to the REST gateway system through the listener. The listener is responsible for listening to the HTTP / S protocol port and the Unix Domain Socket port, receiving connections from external clients and internal gateway processors respectively.

[0082] It selects the gateway processor according to the random scheduling strategy of load balancing or the lightest load strategy and passes the client connection handle to it, and the latter interacts with the client for data. The functional flow is as follows Figure 3 shown.

[0083] "Load balancing random scheduling strategy" and "lightest load strategy" are proprietary technologies that the transaction middleware has implemented.

[0084] The gateway processor module includes:

[0085] The gateway processor responsible for parsing and encapsulating HTTP request and response messages is the core module of the REST gateway system and is also the basic component for quickly calling application services and handling high-concurrency connections.

[0086] Its underlying architecture is based on the event-driven software design pattern, adopts the reactor programming model of single-threaded asynchronous processing of concurrent connections, uses the operating system's I / O multiplexer (select / poll function) as the basic component of the event-driven loop, continuously checks signal events, timing events, I / O handle input and output read and write events, waits for timing events to be triggered, and then processes the remaining ready network events, dispatches data, executes the callback function registered in advance for the event, notifies the business object to receive data, and then completes the protocol parsing of the HTTP request message.

[0087] It combines the efficient inter-process communication mechanism within the transaction middleware to serially and asynchronously process various network events while reading the response data processed by the application from the memory in a non-blocking manner, thereby realizing the efficient communication function of the system.

[0088] The workflow of the gateway processor module is as follows Figure 4 shown.

[0089] like Figure 5 As shown, the gateway processor module consists of four functional sub-modules: a connection management sub-module, an information security processing sub-module, an HTTP protocol processing sub-module, and an application data interaction sub-module.

[0090] The connection management submodule is responsible for the communication between the gateway processor and the listener, establishing and managing the connection with the external client request, and establishing the association between the socket connection handle and the SSL layer, setting data read and write events, and ensuring stable and efficient data transmission. The functions are as follows:

[0091] 1. Responsible for connecting, disconnecting, or reconnecting the listener.

[0092] 2. Receive the client socket connection handle forwarded by the listener.

[0093] 3. Establish an association between the connection handle and the SSL layer.

[0094] 4. Interact with the SSL layer to exchange keys and authenticate to establish a secure connection through the information security processing submodule.

[0095] 5. Set the callback function of data read and write events for the socket connection handle.

[0096] 6. Notify the listener of the running status of the gateway processor in real time.

[0097] The information security processing sub-modules include:

[0098] The Secure Sockets Layer (SSL) protocol is an industrial Internet confidentiality standard used to encrypt and ensure communication security. It is located between the TCP transport layer and the application layer, establishing a secure communication channel for both the client and the server.

[0099] The information security processing submodule is responsible for encrypting and decrypting the actual transmission messages for both parties in communication. Among them, verifying certificates, identity authentication, selecting algorithms, negotiating protocol versions and keys are the key links for accurate and efficient information security processing.

[0100] First, the SSL protocol establishes a secure channel based on the handshake protocol and the record protocol through the following steps: Figure 6 shown.

[0101] Afterwards, the information security processing submodule will use the generated symmetric key to encrypt and decrypt the data message. The rules are as follows:

[0102] 1. The plaintext data that arrives after decryption at the SSL layer is notified by the event-driven callback mechanism to the HTTP protocol processing submodule for parsing.

[0103] 2. The plaintext data sent down is encrypted with the symmetric key of the SSL layer and sent to the outside through the TCP transport layer.

[0104] The above mechanism realizes the data encryption function during the transmission process and provides a more secure and reliable network communication service.

[0105] HTTP protocol processing submodules include:

[0106] This submodule is used to parse and encapsulate HTTP / 1.1 request and response messages.

[0107] First, it is responsible for parsing the received plaintext data according to the HTTP / 1.1 protocol requirements, removing the start line, header field and empty line terminator of the HTTP request message, collecting the subsequent data body according to the length field value of the header, and then handing it over to the application server for processing. The parsing workflow is as follows: Figure 7 As shown:

[0108] The application service interaction submodule includes:

[0109] The REST gateway uses the FML32 (Field Management Language) format as the data structure for interaction between the gateway and the application server, flexibly realizing the dynamic construction of the application data structure.

[0110] The application service interaction submodule reads the processed response data from the memory through the inter-process communication mechanism, then encapsulates it into an HTTP response message and replies to the client after encryption through the information security submodule.

[0111] The present invention also provides a gateway system for implementing REST access services based on transaction middleware. The gateway system for implementing REST access services based on transaction middleware can be implemented by executing the process steps of the gateway system implementation method for implementing REST access services based on transaction middleware, that is, those skilled in the art can understand the gateway system implementation method for implementing REST access services based on transaction middleware as a preferred implementation mode of the gateway system for implementing REST access services based on transaction middleware.

[0112] Those skilled in the art know that, in addition to realizing the system and its various devices, modules, and units provided by the present invention in a purely computer-readable program code, it is entirely possible to realize the same functions in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, the system and its various devices, modules, and units provided by the present invention can be considered as a hardware component, and the devices, modules, and units included therein for realizing various functions can also be regarded as structures within the hardware component; the devices, modules, and units for realizing various functions can also be regarded as both software modules for realizing the method and structures within the hardware component.

[0113] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.

Claims

1. A gateway system for implementing REST access services based on transaction middleware, characterized in that: include: Transaction middleware; The transaction middleware adopts a distributed architecture, which includes an application interface layer, a service framework layer, a data access layer and a basic support layer from top to bottom; The application interface layer is used to encapsulate the interactions between different modules, services or systems within the transaction middleware in a standardized manner; The service framework layer is used to provide a network communication method for the transaction middleware to realize information interaction with the external system. The data access layer is used to process various types of business data for the transaction middleware; The basic support layer is used to provide various types of hardware, networks, operating systems and database servers for the data service resource processing platform and scattered application clients involved in the transaction middleware. The service framework layer includes a REST gateway, and the REST gateway is used to provide a REST access service method to achieve information interaction with an external system.

2. The gateway system for implementing REST access services based on transaction middleware according to claim 1, characterized in that: The REST gateway is a network software system based on the REST architecture style and adopts the international open standard HTTP / 1.1 protocol; The REST gateway uses a unified interface specification to define the operation mode of resources, uses a uniform resource identifier URI to identify the resource location, and uses a media type to perform data interaction.

3. The gateway system for implementing REST access services based on transaction middleware according to claim 1, characterized in that: The REST gateway includes: a listener and a gateway processor; The client calls the REST resource address to establish a socket connection with the listener; the listener passes the socket connection handle to the gateway processor to achieve a communication connection between the client and the gateway processor; The client completes the network transmission of the request data through the HTTP protocol, and the gateway processor transmits the application data contained in the request message to the application server for processing through inter-process communication. The application server returns the response data after the service program is executed. After obtaining the response data, the gateway processor encapsulates it into an HTTP response message and replies to the client after encrypting it through the SSL protocol.

4. The gateway system for implementing REST access services based on transaction middleware according to claim 3, characterized in that: The listener is used to monitor the HTTP / S protocol port and the UNIX domain socket port, and receive connections from the external client and the internal gateway processor respectively; The listener selects a gateway processor according to a random scheduling strategy or a lightest load strategy of load balancing, and transmits a client connection handle to the gateway processor. The gateway processor performs data interaction with the client based on the client connection handle.

5. The gateway system for implementing REST access services based on transaction middleware according to claim 3, characterized in that: The gateway processor includes: a connection management module, an information security processing module, an HTTP protocol processing module and an application data interaction module; The connection management module is used to connect the gateway processor and the listener, establish and manage the connection with the external client request, and establish the association between the socket connection handle and the SSL layer and set the data read and write events; The information security processing module is used to encrypt and decrypt messages transmitted by both parties of communication based on a symmetric key; The HTTP protocol processing module is used to parse and encapsulate HTTP / 1.1 request and response messages; The application data interaction module is used to read the processed response data from the memory through the inter-process communication mechanism, and then encapsulate it into an HTTP response message and then encrypt and reply to the client.

6. A gateway system implementation method for implementing REST access services based on transaction middleware, characterized in that: include: Build transaction middleware, which adopts a distributed architecture and includes an application interface layer, a service framework layer, a data access layer, and a basic support layer from top to bottom; The application interface layer is used to encapsulate the interactions between different modules, services or systems within the transaction middleware in a standardized manner; The service framework layer is used to provide a network communication method for the transaction middleware to realize information interaction with the external system. The data access layer is used to process various types of business data for the transaction middleware; The basic support layer is used to provide various types of hardware, networks, operating systems and database servers for the data service resource processing platform and scattered application clients involved in the transaction middleware. The service framework layer includes a REST gateway, and the REST gateway is used to provide a REST access service method to achieve information interaction with an external system.

7. The method for implementing a gateway system for implementing REST access services based on transaction middleware according to claim 6, characterized in that: The REST gateway is a network software system based on the REST architecture style and adopts the international open standard HTTP / 1.1 protocol; The REST gateway uses a unified interface specification to define the operation mode of resources, uses a uniform resource identifier URI to identify the resource location, and uses a media type to perform data interaction.

8. The method for implementing a gateway system for implementing REST access services based on transaction middleware according to claim 6, characterized in that: The REST gateway includes: a listener and a gateway processor; The client calls the REST resource address to establish a socket connection with the listener; the listener passes the socket connection handle to the gateway processor to achieve a communication connection between the client and the gateway processor; The client completes the network transmission of the request data through the HTTP protocol, and the gateway processor transmits the application data contained in the request message to the application server for processing through inter-process communication. The application server returns the response data after the service program is executed. After obtaining the response data, the gateway processor encapsulates it into an HTTP response message and replies to the client after encrypting it through the SSL protocol.

9. The method for implementing a gateway system for implementing REST access services based on transaction middleware according to claim 8, characterized in that: The listener is used to monitor the HTTP / S protocol port and the UNIX domain socket port, and receive connections from the external client and the internal gateway processor respectively; The listener selects a gateway processor according to a random scheduling strategy or a lightest load strategy of load balancing, and transmits a client connection handle to the gateway processor. The gateway processor performs data interaction with the client based on the client connection handle.

10. The method for implementing a gateway system for implementing REST access services based on transaction middleware according to claim 8, characterized in that: The gateway processor includes: a connection management module, an information security processing module, an HTTP protocol processing module and an application data interaction module; The connection management module is used to connect the gateway processor and the listener, establish and manage the connection with the external client request, and establish the association between the socket connection handle and the SSL layer and set the data read and write events; The information security processing module is used to encrypt and decrypt messages transmitted by both parties of communication based on a symmetric key; The HTTP protocol processing module is used to parse and encapsulate HTTP / 1.1 request and response messages; The application data interaction module is used to read the processed response data from the memory through the inter-process communication mechanism, and then encapsulate it into an HTTP response message and then encrypt and reply to the client.

Citation Information

Cited By

  • Interaction method of project consultation daily work management system and third-party service system

    CN120639851A