Data processing method and device, equipment, medium and product

By introducing a combination of internal filters and proxy client/server in the HTTP connection network proxy, the monitoring and performance deficiencies of the existing framework in special scenarios are solved, and lightweight, high-performance and secure message transmission is achieved.

CN120658452APending Publication Date: 2025-09-16INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510789779.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-13
Publication Date
2025-09-16

AI Technical Summary

Technical Problem

The existing HTTP connection network proxy framework lacks support for special scenarios and performance monitoring, making it difficult to achieve flexible management and monitoring of client-server connections.

Method used

The terminal client's message ciphertext is decrypted through the internal filter, the internal proxy client and server are used to stream forward and respond to the message plaintext, and encryption is performed on the internal proxy server to achieve secure message transmission between the terminal client and the server.

Benefits of technology

It achieves lighter and higher-performance message transmission, can ensure thread safety in high-concurrency scenarios, improve system throughput, and ensure the security of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120658452A_ABST
    Figure CN120658452A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method, device and equipment, a medium and a product, relates to the technical field of computers, in particular to the technical field of data processing, and can be applied to the field of financial science and technology. Comprising the following steps: decrypting a message ciphertext sent by a terminal client through the internal filter to obtain a message plaintext; forwarding the message plaintext to a terminal server through the internal proxy client and the internal proxy server, so that the terminal server performs streaming response on the message plaintext; receiving a response message plaintext fed back by the terminal server through the internal proxy server based on a client resource or a server resource; encrypting the response message plaintext through the internal proxy server to obtain a response message ciphertext; and sending the response message ciphertext to the internal proxy client through the internal proxy client by the internal proxy server. According to the technical scheme, the message processing efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, in particular to the field of data processing technology, and can be applied to the field of financial technology. Specifically, it relates to a data processing method, device, equipment, medium and product. Background Art

[0002] Currently, there are many ready-made and mature solutions for network proxies for HyperText Transfer Protocol (HTTP) connections in various language systems, such as the Netty network application framework in Java, the HTTP-Proxy proxy library in Node.js, and HTTP.Proxy in the Go language.

[0003] While these proxy frameworks are very convenient to use, and users don't need to worry about many implementation details such as thread safety and connection management, the fact that these details are hidden or not open to user modification and control means they don't provide good support for some special scenarios and performance trading monitoring. For example, when the proxy maintains the client connection while rotating the server connection, or when the client and server connections need to be monitored separately, these frameworks are not easy to implement, or even impossible. Summary of the Invention

[0004] The present invention provides a data processing method, device, equipment, medium and product to improve message processing efficiency.

[0005] According to one aspect of the present invention, a data processing method is provided, which is applied to a streaming gateway, wherein the streaming gateway includes an internal filter, an internal proxy client, and an internal proxy server; the method includes:

[0006] Decrypt the ciphertext of the message sent by the terminal client through the internal filter to obtain the plaintext of the message;

[0007] Forwarding the plaintext message to the terminal server through the internal proxy client and the internal proxy server, so that the terminal server performs a streaming response to the plaintext message;

[0008] Receiving, through the internal proxy server based on the client resources or the server resources, a plain text response message fed back by the terminal server;

[0009] Encrypting the response message plaintext through the internal proxy server to obtain a response message ciphertext;

[0010] The internal proxy server sends the ciphertext of the response message to the internal proxy client through the internal proxy client.

[0011] According to another aspect of the present invention, there is provided a data processing device configured in a streaming gateway, wherein the streaming gateway includes an internal filter, an internal proxy client, and an internal proxy server; the device includes:

[0012] A message plaintext determination module, configured to decrypt the ciphertext of the message sent by the terminal client through the internal filter to obtain the message plaintext;

[0013] A message plaintext sending module, configured to forward the message plaintext to a terminal server via the internal proxy client and the internal proxy server, so that the terminal server performs a streaming response to the message plaintext;

[0014] A response message plaintext receiving module, configured to receive the response message plaintext fed back by the terminal server through the internal proxy server based on the client resources or the server resources;

[0015] a response message ciphertext determination module, configured to encrypt the response message plaintext via the internal proxy server to obtain a response message ciphertext;

[0016] The response message ciphertext sending module is used to send the response message ciphertext to the internal proxy client through the internal proxy server.

[0017] According to another aspect of the present invention, an electronic device is provided, comprising:

[0018] at least one processor; and

[0019] a memory communicatively connected to the at least one processor; wherein,

[0020] The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to perform the data processing method described in any embodiment of the present invention.

[0021] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data processing method according to any embodiment of the present invention when executed.

[0022] According to another aspect of the present invention, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the data processing method according to any embodiment of the present invention is implemented.

[0023] The technical solution of the embodiment of the present invention is to decrypt the ciphertext of the message sent by the terminal client through the internal filter to obtain the plaintext of the message; forward the plaintext of the message to the terminal server through the internal proxy client and the internal proxy server, so that the terminal server can respond to the plaintext of the message in a streaming manner; receive the plaintext of the response message fed back by the terminal server based on the client resources or the server resources through the internal proxy server; encrypt the plaintext of the response message through the internal proxy server to obtain the ciphertext of the response message; and send the ciphertext of the response message to the internal proxy client through the internal proxy server. The above technical solution realizes the proxy of message transmission between the terminal client and the terminal server through the streaming gateway. Compared with the proxies provided by various network application frameworks, it is more lightweight and has better performance, and can also ensure the security of data transmission.

[0024] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0026] Figure 1 is a flow chart of a data processing method provided according to an embodiment of the present invention;

[0027] Figure 2 is a flow chart of a data processing method provided according to an embodiment of the present invention;

[0028] Figure 3 is a structural diagram of a data processing device provided according to an embodiment of the present invention;

[0029] Figure 4 It is a structural diagram of an electronic device for implementing the data processing method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0030] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0031] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0032] In addition, it should be noted that the collection, storage, use, processing, transmission, provision and disclosure of various messages involved in the technical solution of the present invention are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0033] Figure 1 This is a flow chart of a data processing method provided according to an embodiment of the present invention. This embodiment is applicable to providing a proxy for a connection between a terminal client and a terminal server. The method can be executed by a data processing device, which can be implemented in the form of hardware and / or software and can be integrated into an electronic device that carries the data processing function, such as a streaming gateway. Optionally, the streaming gateway includes an internal filter, an internal proxy client, and an internal proxy server. The internal proxy client is a web container, and the internal proxy server is a web container. The internal proxy client and the internal proxy server are implemented through the web container, which is more lightweight and has better performance than the proxies provided by various network application frameworks.

[0034] Among them, the web container is responsible for managing and running the operating environment of web applications, providing underlying services for applications, such as HTTP request processing, lifecycle management, security, etc.

[0035] A proxy is an intermediary component or service that passes requests and responses between a client and a target server. It acts as an intermediary between the two. It receives requests from clients, potentially processes or modifies them, then forwards the requests to the target server and transmits the target server's responses back to the client. It also isolates the client from the target server, preventing direct exposure to either.

[0036] like Figure 1 As shown, the method includes:

[0037] S110 . Decrypt the ciphertext of the message sent by the terminal client through the internal filter to obtain the plaintext of the message.

[0038] The internal filter can be a web filter, used to filter messages and other information from the terminal client and the terminal server. The terminal client can be a mobile terminal, such as a PC or a mobile phone. The so-called message ciphertext refers to the encrypted message. The message plaintext refers to the plaintext obtained by decrypting the message ciphertext.

[0039] Specifically, to ensure data security, the terminal client and the terminal server exchange encrypted messages directly. Therefore, the terminal client sends encrypted messages to the streaming gateway; the internal filter in the streaming gateway decrypts the encrypted messages to obtain the plaintext messages. Furthermore, the internal filter can also perform signature verification and authentication on the encrypted messages.

[0040] S120 . Forward the plain text message to the terminal server through the internal proxy client and the internal proxy server, so that the terminal server performs a streaming response to the plain text message.

[0041] Among them, streaming response refers to the gradual loading of the terminal server response message when the terminal client presents it. For example, text is displayed one word at a time, rather than all displayed at the beginning; video is loaded one section at a time, rather than the entire video being loaded at the beginning.

[0042] An optional method is to forward the plain text of the message to the terminal server through the internal proxy client and the internal proxy server, so that the terminal server can respond to the plain text of the message in a streaming manner, including: passing the plain text of the message to the internal proxy server in a session form or a connection form through the internal proxy client; sending the plain text of the message to the terminal server in an asynchronous thread manner through the internal proxy server, so that the terminal server can respond to the plain text of the message in a streaming manner.

[0043] Specifically, the internal proxy client receives the plaintext message sent by the internal filter, and passes the plaintext message to the internal proxy server in the form of a session. The internal proxy server sends the plaintext message to the terminal server through an asynchronous thread. Accordingly, the terminal server can respond to the plaintext message in a streaming manner.

[0044] It is understandable that message passing through asynchronous threads can ensure thread safety in high-concurrency scenarios and maximize the system's throughput.

[0045] Another optional method is to forward the plain text message to the terminal server through the internal proxy client and the internal proxy server, so that the terminal server performs a streaming response to the plain text message, including: if the plain text message of the terminal client includes a first number of sessions; a second number of session connections between the internal proxy client and the internal proxy server; if the first number is greater than the second number, then the plain text message is asynchronously processed in batches according to the first number and the second number, for example, the second number of plain text messages is regarded as a batch, and the result of dividing the first number by the second number plus one is the total batch.

[0046] Optionally, the message can also be transmitted in a connected form.

[0047] S130: Receive a plain text response message fed back by the terminal server based on the client resources or the server resources through the internal proxy server.

[0048] The plain text response message refers to the plain text of the message in which the terminal server responds to the message of the terminal client.

[0049] Specifically, the internal proxy server receives the plain text response message within the capacity range of the streaming gateway fed back by the terminal server based on the client resources or the server resources.

[0050] S140. Encrypt the response message plaintext through the internal proxy server to obtain the response message ciphertext.

[0051] The response message ciphertext refers to the ciphertext obtained by encrypting the response message plaintext.

[0052] Specifically, the internal proxy server encrypts the plain text of the response message to obtain a cipher text of the response message.

[0053] S150: Send the ciphertext of the response message to the internal proxy client through the internal proxy server.

[0054] Specifically, the internal proxy server transmits the response message ciphertext to the internal proxy client; the internal proxy client then sends the response message ciphertext to the internal filter, and the internal filter processes the response message ciphertext and then forwards it to the terminal client.

[0055] The technical solution of the embodiment of the present invention is to decrypt the ciphertext of the message sent by the terminal client through the internal filter to obtain the plaintext of the message; forward the plaintext of the message to the terminal server through the internal proxy client and the internal proxy server, so that the terminal server can respond to the plaintext of the message in a streaming manner; receive the plaintext of the response message fed back by the terminal server based on the client resources or the server resources through the internal proxy server; encrypt the plaintext of the response message through the internal proxy server to obtain the ciphertext of the response message; and send the ciphertext of the response message to the internal proxy client through the internal proxy server. The above technical solution realizes the proxy of message transmission between the terminal client and the terminal server through the streaming gateway. Compared with the proxies provided by various network application frameworks, it is more lightweight and has better performance, and can also ensure the security of data transmission.

[0056] Based on the above embodiment, the number of connections between the internal proxy client and the internal proxy server is monitored.

[0057] Specifically, the number of connections to the internal proxy client and the internal proxy server can be monitored separately. This allows for precise control of the number of connections.

[0058] It should be noted that there is an upper limit on the number of direct connections between the internal proxy client and the internal proxy server. When the number of connections corresponding to the terminal client's request message exceeds the upper limit, multiple proxy clients and proxy servers can be used to handle it. Among them, the proxy client and proxy server are one-to-one.

[0059] Figure 2 This is a flow chart of a data processing method provided by an embodiment of the present invention. Based on the above embodiment, this embodiment further optimizes "receiving the plain text response message fed back by the terminal server based on the client resources through the internal proxy server" and provides an optional implementation scheme. Figure 2 As shown, the method includes:

[0060] S210: Decrypt the ciphertext of the message sent by the terminal client through the internal filter to obtain the plaintext of the message.

[0061] S220: forward the plain text message to the terminal server through the internal proxy client and the internal proxy server, so that the terminal server performs a streaming response to the plain text message.

[0062] S230: Receive the plain text response message fed back by the terminal server based on the client resources or the server resources through the internal proxy server.

[0063] S240. Encrypt the plain text of the response message through the internal proxy server to obtain a cipher text of the response message.

[0064] S250: Send the ciphertext of the response message to the internal proxy client through the internal proxy server.

[0065] An optional method is to receive the plain text response message fed back by the terminal server based on the client resources through the internal proxy server, including: obtaining the target unit time flow in response to the configuration operation of the unit time flow in the client resources; and obtaining the plain text response message of the corresponding flow from the terminal server according to the target unit time flow.

[0066] The target unit time flow refers to the message flow size per unit time.

[0067] Specifically, the client resource can be configured to set the target unit time flow rate. The terminal server then obtains the plaintext of the response message corresponding to the flow rate. If the response message exceeds the flow rate, the server stops sending feedback to the terminal client and waits until the next unit time is opened before continuing to respond.

[0068] It can be understood that by configuring the flow rate per unit time, the message response efficiency can be guaranteed.

[0069] Another optional method is to receive the plain text response message fed back by the terminal server based on the server resources through the internal proxy server, including: obtaining the target connection number in response to the configuration operation of the connection number in the server resources; and obtaining the corresponding plain text response message from the terminal server according to the target connection number.

[0070] The target number of connections refers to the number of connections that the internal proxy server can respond to.

[0071] Specifically, the configuration operation of the number of connections in the server resource can be performed to obtain the target number of connections; according to the target number of connections, the corresponding plain text response message is obtained from the terminal server.

[0072] It is understandable that by configuring server resources, message response efficiency can be guaranteed.

[0073] It should be noted that this invention uses the most basic components to build a web persistent proxy service system that is completely open and controllable to users. This proxy service system uses only the simplest client and server components, and with appropriate thread management, variable transfer, connection management, authentication, and current limiting management, it can form a complete and lightweight persistent proxy (the principle of short-term proxy is the same).

[0074] Figure 3This is a schematic diagram of the structure of a data processing device provided according to an embodiment of the present invention. This embodiment is applicable to providing a proxy for a connection between a terminal client and a terminal server. The data processing device can be implemented in hardware and / or software and can be integrated into an electronic device that carries data processing functions, such as a streaming gateway. Optionally, the streaming gateway includes an internal filter, an internal proxy client, and an internal proxy server. The internal proxy client is a web container, and the internal proxy server is a web container. Implementing the internal proxy client and internal proxy server through the web container is more lightweight and has better performance than proxies provided by various network application frameworks.

[0075] like Figure 3 As shown, the device includes:

[0076] The message plaintext determination module 310 is used to decrypt the ciphertext of the message sent by the terminal client through the internal filter to obtain the plaintext of the message;

[0077] The message plain text sending module 320 is used to forward the message plain text to the terminal server through the internal proxy client and the internal proxy server, so that the terminal server can perform a streaming response to the message plain text;

[0078] A response message plaintext receiving module 330 is configured to receive a response message plaintext fed back by a terminal server based on client resources or server resources through an internal proxy server;

[0079] a response message ciphertext determination module 340, configured to encrypt the response message plaintext via the internal proxy server to obtain the response message ciphertext;

[0080] The response message ciphertext sending module 350 is configured to send the response message ciphertext to the internal proxy client via the internal proxy server.

[0081] The technical solution of the embodiment of the present invention is to decrypt the ciphertext of the message sent by the terminal client through the internal filter to obtain the plaintext of the message; forward the plaintext of the message to the terminal server through the internal proxy client and the internal proxy server, so that the terminal server can respond to the plaintext of the message in a streaming manner; receive the plaintext of the response message fed back by the terminal server based on the client resources or the server resources through the internal proxy server; encrypt the plaintext of the response message through the internal proxy server to obtain the ciphertext of the response message; and send the ciphertext of the response message to the internal proxy client through the internal proxy server. The above technical solution realizes the proxy of message transmission between the terminal client and the terminal server through the streaming gateway. Compared with the proxies provided by various network application frameworks, it is more lightweight and has better performance, and can also ensure the security of data transmission.

[0082] Optionally, the message plaintext sending module 320 is configured to:

[0083] The internal proxy client transmits the message in plain text to the internal proxy server in the form of a session or connection;

[0084] The plain text of the message is sent to the terminal server in an asynchronous thread manner through the internal proxy server, so that the terminal server responds to the plain text of the message in a streaming manner.

[0085] Optionally, the response message plaintext receiving module 330 is configured to:

[0086] In response to a configuration operation on a unit time flow in client resources, a target unit time flow is obtained;

[0087] According to the target unit time flow, obtain the corresponding flow response message plaintext from the terminal server.

[0088] Optionally, the response message plaintext receiving module 330 is configured to:

[0089] In response to a configuration operation on the number of connections in the server resource, a target number of connections is obtained;

[0090] According to the target connection number, obtain the corresponding response message plaintext from the terminal server.

[0091] Optionally, the device further includes a session monitoring module, configured to:

[0092] Monitor the number of connections between the internal proxy client and the internal proxy server.

[0093] Optionally, the internal proxy client is a web container; the internal proxy server is a web container.

[0094] The data processing device provided by the embodiment of the present invention can execute the data processing method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0095] According to an embodiment of the present invention, the present invention further provides an electronic device, a readable storage medium, and a computer program product.

[0096] Figure 4 It is a structural diagram of an electronic device for implementing the data processing method according to an embodiment of the present invention. Figure 4A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0097] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., which is communicatively connected to the at least one processor 11. The memory stores a computer program that can be executed by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. Various programs and data required for the operation of the electronic device 10 can also be stored in the RAM 13. The processor 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0098] Multiple components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0099] The processor 11 may be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors that run machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the data processing method.

[0100] In some embodiments, the data processing method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the data processing method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the data processing method in any other suitable manner (e.g., by means of firmware).

[0101] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0102] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0103] In the context of the present invention, computer-readable storage media can be tangible media that can contain or store a computer program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage media can include but are not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage media can be machine-readable signal media. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0104] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0105] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0106] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.

[0107] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.

[0108] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A data processing method, characterized in that: Applied to a streaming gateway, wherein the streaming gateway includes an internal filter, an internal proxy client, and an internal proxy server; the method includes: Decrypt the ciphertext of the message sent by the terminal client through the internal filter to obtain the plaintext of the message; Forwarding the plaintext message to the terminal server through the internal proxy client and the internal proxy server, so that the terminal server performs a streaming response to the plaintext message; Receiving, through the internal proxy server based on the client resources or the server resources, a plain text response message fed back by the terminal server; Encrypting the response message plaintext through the internal proxy server to obtain a response message ciphertext; The internal proxy server sends the ciphertext of the response message to the internal proxy client through the internal proxy client.

2. The method according to claim 1, characterized in that Forwarding the plaintext message to the terminal server through the internal proxy client and the internal proxy server, so that the terminal server performs a streaming response to the plaintext message, including: The message is transmitted in plain text to the internal proxy server through the internal proxy client in a session form or a connection form; The message plain text is sent to the terminal server in an asynchronous thread manner through the internal proxy server, so that the terminal server performs a streaming response to the message plain text.

3. The method according to claim 1, characterized in that Receiving, through the internal proxy server based on the client resources, a plain text response message fed back by the terminal server, including: In response to a configuration operation on a unit time flow in client resources, a target unit time flow is obtained; According to the target unit time flow, a response message plain text of the corresponding flow is obtained from the terminal server.

4. The method according to claim 1, wherein Receiving, through the internal proxy server based on the server resources, a plain text response message fed back by the terminal server, including: In response to a configuration operation on the number of connections in the server resource, a target number of connections is obtained; According to the target connection number, a corresponding response message plain text is obtained from the terminal server.

5. The method according to claim 1, wherein Also includes: The number of connections between the internal proxy client and the internal proxy server is monitored.

6. The method according to any one of claims 1 to 5, characterized in that The internal proxy client is a web container; the internal proxy server is a web container.

7. A data processing device, characterized in that: Configured in a streaming gateway, wherein the streaming gateway includes an internal filter, an internal proxy client and an internal proxy server; the device includes: A message plaintext determination module, configured to decrypt the ciphertext of the message sent by the terminal client through the internal filter to obtain the message plaintext; A message plaintext sending module, configured to forward the message plaintext to a terminal server via the internal proxy client and the internal proxy server, so that the terminal server performs a streaming response to the message plaintext; A response message plaintext receiving module, configured to receive the response message plaintext fed back by the terminal server through the internal proxy server based on the client resources or the server resources; a response message ciphertext determination module, configured to encrypt the response message plaintext via the internal proxy server to obtain a response message ciphertext; The response message ciphertext sending module is used to send the response message ciphertext to the internal proxy client through the internal proxy server.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to perform the data processing method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data processing method according to any one of claims 1 to 6 when executed.

10. A computer program product, characterized in that The computer program product comprises a computer program, which, when executed by a processor, implements the data processing method according to any one of claims 1 to 6.