CN112272241A - Cloud computing message sending method and related device - Google Patents

Cloud computing message sending method and related device Download PDF

Info

Publication number
CN112272241A
CN112272241A CN202011305674.4A CN202011305674A CN112272241A CN 112272241 A CN112272241 A CN 112272241A CN 202011305674 A CN202011305674 A CN 202011305674A CN 112272241 A CN112272241 A CN 112272241A
Authority
CN
China
Prior art keywords
message
target node
cloud
cloud service
sent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011305674.4A
Other languages
Chinese (zh)
Other versions
CN112272241B (en
Inventor
张健
刘三民
盛镇军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jindiyun Technology Co ltd
Original Assignee
Jindiyun Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jindiyun Technology Co ltd filed Critical Jindiyun Technology Co ltd
Priority to CN202011305674.4A priority Critical patent/CN112272241B/en
Publication of CN112272241A publication Critical patent/CN112272241A/en
Application granted granted Critical
Publication of CN112272241B publication Critical patent/CN112272241B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1012Server selection for load balancing based on compliance of requirements or conditions with available server resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • H04L67/145Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application discloses a cloud computing message sending method, which comprises the following steps: the public cloud server is connected with a cloud service client of the target node; the target node is a node determined from a plurality of nodes according to node state information and client state information; and sending the message to be sent to the cloud service client of the target node so that the cloud service client of the target node can send the message to be sent to the private cloud server. The information of the public cloud server is sent to the private cloud server through the cloud service client, instead of directly exposing the interface of the private cloud server, so that the safety of message sending is improved, and the safety of the private cloud server is also kept. The application also discloses a cloud computing message sending device, a server and a computer readable storage medium, which have the beneficial effects.

Description

Cloud computing message sending method and related device
Technical Field
The present application relates to the field of cloud computing technologies, and in particular, to a cloud computing message sending method, a cloud computing message sending apparatus, a server, and a computer-readable storage medium.
Background
With the continuous development of cloud computing technology, public clouds and private clouds have emerged. Wherein the public cloud is a cloud computing environment provided by a cloud service vendor. A private cloud is the only channel for an enterprise to own infrastructure resources. Hybrid cloud technology appears on the basis of public cloud and private cloud, which means that data and application programs can be respectively moved, deployed or stored between the private cloud and the public cloud. For example, a customer may choose to store data in a private cloud while running an application in a public cloud. The resources of public cloud are fully utilized, the maintenance cost is reduced, and the security of sensitive confidential data is ensured. Further, the process of message transmission between the public cloud and the private cloud in the hybrid cloud needs to be considered.
In the related art, a message for realizing a public cloud is sent to a private cloud. The method can be realized by erecting a proxy server which comprises an http service interface, sending the message to the proxy server by the public cloud, and pushing the message to the private cloud server by the proxy server. The private cloud server can be directly mapped to an external network, a corresponding http service interface is exposed, and the public cloud server directly pushes a corresponding message to the private cloud server through the service interface. However, no matter the proxy server exposed interface or the private cloud exposed interface is adopted, the data security problem in the private cloud cannot be solved, sensitive data in the private cloud is likely to be accessed, and the security is greatly reduced.
Therefore, how to improve the security of sending messages from the public cloud to the private cloud is a key issue that is focused on by those skilled in the art.
Disclosure of Invention
The purpose of the present application is to provide a cloud computing message sending method, a cloud computing message sending apparatus, a server, and a computer-readable storage medium, in which a message of a public cloud server is sent to a private cloud server through a cloud service client, instead of directly exposing an interface of the private cloud server, thereby improving the security of message sending and also maintaining the security of the private cloud server.
In order to solve the technical problem, the present application provides a cloud computing message sending method, including:
the public cloud server is connected with a cloud service client of the target node; the target node is a node determined from a plurality of nodes according to node state information and client state information;
and sending the message to be sent to the cloud service client of the target node so that the cloud service client of the target node can send the message to be sent to the private cloud server.
Optionally, the method further includes:
selecting alternative nodes of a plurality of activated clients from the plurality of nodes;
and determining the target node from the alternative nodes of the plurality of activated clients according to the access frequency and the access time.
Optionally, the method further includes:
and when the cloud service client of the target node is disconnected with the public cloud server, determining a new node from the plurality of nodes as a new target node so that the public cloud server can be connected with the cloud service client of the new target node.
Optionally, the step of sending, by the cloud service client of the target node, the message to be sent to the private cloud server includes:
the cloud service client of the target node sends the message to be sent to cloud service clients of other nodes;
and the cloud service clients of other nodes send the received messages to be sent to the private cloud server.
Optionally, the method further includes:
and when the message is failed to be sent to the cloud service clients of other nodes, the cloud service client of the target node sends the message to be sent to the cloud service client of the next other node.
Optionally, the connecting the public cloud server with the cloud service client of the target node includes:
and the public cloud server is connected with the cloud service client of the target node through the websocket long connection.
Optionally, the sending the message to be sent to the cloud service clients of other nodes by the cloud service client of the target node includes:
and the cloud service client of the target node sends the message to be sent to cloud service clients of other nodes through a TCP protocol.
The present application further provides a cloud computing message sending apparatus, including:
the client connection module is used for connecting with a cloud service client of the target node; the target node is a node determined from a plurality of nodes according to node state information and client state information;
the message sending module is used for sending the message to be sent to the cloud service client of the target node, so that the cloud service client of the target node sends the message to be sent to the private cloud server.
The present application further provides a server, comprising:
a memory for storing a computer program;
a processor configured to implement the steps of the cloud computing messaging method as described above when executing the computer program.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the cloud computing messaging method as described above.
The cloud computing message sending method provided by the application comprises the following steps: the public cloud server is connected with a cloud service client of the target node; the target node is a node determined from a plurality of nodes according to node state information and client state information; and sending the message to be sent to the cloud service client of the target node so that the cloud service client of the target node can send the message to be sent to the private cloud server.
The public cloud server is connected with the cloud service client of the target node, then the message to be sent is sent to the cloud service client of the target node, the public cloud server does not send the message to the private cloud server directly, and then the cloud service client of the target node sends the message to be sent to the private cloud server, so that the private cloud server receives the message sent by the public cloud server, the private cloud server does not send the message after exposing a private cloud server interface, the reliability of accessing the private cloud server is maintained, and the safety of the private cloud server is improved.
The application also provides a cloud computing message sending device, a server and a computer readable storage medium, which have the beneficial effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a cloud computing message sending method according to an embodiment of the present application;
fig. 2 is a flowchart of another cloud computing messaging method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a cloud computing message sending apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another cloud computing message sending apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
The core of the application is to provide a cloud computing message sending method, a cloud computing message sending device, a server and a computer readable storage medium, wherein a cloud service client sends a message of a public cloud server to a private cloud server instead of directly exposing an interface of the private cloud server, so that the message sending safety is improved, and the safety of the private cloud server is also kept.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the related art, a message for realizing a public cloud is sent to a private cloud. The method can be realized by erecting a proxy server which comprises an http service interface, sending the message to the proxy server by the public cloud, and pushing the message to the private cloud server by the proxy server. The private cloud server can be directly mapped to an external network, a corresponding http service interface is exposed, and the public cloud server directly pushes a corresponding message to the private cloud server through the service interface. However, no matter the proxy server exposed interface or the private cloud exposed interface is adopted, the data security problem in the private cloud cannot be solved, sensitive data in the private cloud is likely to be accessed, and the security is greatly reduced.
Therefore, the method for sending the cloud computing message provided by the application comprises the steps that the public cloud server is connected with the cloud service client of the target node, then the message to be sent is sent to the cloud service client of the target node instead of the public cloud server directly sending the message to the private cloud server, and then the cloud service client of the target node sends the message to be sent to the private cloud server, so that the private cloud server receives the message sent by the public cloud server instead of sending the message after exposing the interface of the private cloud server, the reliability of accessing the private cloud server is maintained, and the safety of the private cloud server is improved.
The following describes a cloud computing message sending method provided by the present application, by an embodiment.
Referring to fig. 1, fig. 1 is a flowchart of a cloud computing message sending method according to an embodiment of the present disclosure.
In this embodiment, the method may include:
s101, connecting a public cloud server with a cloud service client of a target node; the target node is a node determined from a plurality of nodes according to the node state information and the client state information;
therefore, in the step, the public cloud server is mainly connected with the cloud service client of the target node, so that the public cloud server can send the message to the cloud service client of the target node.
In this embodiment, the method is mainly applied to a hybrid cloud, and the hybrid cloud is mainly formed by mixing a private cloud and a public cloud. The public cloud mainly comprises a public cloud server.
The cloud service client of the target node refers to a client program of a cloud service manufacturer for providing service for a user. For example, SaaS vendors offer customers to download installed desktop client programs. Generally, in addition to providing a software service site, SaaS manufacturers provide a thin client (browser) for users to access, and also provide desktop client programs to implement some enhanced functions (functions that cannot be implemented by browsers, such as document uploading and downloading, document conversion processing, and message end transmission). In the prior art, generally, a cloud service client can be directly connected with a public cloud server and a private cloud server. Therefore, in this embodiment, the cloud service client of the target node may be directly connected to the public cloud server and the private cloud server.
The target node may be a node determined from a plurality of nodes according to the node state information and the client state information, and is mainly used for selecting a node suitable as the target node from the plurality of nodes so as to improve the speed and performance of sending the message to the target node, and keep the message of the public cloud server stably and reliably sent to the target node. The node state information refers to hardware state information of the node, including but not limited to processor utilization, memory utilization, hardware temperature, and the like, so as to determine a node with good node hardware state. The client state information refers to state information of client software installed in the node, and includes but is not limited to whether to activate, login, and be in a connectable state, so as to determine a node with a good client state. Therefore, the nodes are determined according to the node state information and the client state information, and the nodes with good hardware states and good software states can be selected as the nodes in the step.
Obviously, in this step, the public cloud server and the client of the target node may be connected by a tcp protocol, a websocket long connection, or an http connection. It can be seen that, the connection manner between the public cloud server and the client of the target node in this embodiment is not unique, and is not specifically limited herein.
In order to further improve the timeliness of sending the message after the connection, the step may include:
and the public cloud server is connected with the cloud service client of the target node through the websocket long connection.
Therefore, in the alternative, a connection mode between the public cloud server and the target node is mainly explained. And further, the target node is linked through the websocket long connection. A websocket is a protocol for full duplex communication over a single TCP connection. The websocket enables data exchange between the client and the server to be simpler, and allows the server to actively push data to the client. In the websocket API, the browser and the server only need to complete one handshake, and persistent connection can be directly established between the browser and the server, and bidirectional data transmission is performed. Therefore, the timeliness of the public cloud server for sending the message can be maintained through the websocket long connection, the communication traffic is reduced, and the resource consumption is reduced.
S102, sending the message to be sent to the cloud service client of the target node, so that the cloud service client of the target node sends the message to be sent to the private cloud server.
On the basis of S101, this step is intended to send a message to be sent to the cloud service client of the target node, so that the cloud service client of the target node sends the message to be sent to the private cloud server. Therefore, the message can be sent to the private cloud server by the private cloud server in the step without an exposed interface.
The cloud service client can be directly connected with the private cloud, so that any technical scheme provided by the prior art for sending the message to the private cloud server by the cloud service client can be directly adopted, the message can be sent to the private cloud server by a TCP (Transmission Control Protocol) Protocol, and the message can also be sent to the private cloud server by an HTTP (Hypertext Transfer Protocol) Protocol. It is to be noted that the manner of sending the message in this step is not exclusive, and is not limited herein.
The number of target nodes in this embodiment may be one or more. Further, in order to maintain the online number of the target nodes and the stability of connection with the public cloud server, the public cloud server may be connected with a plurality of target nodes, and then simultaneously transmit the same message to be transmitted to the plurality of target nodes, or respectively transmit different messages to be transmitted corresponding to different target nodes. In order to reduce performance waste, the public cloud server can be connected with a single target node, and all messages to be sent are sent to the cloud service client of the target node.
Furthermore, when the number of the target nodes is one, the public cloud server is connected with the cloud service client of the target nodes through the websocket long connection, so that the connection stability and the data transmission effectiveness between the public cloud server and the cloud service client of the target nodes can be maintained. When the number of the target nodes is multiple, a large amount of performance resources need to be consumed when the public cloud server is connected with the multiple target nodes, and the stability of the system is affected.
Further, in order to improve the stability of the target node, the to-be-sent message in the public cloud server is kept to be sent to the target node in time, and the message sending efficiency is improved, this embodiment may further include:
step 1, selecting a plurality of alternative nodes of an activated client from a plurality of nodes;
and 2, determining a target node from the alternative nodes of the activated clients according to the access frequency and the access time.
It can be seen that in the present alternative, the target node is selected from a plurality of candidate nodes of the activated client. In the alternative scheme, a plurality of alternative nodes of an activated client side are selected from a plurality of nodes; that is, it is first necessary to keep the client in the node activated so that data transmission can be performed through the client. Then, a target node is determined from the alternative nodes of the plurality of activated clients according to the access frequency and the access time. The target node is determined through the access frequency and the access time, and the nodes with lower access frequency and close access time are mainly selected so as to select the nodes with higher reliability and sufficient performance as the target node.
Further, in order to improve the stability of the target node, when an accident of the target node occurs, the target node may be repaired in time, and the method may further include:
when the cloud service client of the target node is disconnected with the public cloud server, determining a new node from the plurality of nodes as a new target node, so that the public cloud server is connected with the cloud service client of the new target node.
It can be seen that the alternative scheme mainly illustrates that when a target node is disconnected, a new node is determined as a new target node, and the public cloud server is directly connected with the new target node, so that the corresponding target node exists in the public cloud server in real time and is used for sending a message in time.
In summary, in the embodiment, the public cloud server is connected with the cloud service client of the target node, and then sends the message to be sent to the cloud service client of the target node, instead of the public cloud server directly sending the message to the private cloud server, and then the cloud service client of the target node sends the message to be sent to the private cloud server, so that the private cloud server receives the message sent by the public cloud server, instead of sending the message after exposing the interface of the private cloud server, the reliability of accessing the private cloud server is maintained, and the security of the private cloud server is improved.
The cloud computing message sending method provided by the present application is further described below by another embodiment.
Referring to fig. 2, fig. 2 is a flowchart of another cloud computing message sending method according to an embodiment of the present disclosure.
In this embodiment, a process of sending a message to be sent to a private cloud server by a cloud service client of a target node in the previous embodiment is mainly optimized, mainly efficiency of sending the message to the private cloud server is improved, performance pressure of the target node is reduced, and information forwarding can be effectively performed, and the method may include:
s201, the cloud service client of the target node sends a message to be sent to the cloud service clients of other nodes;
the cloud service client side which receives the message to be sent sends the message to be sent to the cloud service client sides of other nodes.
It can be seen that the other nodes in this step refer to nodes in the same distributed cluster as the target node. The other nodes are not different from the target node from a hardware perspective and a software perspective. The number of other nodes may be one or more. When the number of the other nodes is one, the cloud service client of the target node directly sends the message to be sent to the other nodes, so that the performance utilization rate is maintained, and the performance consumption is reduced. When the number of the other nodes is multiple, the cloud service client of the target node directly sends the message to be sent to the multiple other nodes, so that the nodes all send the message to be sent to the private cloud server, the message to be sent can be effectively sent to the private cloud server, the message sending reliability is maintained, and the message loss is avoided.
The method for sending the message to the cloud service clients of other nodes by the cloud service client of the target node may refer to any message sending method provided in the prior art, and is not specifically limited herein.
Optionally, this step may include:
and the cloud service client of the target node sends the message to be sent to the cloud service clients of other nodes through a TCP protocol.
And S202, the cloud service clients of other nodes send the received messages to be sent to the private cloud server.
On the basis of S101, this step aims at the cloud service client of the other node sending the received message to be sent to the private cloud server. Therefore, in the step, the cloud service client of the other node which receives the message to be sent directly sends the message to be sent to the private cloud server, and the message to be sent is sent to the private cloud server under the condition that the private cloud server is not exposed, so that data in the private cloud server is prevented from being stolen.
Optionally, this embodiment may further include:
when the message is failed to be sent to the cloud service clients of other nodes, the cloud service client of the target node sends the message to be sent to the cloud service client of the next other node.
It can be seen that the alternative scheme mainly explains the case when the message transmission fails. When the message sending fails, the cloud service client of the target node directly sends the message to be sent to the cloud service client of the next other node, so that the message to be sent can be sent in time.
As can be seen, in the embodiment, the to-be-sent message is sent to the cloud service clients of other nodes through the cloud service client of the target node, and then the cloud service clients of other nodes send the received to-be-sent message to the private cloud server again instead of directly sending the to-be-sent message to the private cloud server, so that the cloud service client of the target node is prevented from sending excessive message data in a short time, and the performance utilization rate is improved.
The cloud computing message sending method provided by the present application is further described below by another specific embodiment.
In this embodiment, the communication node is the above-mentioned target node, and the method may include:
firstly, when a client uses a cloud service client, the cloud service client is registered in a node container of a public cloud, one node is selected as a communication node according to access frequency and time, and the communication node is connected with the cloud service client of the communication node.
Then, the communication node and the public cloud server use the websocket long connection to maintain the connection state, and the cloud service clients of other nodes only need to keep communication with the communication node. When the communication node is inactivated or disconnected, the selection is performed from a plurality of points again, and as long as one cloud service client is in an activated state, the communication node can be selected. Besides the communication node, cloud service clients of other nodes can perform carrier tools for message distribution. That is to say, the communication node sends the message to the cloud service clients of other nodes, and then sends the message to the private cloud server through the cloud service clients of other nodes. If the message transmission of a certain node fails, the communication node can be handed over to the next node for transmission, so that the network abnormality of part of cloud service client environments is avoided.
Finally, the private cloud server can receive the message sent by the public cloud server through the communication node or other nodes, so that the data of the private cloud server is prevented from being exposed to the outside, and the data security of the private cloud server is improved.
Compared with other long polling technologies, the websocket used as the long connection technology of the public cloud server and the communication node in the embodiment can realize instant push of the server, reduce communication traffic and reduce resource consumption.
As can be seen, in the embodiment, the public cloud server is connected with the cloud service client of the target node, and then the message to be sent is sent to the cloud service client of the target node, instead of the public cloud server directly sending the message to the private cloud server, and then the cloud service client of the target node sends the message to be sent to the private cloud server, so that the private cloud server receives the message sent by the public cloud server, instead of sending the message after exposing the interface of the private cloud server, the reliability of accessing the private cloud server is maintained, and the security of the private cloud server is improved.
In the following, the cloud computing message sending apparatus provided in the embodiment of the present application is introduced, and the cloud computing message sending apparatus described below and the cloud computing message sending method described above may be referred to correspondingly.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a cloud computing message sending apparatus according to an embodiment of the present disclosure.
In this embodiment, the apparatus may include:
a client connection module 100, configured to connect with a cloud service client of a target node; the target node is a node determined from a plurality of nodes according to the node state information and the client state information;
the message sending module 200 is configured to send a message to be sent to a cloud service client of a target node, so that the cloud service client of the target node sends the message to be sent to a private cloud server.
Optionally, the apparatus may further include:
the target node determining module is used for selecting a plurality of alternative nodes of the activated client from the plurality of nodes; and determining a target node from the alternative nodes of the plurality of activated clients according to the access frequency and the access time.
Optionally, the apparatus may further include:
and the target node reselection module is used for determining a new node from the plurality of nodes as a new target node when the cloud service client of the target node is disconnected with the public cloud server so that the public cloud server can be connected with the cloud service client of the new target node.
Optionally, the target node may be configured to send the message to be sent to a cloud service client of another node;
optionally, the other nodes may be configured to send the received message to be sent to the private cloud server.
Optionally, the apparatus may further include:
and the node retransmission module is used for sending the message to be sent to the cloud service client of the next other node when the message is failed to be sent to the cloud service clients of the other nodes.
Optionally, the client connection module 100 may be configured to connect with a cloud service client of a target node through a websocket long connection.
Referring to fig. 4, fig. 4 is a schematic structural diagram of another cloud computing messaging apparatus provided in this embodiment of the present application, which may generate relatively large differences due to different configurations or performances, and may include one or more processors (CPUs) 622 (e.g., one or more processors) and a memory 632, and one or more storage media 630 (e.g., one or more mass storage devices) for storing applications 642 or data 644. Memory 632 and storage medium 630 may be, among other things, transient or persistent storage. The program stored on the storage medium 630 may include one or more modules (not shown), each of which may include a sequence of instructions operating on a computing device. Still further, the central processor 622 may be configured to communicate with the storage medium 630 to execute a series of instruction operations in the storage medium 630 on the computing device 600.
The control device 600 may also include one or more power supplies 626, one or more wired or wireless network interfaces 650, one or more input-output interfaces 658, and/or one or more operating systems 641, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
The steps in the cloud computing message sending method described in fig. 1 to fig. 2 are implemented by a cloud computing message sending method based on the structure shown in fig. 4.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a server according to an embodiment of the present disclosure.
An embodiment of the present application further provides a server, including:
a memory 11 for storing a computer program;
a processor 12, configured to implement the steps of the cloud computing messaging method according to the above embodiments when executing the computer program.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the cloud computing message sending method according to the above embodiment are implemented.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a function calling device, or a network device) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
A cloud computing message sending method, a cloud computing message sending apparatus, a server, and a computer-readable storage medium provided by the present application are described in detail above. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.

Claims (10)

1. A cloud computing message sending method is characterized by comprising the following steps:
the public cloud server is connected with a cloud service client of the target node; the target node is a node determined from a plurality of nodes according to node state information and client state information;
and sending the message to be sent to the cloud service client of the target node so that the cloud service client of the target node can send the message to be sent to the private cloud server.
2. The method according to claim 1, further comprising:
selecting alternative nodes of a plurality of activated clients from the plurality of nodes;
and determining the target node from the alternative nodes of the plurality of activated clients according to the access frequency and the access time.
3. The method according to claim 1, further comprising:
and when the cloud service client of the target node is disconnected with the public cloud server, determining a new node from the plurality of nodes as a new target node so that the public cloud server can be connected with the cloud service client of the new target node.
4. The method for sending the cloud computing message according to any one of claims 1 to 3, wherein the step of sending the message to be sent to a private cloud server by a cloud service client of the target node includes:
the cloud service client of the target node sends the message to be sent to cloud service clients of other nodes;
and the cloud service clients of other nodes send the received messages to be sent to the private cloud server.
5. The cloud computing messaging method of claim 4, further comprising:
and when the message is failed to be sent to the cloud service clients of other nodes, the cloud service client of the target node sends the message to be sent to the cloud service client of the next other node.
6. The method for sending the cloud computing message according to claim 5, wherein the connecting the public cloud server with the cloud service client of the target node includes:
and the public cloud server is connected with the cloud service client of the target node through the websocket long connection.
7. The method according to claim 6, wherein the step of sending the message to be sent to the cloud service clients of other nodes by the cloud service client of the target node comprises:
and the cloud service client of the target node sends the message to be sent to cloud service clients of other nodes through a TCP protocol.
8. A cloud computing messaging apparatus, comprising:
the client connection module is used for connecting with a cloud service client of the target node; the target node is a node determined from a plurality of nodes according to node state information and client state information;
the message sending module is used for sending the message to be sent to the cloud service client of the target node, so that the cloud service client of the target node sends the message to be sent to the private cloud server.
9. A server, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the cloud computing messaging method of any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the cloud computing messaging method according to any one of claims 1 to 7.
CN202011305674.4A 2020-11-19 2020-11-19 Cloud computing message sending method and related device Active CN112272241B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011305674.4A CN112272241B (en) 2020-11-19 2020-11-19 Cloud computing message sending method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011305674.4A CN112272241B (en) 2020-11-19 2020-11-19 Cloud computing message sending method and related device

Publications (2)

Publication Number Publication Date
CN112272241A true CN112272241A (en) 2021-01-26
CN112272241B CN112272241B (en) 2023-09-19

Family

ID=74340363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011305674.4A Active CN112272241B (en) 2020-11-19 2020-11-19 Cloud computing message sending method and related device

Country Status (1)

Country Link
CN (1) CN112272241B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140122866A1 (en) * 2012-10-31 2014-05-01 Vmware, Inc. Crypto Proxy for Cloud Storage Services
US20180027050A1 (en) * 2016-07-22 2018-01-25 Microsoft Technology Licensing, Llc Access services in hybrid cloud computing systems
CN110430281A (en) * 2019-08-15 2019-11-08 深圳市般若大数据技术有限公司 Method, apparatus, equipment and the storage medium of public cloud acquisition private clound data
CN111385203A (en) * 2020-03-19 2020-07-07 上海东普信息科技有限公司 Data transmission method, device and equipment based on hybrid cloud and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140122866A1 (en) * 2012-10-31 2014-05-01 Vmware, Inc. Crypto Proxy for Cloud Storage Services
US20180027050A1 (en) * 2016-07-22 2018-01-25 Microsoft Technology Licensing, Llc Access services in hybrid cloud computing systems
CN110430281A (en) * 2019-08-15 2019-11-08 深圳市般若大数据技术有限公司 Method, apparatus, equipment and the storage medium of public cloud acquisition private clound data
CN111385203A (en) * 2020-03-19 2020-07-07 上海东普信息科技有限公司 Data transmission method, device and equipment based on hybrid cloud and storage medium

Also Published As

Publication number Publication date
CN112272241B (en) 2023-09-19

Similar Documents

Publication Publication Date Title
US11750486B2 (en) Device state management
US11122023B2 (en) Device communication environment
US10547710B2 (en) Device gateway
US10958648B2 (en) Device communication environment
US11115481B2 (en) Transmission control of protocol state exchange for dynamic stateful service insertion
US8001176B2 (en) Web service with multiple listening endpoints
US9973593B2 (en) Device gateway
US20220272041A1 (en) Controlling a destination of network traffic
CN111478974A (en) Network connection method and device, electronic equipment and readable storage medium
CN114296953A (en) Multi-cloud heterogeneous system and task processing method
CN111787048B (en) Connection method of terminal equipment, scheduling server and Internet of things system
CN109981778B (en) Method, device, equipment and storage medium for realizing service of content distribution network
CN112272241B (en) Cloud computing message sending method and related device
US10445153B2 (en) Technologies for managing web notifications in client-server systems
CN106411588A (en) Network device management method, master device and management server
CN113691510A (en) Cross-domain access control method, system, storage medium and equipment
CN113810264A (en) Information transmission method and device, electronic equipment and storage medium
WO2017004251A1 (en) Method and system for function and service discovery
CN112416522A (en) Virtual machine control method and device
CN111866100A (en) Method, device and system for controlling data transmission rate
US10778585B1 (en) Connection and application state migration for uninterrupted service availability
CN111490997A (en) Task processing method, agent system, service system and electronic equipment
CN115086425B (en) Message transmission method, device, program product, medium and electronic equipment
CN117596076B (en) Session data transmission method, system, device, equipment and storage medium
WO2024078050A1 (en) Method and apparatus for performing data transmission

Legal Events

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