Data access method and device, equipment, medium and product

By using transport layer communication between the proxy server and the proxy client, the problem of application layer protocol limitations on large file transfers when accessing the internal network from the external network is solved, thus simplifying communication and expanding data transmission capabilities.

CN121585449APending Publication Date: 2026-02-27BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511841430.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-08
Publication Date
2026-02-27

AI Technical Summary

Technical Problem

In existing technologies, during the process of accessing the internal network from the external network, the application layer protocol restricts the transmission of large file data, resulting in high communication complexity and limited applicable scenarios.

Method used

The proxy server and the proxy client communicate using a transport layer protocol, so the proxy client does not need to be concerned with the application layer protocol, thus encapsulating and parsing data access requests and responses.

Benefits of technology

It simplifies the communication complexity between the external network and the internal network, supports larger file data transfers, and is suitable for scenarios involving more internal network system connections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121585449A_ABST
    Figure CN121585449A_ABST
Patent Text Reader

Abstract

The invention discloses a data access method. The method can be applied to an integration platform. When a user wants to access a first application program deployed in an intranet through an extranet, a proxy server deployed in the extranet obtains a data access request, and the data access request is used for requesting to access application data in the first application program. The proxy server packages the data access request to obtain a first message, and the first message is a transport layer message and comprises the data access request. And then, the proxy server sends the first message to a proxy client deployed in an intranet, so that the proxy client parses the first message and then sends the obtained data access request to the first application program. Visibly, through the scheme, the proxy server side and the proxy client side can interact through the transmission layer, the proxy client side does not need to pay attention to an application layer protocol, the communication complexity between the extranet and the intranet is simplified, and therefore the convenience that the extranet accesses the intranet is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a data access method, apparatus, electronic device, computer-readable storage medium, and computer program product. Background Technology

[0002] This application relates to the field of computer technology, and in particular to a data access method, apparatus, electronic device, computer-readable storage medium, and computer program product. Summary of the Invention

[0003] In view of this, this application provides a data access method, apparatus, device, medium, and product that can access applications in an internal network via an external network.

[0004] To solve the above problems, the technical solution provided in this application is as follows: In a first aspect, this application provides a data access method, which is applied to a proxy server on an external network, comprising: obtaining a data access request, wherein the data access request is used to request access to data of a first application deployed on an internal network; The data access request is encapsulated to obtain a first message, which is a transport layer message and includes the data access request. The first message is sent to the proxy client deployed on the intranet, so that the proxy client parses the first message, obtains the data access request, and sends the data access request to the first application.

[0005] Secondly, this application provides a data access method applied to an intranet proxy client. The method includes: receiving a first message sent from an external network proxy server, wherein the first message is a transport layer message and includes a data access request, the data access request being used to request access to data deployed in a first application on the intranet; The first message is parsed to obtain the data access request; Send the data access request to the first application.

[0006] Thirdly, this application provides a data access device applied to a proxy server on an external network, comprising: An acquisition unit is used to acquire a data access request, the data access request being used to request access to data of a first application deployed on the intranet; The processing unit is configured to encapsulate the data access request to obtain a first message, wherein the first message is a transport layer message and includes the data access request; The sending unit is configured to send the first message to a proxy client deployed on the intranet, so that the proxy client can parse the first message, obtain the data access request, and send the data access request to the first application.

[0007] Fourthly, this application provides a data access device applied to a proxy client on an intranet, the device comprising: The receiving unit is configured to receive a first message sent from an external proxy server. The first message is a transport layer message and includes a data access request. The data access request is used to request access to data deployed in a first application on the internal network. A processing unit is configured to parse the first message to obtain the data access request; The sending unit is used to send the data access request to the first application.

[0008] Fifthly, this application provides an electronic device including a processor and a memory. The processor and the memory communicate with each other. The processor is configured to execute instructions stored in the memory to cause the electronic device to perform the data access method as described in the first or second aspect.

[0009] In a sixth aspect, this application provides a computer-readable storage medium storing instructions that instruct an electronic device to perform the data access method described in the first or second aspect above.

[0010] In a seventh aspect, this application provides a computer program product containing instructions that, when run on an electronic device, causes the electronic device to perform the data access method described in the first or second aspect above.

[0011] Based on the implementation methods provided in the above aspects, this application can be further combined to provide more implementation methods.

[0012] According to the technical solution of this application, when a user wants to access a first application deployed on an intranet via the external network, the proxy server deployed on the external network obtains a data access request. This data access request is used to request access to application data in the first application. The proxy server encapsulates the data access request to obtain a first message, wherein the first message is a transport layer message, and the data access request serves as the data payload of the first message. Then, the proxy server sends the first message to the proxy client deployed on the intranet, so that the proxy client can parse the first message and send the obtained data access request to the first application. It is evident that through this solution, the proxy server and the proxy client can interact through the transport layer, and the proxy client does not need to be concerned with the application layer protocol, simplifying the communication complexity between the external network and the intranet, thereby improving the convenience of accessing the intranet from the external network. Attached Figure Description

[0013] Figure 1 A data access interaction flowchart is provided for an embodiment of this application; Figure 2 A schematic diagram of internal and external network communication provided in an embodiment of this application; Figure 3 A flowchart of a data access method provided in an embodiment of this application; Figure 4 A flowchart illustrating another data access method provided in this application embodiment; Figure 5 A structural diagram of a data access device provided in an embodiment of this application; Figure 6 Another data access device structure diagram provided in the embodiments of this application; Figure 7 An electronic device structure is provided as an embodiment of this application. Detailed Implementation

[0014] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, the embodiments of this application will be further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0015] To facilitate understanding of the technical solution of this application, the technology involved in this application will be described below.

[0016] Currently, a common scenario for external network access to internal network is that users access applications running in the internal network environment through an integration platform deployed on the external network. To achieve this access, a proxy client deployed on the internal network receives a data access request from the external network. This data access request requests access to a specific application deployed on the internal network. Typically, the proxy server sends this data access request using a first application layer protocol. After receiving the data access request, the proxy client needs to determine whether the application being accessed supports the first application layer protocol. If not, the proxy client processes the data access request using a second application layer protocol supported by the application and then sends the processed data access request to the application.

[0017] However, due to the inherent limitations of the application layer protocol, it is impossible to transmit large file data, which also restricts some application scenarios.

[0018] Based on this, this application provides a data access method in which the proxy server and the proxy client communicate through the transport layer. In this way, the proxy client does not need to pay attention to the application layer protocol used by the proxy server, and it can support larger file data transfers, making it suitable for more intranet system connection scenarios.

[0019] The proxy server can be deployed on an external network integration platform. An integration platform is a tool or service used to integrate different systems, data, or applications, achieving information sharing and collaborative work through unified standards and interfaces. Its core functions include data integration, process automation, and cross-system connection management. The integration platform breaks down data barriers between systems through pre-built connectors, low-code tools, and other technologies, achieving unified governance across local and cloud systems. Specifically, the proxy server can be deployed in an Application Platform as a Service (aPaaS) platform, existing as a service component of the aPaaS platform. The aPaaS platform, also known as a low-code platform, is a cloud service platform that simplifies application deployment and management by providing scalable application infrastructure services.

[0020] In this embodiment, the integration platform can consolidate multiple systems belonging to an enterprise and provide a unified operation entry point. This allows users to complete corresponding operations through this unified entry point without having to access each system separately, thus improving business processing efficiency. The aforementioned unified operation entry point can be an entry point for accessing applications within the intranet. Users can trigger corresponding operations through this unified entry point to access applications within the intranet.

[0021] To facilitate understanding of the technical solution of this application, specific embodiments will be described below.

[0022] See Figure 1 The figure is a flowchart of a data access method provided in an embodiment of this application, as shown below. Figure 1 As shown, the method specifically includes the following steps: S101: The proxy server obtains a data access request, which is used to request access to the application data of the first application deployed on the intranet.

[0023] In one example, when the proxy server is deployed on an integration platform on the external network, in response to a user's operation triggered on that integration platform to access a first application deployed on the internal network, the first business component generates a data access request and sends it to the proxy server. Here, the first business component refers to a component corresponding to a specific business on the integration platform that needs to access the first application.

[0024] It should be noted that the integration platform can integrate functional components that can implement different business functions, and different business functions correspond to different business terminals. When a user accesses an application deployed on the intranet through a certain functional component on the integration platform, the business terminal corresponding to that functional component generates a data access request.

[0025] S102: The proxy server encapsulates the data access request and obtains the first message, which includes the data access request.

[0026] S103: The proxy server sends the first message to the proxy client, and the proxy client receives the first message accordingly.

[0027] In this embodiment, after receiving a data access request for the intranet, the proxy server encapsulates the request to obtain a first message, which is then sent to the proxy client deployed on the intranet. The first message is a transport layer message, and the data access request serves as its data payload.

[0028] In one example, when the proxy server and the proxy client communicate via the User Datagram Protocol (UDP), the proxy server will encapsulate the data access request using the UDP protocol to obtain the first message. Specifically, after the data access request is accessed at the transport layer, a UDP header (including source / destination ports, checksum, etc.) is added to form a UDP datagram.

[0029] In another example, when the proxy server and the proxy client communicate via the Transmission Control Protocol (TCP), the proxy server will encapsulate the data access request using the TCP protocol to obtain the first message. Specifically, after the data access request enters the transport layer, a TCP header (including source / destination ports, sequence number, acknowledgment number, etc.) is added to form a TCP segment.

[0030] Since TCP provides reliable data transmission, a TCP channel is established between the proxy server and the proxy client before communication. The proxy server then sends the first message to the proxy client through the TCP channel.

[0031] S104: The proxy client parses the first message and obtains the data access request.

[0032] S105: The proxy client sends a data access request to the first application, and the first application receives the data access request accordingly.

[0033] In this embodiment, after receiving the first message, the proxy client decapsulates the first message to obtain a data access request that can be directly processed by the first application, so that the first application can respond to the data access request. Then, the proxy client sends the data access request to the first application so that the first application can respond to the data access request.

[0034] In one example, if the first message is a TCP message, parsing a TCP message can include the following process: TCP header parsing: Checks the source / destination port numbers to determine the target application (i.e., the first application); verifies the sequence number and acknowledgment number to ensure data order; checks data integrity through checksums and discards erroneous segments.

[0035] Data reassembly: Segmented messages are arranged in order according to sequence number; received data is confirmed through a sliding window mechanism, triggering ACK feedback; when all segments arrive, they are merged into a complete data access request and sent to the target application.

[0036] In one example, if the first message is a UDP message, parsing the UDP message includes: Header processing: Directly parse the source / destination port number; no sequence number verification is required.

[0037] Data delivery: If checksums are enabled, data integrity is verified; otherwise, it is delivered directly to the first application.

[0038] S106: The first application sends a response message to the proxy client in response to the data access request, and the proxy client receives the response message accordingly.

[0039] In this embodiment, after receiving a data access request, the first application processes the data access request, obtains a response message, and sends the response message to the proxy client.

[0040] In one example, if the first application is a MySQL database, and the data access request is used to request the synchronization of data from the MySQL database to the external network, the response message includes the binary log file (Binlog) corresponding to the MySQL database. That is, in this implementation, the external network can directly read the Binlog corresponding to the database located on the internal network, thereby enabling large file data transfers.

[0041] S107: The proxy client encapsulates the response message and obtains the second message.

[0042] After receiving the response message, the proxy client encapsulates it using a transport layer protocol to obtain a second message. This second message is a transport layer message that includes the response message. Specifically, the response message serves as the data payload of the second message.

[0043] In one example, when the proxy server and the proxy client communicate via UDP, the proxy client will encapsulate the response message using the UDP protocol to obtain the second message.

[0044] In another example, when the proxy server and the proxy client communicate via TCP, the proxy client will encapsulate the response message using the TCP protocol to obtain the second message.

[0045] S108: The proxy client sends a second message to the proxy server, and the proxy server receives the second message accordingly.

[0046] S109: The proxy server parses the second message and obtains the response message.

[0047] In this embodiment, after receiving the second message, the proxy client sends it to the proxy server, thus achieving transport layer-based communication. Upon receiving the second message, the proxy server decapsulates it to obtain a response message, which is then sent to the corresponding service client.

[0048] For example, the response message includes the binary log file Binlog corresponding to the MySQL database located on the intranet. After obtaining the Binlog, the business side can realize data synchronization based on the Binlog.

[0049] As can be seen, the proxy server and the proxy client communicate through the transport layer. This means that the proxy client does not need to be concerned with the application layer protocol used by the proxy server, and it can support larger file data transfers, making it suitable for more intranet system connection scenarios.

[0050] For ease of understanding, see [link to relevant documentation]. Figure 2 The diagram illustrates an application scenario where a first business terminal 201, a second business terminal 202, and a proxy server 203 are deployed on an integration platform located on the external network, while a proxy client 301, a first application 302, and a second application 303 are deployed on the internal network. The first business terminal 201 accesses the first application 302, and the second business terminal 202 accesses the second application 303.

[0051] When the first business terminal 201 needs to access data in the first application 302, or when the second business terminal 202 needs to access data in the second application 303, the proxy server 203 and the proxy client 301 can access the data using the methods described above.

[0052] It should be noted that, Figure 2 The embodiments provided in this application are shown for the purpose of facilitating understanding of the solutions provided and do not constitute a limitation on the embodiments of this application. For example, a third application may also be deployed in the intranet 300, and the server 200 corresponding to the integration platform may also include a third business terminal corresponding to the third application.

[0053] See Figure 3 The figure illustrates a data access method provided in an embodiment of this application. This method is applied to a proxy server on an external network and specifically includes: S301: Obtain data access request, which is used to request access to data of the first application deployed on the intranet.

[0054] For details on the specific implementation of S301, please refer to [link / reference]. Figure 1 The relevant description of S101 in the illustrated embodiment.

[0055] S302: Encapsulate the data access request to obtain a first message, which includes the data access request.

[0056] The first message is a transport layer message. For a detailed implementation of S302, please refer to [link / reference needed]. Figure 1 The relevant description in S102 of the illustrated embodiment.

[0057] S303: Send a first message to the agent client deployed on the intranet, so that the agent client can parse the first message, obtain the data access request, and send the data access request to the first application.

[0058] In one example, if a TCP channel is established between the proxy server and the proxy client, S302 can be implemented as follows: send the first message to the proxy client through the TCP channel.

[0059] In some implementations, the method further includes: receiving a second message sent by a proxy client, the second message being a transport layer message, the second message including a response message for the data access request; and parsing the second message to obtain the response message. The response message is generated by a first application based on the first data access request and sent to the proxy client.

[0060] In some implementations, if the first application is a MySQL database and the data access request is used to request the synchronization of data in the MySQL database to the external network, the response message includes the binary log file Binlog corresponding to the MySQL database.

[0061] It should be noted that for the specific implementation details of S301 to S303, please refer to [link / reference needed]. Figure 1 The relevant descriptions in the original text will not be repeated here.

[0062] See Figure 4 The figure illustrates a data access request method provided in an embodiment of this application. This method is applied to a proxy client deployed on an intranet and includes: S401: Receive a first message sent from an external proxy server. The first message includes a data access request, which is used to request access to data in a first application deployed on the internal network.

[0063] The first message is a transport layer message.

[0064] In one example, if a TCP channel is established between the proxy server and the proxy client, S401 can be implemented as follows: receiving the first message sent by the proxy server from the external network through the TCP channel.

[0065] S402: Parse the first message to obtain the data access request.

[0066] S403: Send a data access request to the first application.

[0067] In some implementations, the method further includes: receiving a response message from a first application in response to a data access request; encapsulating the response message to obtain a second message; and sending the second message to a proxy server. The second message is a transport layer message and includes the response message.

[0068] In some implementations, if the first application is a MySQL database, the data access request is used to request the synchronization of data in the MySQL database to the external network, and the response message includes the binary log file Binlog corresponding to the MySQL database.

[0069] It should be noted that for the specific implementation details of S401 to S403, please refer to [link / reference needed]. Figure 1 The relevant descriptions in the original text will not be repeated here.

[0070] The above text combined Figures 1 to 4 The data access methods provided in the embodiments of this application have been described in detail. The apparatus and devices provided in the embodiments of this application will be described below with reference to the accompanying drawings.

[0071] See Figure 5 This figure is a structural diagram of a data access device provided in an embodiment of this application, such as... Figure 5 As shown, the device 500 may include: an acquisition unit 501, a processing unit 502, and a sending unit 503. The device 500 can implement the functions of the proxy server in the above embodiments.

[0072] An acquisition unit is used to acquire a data access request, the data access request being used to request access to data of a first application deployed on the intranet; The processing unit is configured to encapsulate the data access request to obtain a first message, wherein the first message is a transport layer message and includes the data access request; The sending unit is configured to send the first message to a proxy client deployed on the intranet, so that the proxy client can parse the first message, obtain the data access request, and send the data access request to the first application.

[0073] In some implementations, a Transmission Control Protocol (TCP) channel is established between the proxy server and the proxy client, and the sending unit 503 is specifically used to send the first message to the proxy client through the TCP channel.

[0074] In some embodiments, the apparatus further includes a receiving unit. This receiving unit is configured to receive a second message sent by the proxy client, the second message being a transport layer message and including a response message for the data access request, the response message being generated by the first application based on the first data access request and sent to the proxy client. The processing unit 502 is also used to parse the second message to obtain a response message.

[0075] In some implementations, if the first application is a MySQL database, the data access request is used to request the synchronization of data in the MySQL database to the external network, and the response message includes the binary log file Binlog corresponding to the MySQL database.

[0076] The data access device 500 according to the embodiments of this application can correspondingly execute the methods described in the embodiments of this application, and the above and other operations and / or functions of each module / unit of the data access device 500 are respectively for implementing Figure 1 and Figure 3 For the sake of brevity, the corresponding processes of each method in the illustrated embodiments will not be described in detail here.

[0077] See Figure 6 This figure is a structural diagram of a data access device provided in an embodiment of this application, such as... Figure 6 As shown, the device 600 may include a receiving unit 601, a processing unit 602, and a sending unit 503. The device 600 can implement the functions of the proxy client in the above embodiments.

[0078] The receiving unit 601 is used to receive a first message sent from an external proxy server. The first message is a transport layer message and includes a data access request. The data access request is used to request access to data deployed in a first application on the internal network. Processing unit 602 is used to parse the first message to obtain the data access request; The sending unit 603 is used to send the data access request to the first application.

[0079] In some implementations, a Transmission Control Protocol (TCP) channel is established between the proxy server and the proxy client. The receiving unit 601 is specifically used to receive a first message sent by the proxy server from the external network through the TCP channel.

[0080] In some implementations, the receiving unit 601 is further configured to receive a response message sent by the first application in response to the data access request; The processing unit 602 is further configured to encapsulate the response message to obtain a second message, wherein the second message is a transport layer message and includes the response message; The sending unit 603 is also used to send the second message to the proxy server.

[0081] In some implementations, if the first application is a MySQL database, the data access request is used to request the synchronization of data in the MySQL database to the external network, and the response message includes the binary log file Binlog corresponding to the MySQL database.

[0082] The data access device 600 according to the embodiments of this application can correspondingly execute the methods described in the embodiments of this application, and the above and other operations and / or functions of each module / unit of the data access device 600 are respectively for implementing Figure 1 and Figure 4 For the sake of brevity, the corresponding processes of each method in the illustrated embodiments will not be described in detail here.

[0083] This application also provides an electronic device. This electronic device is specifically used to implement, as described above. Figure 5 Data access device 500 and in the illustrated embodiment Figure 6 The data access device 600 in the illustrated embodiment has the following functions.

[0084] Figure 7 A structural schematic diagram of an electronic device 700 is provided, such as... Figure 7 As shown, the electronic device 700 includes a bus 701, a processor 702, a communication interface 703, and a memory 704. The processor 702, the memory 704, and the communication interface 703 communicate with each other via the bus 701.

[0085] The 701 bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, Figure 7 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0086] The processor 702 can be any one or more of the following processors: central processing unit (CPU), graphics processing unit (GPU), microprocessor (MP), or digital signal processor (DSP).

[0087] Communication interface 703 is used for external communication. For example, communication interface 703 can be used to communicate with a terminal.

[0088] Memory 704 may include volatile memory, such as random access memory (RAM). Memory 704 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).

[0089] The memory 704 stores executable code, and the processor 702 executes the executable code to perform the aforementioned data access method.

[0090] Specifically, in achieving Figure 5 or Figure 6 In the case of the illustrated embodiment, and Figure 5 or Figure 6 When the modules or units of the data access device described in the embodiments are implemented by software, the execution... Figure 5 or Figure 6 The software or program code required for the functions of each module / unit can be partially or wholly stored in memory 704. Processor 702 executes the program code corresponding to each unit stored in memory 704 and performs the aforementioned data access method.

[0091] This application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that a computing device can store, or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive). The computer-readable storage medium includes instructions that instruct the computing device to execute the data access method described above applied to data access device 500 or data access device 600.

[0092] This application also provides a computer program product comprising one or more computer instructions. When the computer instructions are loaded and executed on a computing device, all or part of the processes or functions described in this application are generated.

[0093] The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, or data center to another website, computer, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means.

[0094] When the computer program product is executed by a computer, the computer performs any of the aforementioned data access methods. The computer program product can be a software installation package; when any of the aforementioned data access methods is required, the computer program product can be downloaded and executed on the computer.

[0095] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0096] The units described in the embodiments of this application can be implemented in software or hardware. The names of the units / modules do not necessarily limit the specific unit itself.

[0097] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and so on.

[0098] In the context of embodiments of this application, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0099] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the systems or apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and relevant parts can be referred to the method section.

[0100] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0101] It should also be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0102] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0103] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A data access method, characterized in that, The method is applied to proxy servers on external networks, including: Obtain a data access request, the data access request being used to request access to data of a first application deployed on the intranet; The data access request is encapsulated to obtain a first message, which is a transport layer message and includes the data access request. The first message is sent to the proxy client deployed on the intranet, so that the proxy client parses the first message, obtains the data access request, and sends the data access request to the first application.

2. The method according to claim 1, characterized in that, The proxy server and the proxy client establish a Transmission Control Protocol (TCP) channel, and sending the first message to the proxy client includes: The first message is sent to the proxy client through the TCP channel.

3. The method according to claim 1 or 2, characterized in that, The method further includes: The system receives a second message sent by the proxy client. The second message is a transport layer message and includes a response message for the data access request. The response message is generated by the first application based on the first data access request and sent to the proxy client. Parse the second message to obtain the response message.

4. The method according to claim 3, characterized in that, If the first application is a MySQL database, the data access request is used to request the synchronization of data in the MySQL database to the external network, and the response message includes the binary log file Binlog corresponding to the MySQL database.

5. A data access method, characterized in that, The method is applied to a proxy client on an intranet, and the method includes: Receive a first message sent from an external proxy server. The first message is a transport layer message and includes a data access request. The data access request is used to request access to data in a first application deployed on the internal network. The first message is parsed to obtain the data access request; Send the data access request to the first application.

6. The method according to claim 5, characterized in that, The proxy server and the proxy client establish a Transmission Control Protocol (TCP) channel. Receiving the first message sent by the proxy server from the external network includes: The first message sent by the proxy server from the external network is received through the TCP channel.

7. The method according to claim 5 or 6, characterized in that, The method further includes: Receive a response message from the first application in response to the data access request; The response message is encapsulated to obtain a second message, which is a transport layer message and includes the response message. Send the second message to the proxy server.

8. The method according to claim 7, characterized in that, If the first application is a MySQL database, the data access request is used to request the synchronization of data in the MySQL database to the external network, and the response message includes the binary log file Binlog corresponding to the MySQL database.

9. A data access device, characterized in that, The device is used as a proxy server on the external network and includes: An acquisition unit is used to acquire a data access request, the data access request being used to request access to data of a first application deployed on the intranet; The processing unit is configured to encapsulate the data access request to obtain a first message, wherein the first message is a transport layer message and includes the data access request; The sending unit is configured to send the first message to a proxy client deployed on the intranet, so that the proxy client can parse the first message, obtain the data access request, and send the data access request to the first application.

10. A data access device, characterized in that, The device is used as a proxy client on an intranet, and the device includes: The receiving unit is configured to receive a first message sent from an external proxy server. The first message is a transport layer message and includes a data access request. The data access request is used to request access to data deployed in a first application on the internal network. A processing unit is configured to parse the first message to obtain the data access request; The sending unit is used to send the data access request to the first application.

11. An electronic device, characterized in that, The electronic device includes a processor and a memory; The processor is configured to execute instructions stored in the memory, causing the electronic device to perform the method as described in any one of claims 1 to 8.

12. A computer-readable storage medium, characterized in that, Includes instructions that instruct an electronic device to perform the method as described in any one of claims 1 to 8.

13. A computer program product, characterized in that, The computer program product includes computer-readable instructions for implementing the method according to any one of claims 1 to 8.