CN110535904B - Asynchronous pushing method, system and device - Google Patents

Asynchronous pushing method, system and device Download PDF

Info

Publication number
CN110535904B
CN110535904B CN201910655653.6A CN201910655653A CN110535904B CN 110535904 B CN110535904 B CN 110535904B CN 201910655653 A CN201910655653 A CN 201910655653A CN 110535904 B CN110535904 B CN 110535904B
Authority
CN
China
Prior art keywords
layer
foreground
information
gateway
url
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910655653.6A
Other languages
Chinese (zh)
Other versions
CN110535904A (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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201910655653.6A priority Critical patent/CN110535904B/en
Publication of CN110535904A publication Critical patent/CN110535904A/en
Application granted granted Critical
Publication of CN110535904B publication Critical patent/CN110535904B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/9035Filtering based on additional data, e.g. user or group profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • 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

Abstract

The invention discloses an asynchronous pushing method which is applied to a micro-service architecture system. The background service layer can actively push the changed resource demand information to the foreground UI layer when the resource demand information changes, so that the resource demand information displayed by the foreground UI layer is updated only when the resource demand information changes, the problem of resource waste of a system is avoided, and the system resource information is displayed in time. The invention also discloses an asynchronous pushing system and an asynchronous pushing device, which have the same beneficial effects as the asynchronous pushing method.

Description

Asynchronous pushing method, system and device
Technical Field
The present invention relates to the field of asynchronous push, and in particular, to an asynchronous push method, system, and apparatus.
Background
With the development of virtualization technologies, applications of deploying virtual machines to run business and data services based on virtualization technologies are becoming more and more widespread. In the presence of a virtual machine, system resources are large, and particularly for a large data center, the system resources are usually huge. At present, in order to implement monitoring management of system resources, system resource information is usually displayed in a system foreground user interface.
In the prior art, the information display of the system foreground user interface usually adopts a mode of regularly refreshing the request background to refresh the system resource information. However, when the system resource information changes, if the refresh time is not reached, the foreground user interface still displays the system resource information before the change, so that the system resource information is not displayed in time; moreover, when the system resource information is not changed, if the refresh time is reached, the system resource information displayed by the foreground user interface is still refreshed, which results in system resource waste.
Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide an asynchronous pushing method, system and device, wherein a background service layer can actively push changed resource demand information to a foreground UI layer when the resource demand information changes, so that the resource demand information displayed by the foreground UI layer is updated only when the resource demand information changes, the problem of system resource waste is further avoided, and the system resource information is displayed in time.
In order to solve the above technical problem, the present invention provides an asynchronous push method, which is applied to a micro-service architecture system, and comprises:
according to the pushing requirement of system resource information, subscribing a Uniform Resource Locator (URL) representing the position of the resource requirement information on a foreground User Interface (UI) layer of the system so as to establish a virtual communication link between the foreground UI layer and a background service layer containing the resource requirement information in the system;
when the URL is successfully subscribed, generating a corresponding URL request to a gateway supporting cross-domain access in the system by using the foreground UI layer;
and sending the URL request to the background service layer by using the gateway, so that the background service layer pushes the resource demand information to the foreground UI layer after receiving the URL request, and actively pushes the resource demand information to the foreground UI layer when the resource demand information changes, so as to autonomously update the resource demand information displayed by the foreground UI layer.
Preferably, the process of generating a corresponding URL request to a gateway supporting cross-domain access in the system by using the foreground UI layer includes:
generating a URL request carrying token verification information to a gateway supporting cross-domain access in the system according to user login information by using the foreground UI layer;
correspondingly, after the foreground UI layer is used to generate a corresponding URL request to a gateway supporting cross-domain access in the system, before the gateway is used to send the URL request to the background service layer, the asynchronous push method further includes:
performing token authority authentication on the URL request by using the gateway, and if the authority authentication is passed, executing the step of sending the URL request to the background service layer by using the gateway; and if the authority authentication is not passed, the step of sending the URL request to the background service layer by using the gateway is not executed.
Preferably, the asynchronous pushing method further comprises:
and when the authority authentication fails, displaying the authority authentication failure information to the foreground UI layer.
Preferably, the process of pushing the resource demand information to the foreground UI layer after receiving the URL request includes:
when URL requests sent by a plurality of foreground UI layers are received, pushing the resource demand information to the foreground UI layers in a broadcast type pushing mode;
and when a URL request sent by a single foreground UI layer is received, pushing the resource demand information to the single foreground UI layer by using a point-to-point pushing mode.
Preferably, the resource requirement information is information in a JSON format or a character string format.
Preferably, the asynchronous pushing method further comprises:
and when the URL subscription failure is detected, displaying URL subscription failure information to the foreground UI layer.
Preferably, a communication protocol among the foreground UI layer, the background service layer, and the gateway is specifically a websocket protocol.
Preferably, the gateway is a zuul gateway;
correspondingly, the asynchronous pushing method further comprises the following steps:
and adding a filter for filtering the URL request in the zuul gateway in advance and converting a protocol of the URL request into the websocket protocol so that the zuul gateway supports the websocket protocol.
In order to solve the above technical problem, the present invention further provides an asynchronous push system, including:
the subscription module is used for subscribing URL representing the position of the resource demand information in a foreground UI layer of the system according to the resource information pushing demand of the system so as to establish a virtual communication link between the foreground UI layer and a background service layer containing the resource demand information in the system;
the request sending module is used for generating a corresponding URL request to a gateway supporting cross-domain access in the system by using the foreground UI layer while successfully subscribing the URL, and sending the URL request to the background service layer by using the gateway;
and the background service layer is used for pushing the resource demand information to the foreground UI layer after receiving the URL request, and actively pushing the resource demand information to the foreground UI layer when the resource demand information changes so as to autonomously update the resource demand information displayed by the foreground UI layer.
In order to solve the above technical problem, the present invention further provides an asynchronous pushing device, including:
a memory for storing a computer program;
a processor for implementing the steps of any of the above asynchronous push methods when executing the computer program.
The invention provides an asynchronous pushing method which is applied to a micro-service architecture system. The background service layer can actively push the changed resource demand information to the foreground UI layer when the resource demand information changes, so that the resource demand information displayed by the foreground UI layer is updated only when the resource demand information changes, the problem of resource waste of a system is avoided, and the system resource information is displayed in time.
The invention also provides an asynchronous pushing system and an asynchronous pushing device, which have the same beneficial effects as the asynchronous pushing method.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed in the prior art and the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart of an asynchronous push method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an asynchronous push system according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an asynchronous pushing device according to an embodiment of the present invention.
Detailed Description
The core of the invention is to provide an asynchronous pushing method, system and device, when the resource demand information changes, the background service layer can actively push the changed resource demand information to the foreground UI layer, so that the resource demand information displayed by the foreground UI layer can be updated only when the resource demand information changes, the problem of system resource waste is further avoided, and the system resource information is displayed in time.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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 invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating an asynchronous push method according to an embodiment of the present invention.
The asynchronous pushing method is applied to a micro-service architecture system and comprises the following steps:
step S1: according to the pushing requirement of the system resource information, a URL representing the position of the resource requirement information is subscribed in a foreground UI layer of the system, so that a virtual communication link is established between the foreground UI layer and a background service layer containing the resource requirement information in the system.
Specifically, an OS (Operating System) architecture in the System of the present application adopts a micro service architecture, which is a technology for deploying applications and services in the cloud, and has high extensibility. In order to realize the monitoring and management of system resources, the system resource information is displayed in a foreground UI (User Interface) layer of the system for a User to check. As for the specific system resource information displayed on the foreground UI layer, the method and the device are determined according to the system resource information pushing requirement (representing the specific system resource information which the user wants to display on the foreground UI layer, and the specific system resource information is called as resource requirement information).
More specifically, the Resource demand information is determined according to the system Resource information push demand, and then a Uniform Resource Locator (URL) representing the position of the Resource demand information is subscribed in a foreground UI layer. It should be noted that the URL is composed of three parts: the resource type, the host domain name for storing the resource and the resource file name, so that the resource type, the host domain name for storing the resource and the resource file name can represent the position of the system where each system resource information is located.
According to the method and the device, after the foreground UI layer successfully subscribes the URL, a virtual communication link is established between the foreground UI layer and the background service layer containing the resource demand information, so that a foundation is laid for the subsequent background service layer to push the resource demand information to the foreground UI layer.
Step S2: and when the URL is successfully subscribed, generating a corresponding URL request to a gateway supporting cross-domain access in the system by using a foreground UI layer.
Specifically, it is known that in a micro-service architecture system, all service requests pass through a gateway supporting cross-domain access in the system, and then the gateway routes the service requests to a corresponding background service layer, so as to perform a function of distributing the service requests. Therefore, when the foreground UI layer successfully subscribes the URL, the foreground UI layer is utilized to generate a corresponding URL request (representing that the foreground UI layer has the resource demand information display demand at present and contains the position of the system where the resource demand information is located) to the gateway so as to lay a foundation for the subsequent URL distribution request.
Step S3: and the gateway is utilized to send the URL request to the background service layer, so that the background service layer can push the resource demand information to the foreground UI layer after receiving the URL request, and actively push the resource demand information to the foreground UI layer when the resource demand information changes, so that the resource demand information displayed by the foreground UI layer can be updated independently.
Specifically, the URL request represents the position of the system where the resource demand information is located, namely represents a background service layer containing the resource demand information in the system, so that the URL request can be sent to the background service layer containing the resource demand information by using the gateway, and the background service layer can conveniently push the resource demand information to a foreground UI layer.
More specifically, after receiving the URL request, the background service layer pushes resource demand information to the foreground UI layer corresponding to the subscription URL. And after receiving the resource demand information pushed by the background service layer, the foreground UI layer displays the resource demand information on a self interface for a user to check. Meanwhile, the background service layer can detect whether the resource demand information changes, and when the resource demand information is detected to change, the background service layer can actively push the changed resource demand information to the foreground UI layer. And after receiving the changed resource demand information actively pushed by the background service layer, the foreground UI layer can autonomously update the resource demand information displayed on the interface of the foreground UI layer for the user to check. Therefore, the resource demand information displayed on the foreground UI layer is updated only when the resource demand information changes, the problem of system resource waste is avoided, and the system resource information is displayed in time.
The invention provides an asynchronous pushing method which is applied to a micro-service architecture system. The background service layer can actively push the changed resource demand information to the foreground UI layer when the resource demand information changes, so that the resource demand information displayed by the foreground UI layer is updated only when the resource demand information changes, the problem of resource waste of a system is avoided, and the system resource information is displayed in time.
On the basis of the above-described embodiment:
as an alternative embodiment, the process of generating a corresponding URL request to a gateway supporting cross-domain access in a system by using a foreground UI layer includes:
generating a URL request carrying token verification information to a gateway supporting cross-domain access in a system according to user login information by using a foreground UI layer;
correspondingly, after the corresponding URL request is generated by the foreground UI layer to the gateway supporting cross-domain access in the system, and before the URL request is sent to the background service layer by the gateway, the asynchronous push method further includes:
carrying out token authority authentication on the URL request by using the gateway, and if the authority authentication is passed, executing the step of sending the URL request to a background service layer by using the gateway; and if the authority authentication is not passed, the step of sending the URL request to the background service layer by using the gateway is not executed.
Specifically, in order to improve system security, a user of the application needs to allow the system resource information to be checked after the system logs in the information and the authority authentication is passed. Therefore, the method and the system set a user authority authentication link at the gateway. More specifically, if a user wants to view system resource information, the user needs to log in the information of the user in the foreground UI layer in advance. According to the method and the system, after a user logs in self information and successfully subscribes the URL on a foreground UI layer, a URL request carrying token verification information (representing user information) is generated to a gateway by using the foreground UI layer according to the user login information.
Based on the method, the gateway can be used for carrying out token authority authentication on the URL request, specifically, token verification information is obtained from the URL request, then the token verification information is matched with the user information stored in advance, if the matching is successful, the authority authentication is passed, namely, the user has the right to check the system resource information, and the step of sending the URL request to the background service layer by using the gateway is executed; if the matching is unsuccessful, the authority authentication is not passed, namely, the user does not have the right to check the system resource information, and the step of sending the URL request to the background service layer by using the gateway is not executed.
As an optional embodiment, the asynchronous pushing method further comprises:
and when the authority authentication fails, displaying the authority authentication failure information to a foreground UI layer.
Furthermore, when the user right authentication fails, the user is indicated that the user does not have right to view the system resource information at present, and the right authentication failure information can be displayed on the foreground UI layer, so that the user can know that the user does not have right to view the system resource information at present based on the right authentication failure information.
As an optional embodiment, the process of pushing the resource demand information to the foreground UI layer after receiving the URL request includes:
when URL requests sent by a plurality of foreground UI layers are received, resource demand information is pushed to the foreground UI layers in a broadcast type pushing mode;
and when a URL request sent by a single foreground UI layer is received, pushing resource demand information to the single foreground UI layer by using a point-to-point pushing mode.
Specifically, considering that there may be more than one foreground UI layer simultaneously requesting information push to the background service layer, the background service layer of the present application may determine a suitable push mode based on the number of similar URL requests, thereby facilitating efficient completion of information push.
More specifically, when the background service layer receives URL requests (it should be noted that a plurality of URL requests correspond to the same resource demand information) sent by a plurality of foreground UI layers, the background service layer may push the resource demand information to the plurality of foreground UI layers simultaneously in a broadcast push manner. When the background service layer receives the URL request sent by the single foreground UI layer, the background service layer can push the resource demand information to the single foreground UI layer by using a point-to-point pushing mode, so that the information pushing is more reasonable.
In addition, the method and the device can flexibly configure the pushing mode of the background service layer by means of a program development platform (such as spring) with an annotation function, so that the method and the device can support both a broadcast type pushing mode and a point-to-point pushing mode.
As an optional embodiment, the resource requirement information is specifically information in a JSON format or a character string format.
Specifically, when the information amount of the resource demand information is large, the resource demand information can adopt a JSON format, that is, the resource demand information is encapsulated, so that the method is suitable for information push with large information amount; when the information amount of the resource demand information is small, the resource demand information can adopt a simple character string format, namely, the resource demand information does not need to be packaged, so that the resource demand information pushing method is suitable for information pushing with small information amount.
Of course, the resource requirement information of the present application may also adopt other formats, and the present application is not particularly limited herein, depending on the actual situation.
As an optional embodiment, the asynchronous pushing method further comprises:
and when the URL subscription failure is detected, displaying URL subscription failure information to a foreground UI layer.
Further, considering that there may be a subscription failure in subscribing to the URL in the foreground UI layer, when the URL subscription failure is detected, the URL subscription failure information may be displayed on the foreground UI layer, so that the user knows that the URL subscription failure in the foreground UI layer based on the URL subscription failure information.
As an optional embodiment, the communication protocol between the foreground UI layer, the background service layer, and the gateway is specifically a websocket protocol.
Specifically, the communication protocol among the foreground UI layer, the background service layer and the gateway can be a websocket protocol. Under the websocket communication protocol, the communication among the foreground UI layer, the background service layer and the gateway is simple, and the background service layer is allowed to push messages to the foreground UI layer, so that the system program logic becomes simple.
As an optional embodiment, the gateway is specifically a zuul gateway;
correspondingly, the asynchronous pushing method further comprises the following steps:
and adding a filter for filtering out the URL request and converting the protocol of the URL request into the websocket protocol in the zuul gateway in advance so that the zuul gateway supports the websocket protocol.
Furthermore, the gateway of the application can be a zuul gateway for realizing authority authentication and request distribution. However, the zuul gateway does not support the websocket protocol, so the zuul gateway should be modified in advance to support the websocket protocol. Specifically, the filter used for filtering out the URL request and converting the protocol of the URL request into the websocket protocol is added in the zuul gateway, namely the zuul gateway is modified in a mode of adding the filter, and the zuul gateway supports the websocket protocol.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an asynchronous push system according to an embodiment of the present invention.
The asynchronous push system comprises:
the subscription module 1 is used for subscribing URL representing the position of the resource demand information in a foreground UI layer of the system according to the resource information pushing demand of the system so as to establish a virtual communication link between the foreground UI layer and a background service layer containing the resource demand information in the system;
the request sending module 2 is used for generating a corresponding URL request to a gateway supporting cross-domain access in the system by using a foreground UI layer while successfully subscribing the URL, and sending the URL request to a background service layer by using the gateway;
and the background service layer 3 is used for pushing the resource demand information to the foreground UI layer after receiving the URL request, and actively pushing the resource demand information to the foreground UI layer when the resource demand information changes so as to autonomously update the resource demand information displayed by the foreground UI layer.
For introduction of the asynchronous push system provided in the present application, please refer to the above-mentioned embodiment of the asynchronous push method, which is not described herein again.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an asynchronous pushing device according to an embodiment of the present invention.
The asynchronous pushing device comprises:
a memory 4 for storing a computer program;
a processor 5 for implementing the steps of any of the above asynchronous push methods when executing a computer program.
For introduction of the asynchronous pushing apparatus provided in the present application, please refer to the above-mentioned embodiment of the asynchronous pushing method, which is not described herein again.
It should also be noted that, in the present specification, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. An asynchronous pushing method applied to a microservice architecture system includes:
according to the pushing requirement of system resource information, subscribing a Uniform Resource Locator (URL) representing the position of the resource requirement information on a foreground User Interface (UI) layer of the system so as to establish a virtual communication link between the foreground UI layer and a background service layer containing the resource requirement information in the system;
when the URL is successfully subscribed, generating a corresponding URL request to a gateway supporting cross-domain access in the system by using the foreground UI layer;
sending the URL request to the background service layer by using the gateway, so that the background service layer pushes the resource demand information to the foreground UI layer after receiving the URL request, and actively pushes the resource demand information to the foreground UI layer when the resource demand information changes, so as to autonomously update the resource demand information displayed by the foreground UI layer;
and when the URL subscription failure is detected, displaying URL subscription failure information to the foreground UI layer.
2. The asynchronous pushing method of claim 1, wherein the process of generating a corresponding URL request to a gateway supporting cross-domain access in the system using the foreground UI layer comprises:
generating a URL request carrying token verification information to a gateway supporting cross-domain access in the system according to user login information by using the foreground UI layer;
correspondingly, after the foreground UI layer is used to generate a corresponding URL request to a gateway supporting cross-domain access in the system, before the gateway is used to send the URL request to the background service layer, the asynchronous push method further includes:
performing token authority authentication on the URL request by using the gateway, and if the authority authentication is passed, executing the step of sending the URL request to the background service layer by using the gateway; and if the authority authentication is not passed, the step of sending the URL request to the background service layer by using the gateway is not executed.
3. The asynchronous push method as recited in claim 2, wherein the asynchronous push method further comprises:
and when the authority authentication fails, displaying the authority authentication failure information to the foreground UI layer.
4. The asynchronous pushing method of claim 1, wherein the process of pushing the resource requirement information to the foreground UI layer after receiving the URL request comprises:
when URL requests sent by a plurality of foreground UI layers are received, pushing the resource demand information to the foreground UI layers in a broadcast type pushing mode;
and when a URL request sent by a single foreground UI layer is received, pushing the resource demand information to the single foreground UI layer by using a point-to-point pushing mode.
5. The asynchronous pushing method of claim 4, wherein the resource requirement information is specifically information in JSON format or character string format.
6. The asynchronous pushing method of any of claims 1-5, wherein a communication protocol between the foreground UI layer, the background service layer, and the gateway is specifically a websocket protocol.
7. Asynchronous push method according to claim 6, characterised in that said gateway is in particular a zuul gateway;
correspondingly, the asynchronous pushing method further comprises the following steps:
and adding a filter for filtering the URL request in the zuul gateway in advance and converting a protocol of the URL request into the websocket protocol so that the zuul gateway supports the websocket protocol.
8. An asynchronous push system, comprising:
the subscription module is used for subscribing URL representing the position of the resource demand information in a foreground UI layer of the system according to the resource information pushing demand of the system so as to establish a virtual communication link between the foreground UI layer and a background service layer containing the resource demand information in the system;
the request sending module is used for generating a corresponding URL request to a gateway supporting cross-domain access in the system by using the foreground UI layer while successfully subscribing the URL, and sending the URL request to the background service layer by using the gateway;
the background service layer is used for pushing the resource demand information to the foreground UI layer after receiving the URL request, and actively pushing the resource demand information to the foreground UI layer when the resource demand information changes so as to autonomously update the resource demand information displayed by the foreground UI layer; and when the URL subscription failure is detected, displaying URL subscription failure information to the foreground UI layer.
9. An asynchronous pushing device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the asynchronous push method according to any of claims 1-7 when executing the computer program.
CN201910655653.6A 2019-07-19 2019-07-19 Asynchronous pushing method, system and device Active CN110535904B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910655653.6A CN110535904B (en) 2019-07-19 2019-07-19 Asynchronous pushing method, system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910655653.6A CN110535904B (en) 2019-07-19 2019-07-19 Asynchronous pushing method, system and device

Publications (2)

Publication Number Publication Date
CN110535904A CN110535904A (en) 2019-12-03
CN110535904B true CN110535904B (en) 2022-02-18

Family

ID=68660842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910655653.6A Active CN110535904B (en) 2019-07-19 2019-07-19 Asynchronous pushing method, system and device

Country Status (1)

Country Link
CN (1) CN110535904B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111193733A (en) * 2019-12-27 2020-05-22 杭州安恒信息技术股份有限公司 Gateway system based on intranet microservice architecture

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1783849A (en) * 2004-12-03 2006-06-07 腾讯科技(深圳)有限公司 News subscribing method and system based on immediate communication platform
CN101453348A (en) * 2007-12-07 2009-06-10 中兴通讯股份有限公司 Pushing type scene updating method for mobile stream media
CN102129428A (en) * 2010-01-20 2011-07-20 腾讯科技(深圳)有限公司 Method and device for subscribing information from webpage
CN103546584A (en) * 2013-11-13 2014-01-29 深圳市中兴移动通信有限公司 Information pushing method and system
CN104506414A (en) * 2014-12-17 2015-04-08 北京邮电大学 System and method for realizing comprehensive informationized application based on instant message mode
CN104978373A (en) * 2014-06-09 2015-10-14 腾讯科技(深圳)有限公司 Webpage display method and webpage display device
CN106412003A (en) * 2015-07-30 2017-02-15 阿里巴巴集团控股有限公司 Information pushing method and device, and information request device
CN108234816A (en) * 2016-12-15 2018-06-29 北京视联动力国际信息技术有限公司 The method and device of resource information real-time synchronization is monitored between a kind of monitoring device
CN108243210A (en) * 2016-12-23 2018-07-03 北京神州泰岳软件股份有限公司 A kind of information-pushing method and Information Push Server

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101565619B1 (en) * 2009-07-22 2015-11-03 삼성전자주식회사 Method and apparatus for switching session of user equipment in wireless communicaton system
CN101695164A (en) * 2009-09-28 2010-04-14 华为技术有限公司 Verification method, device and system for controlling resource access
WO2017196774A1 (en) * 2016-05-11 2017-11-16 Oracle International Corporation Multi-tenant identity and data security management cloud service
US10169220B2 (en) * 2016-08-05 2019-01-01 International Business Machines Corporation Prioritizing resiliency tests of microservices
CN107766205B (en) * 2017-10-10 2019-11-22 武汉大学 A kind of monitoring system and method towards the tracking of micro services calling process
GB2573043B (en) * 2018-02-27 2020-11-04 Avid Tech Inc Plug-ins as microservices
CN108512748A (en) * 2018-03-21 2018-09-07 上海艾融软件股份有限公司 A kind of implementation method of micro services gateway
CN109191008A (en) * 2018-09-30 2019-01-11 江苏农牧科技职业学院 A kind of micro services frame system for fish quality supervisory systems
CN109639754B (en) * 2018-10-29 2021-02-09 南京南瑞继保电气有限公司 Method for realizing data audit of power grid dispatching service gateway
CN109743163A (en) * 2019-01-03 2019-05-10 优信拍(北京)信息科技有限公司 Purview certification method, apparatus and system in micro services framework

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1783849A (en) * 2004-12-03 2006-06-07 腾讯科技(深圳)有限公司 News subscribing method and system based on immediate communication platform
CN101453348A (en) * 2007-12-07 2009-06-10 中兴通讯股份有限公司 Pushing type scene updating method for mobile stream media
CN102129428A (en) * 2010-01-20 2011-07-20 腾讯科技(深圳)有限公司 Method and device for subscribing information from webpage
CN103546584A (en) * 2013-11-13 2014-01-29 深圳市中兴移动通信有限公司 Information pushing method and system
CN104978373A (en) * 2014-06-09 2015-10-14 腾讯科技(深圳)有限公司 Webpage display method and webpage display device
CN104506414A (en) * 2014-12-17 2015-04-08 北京邮电大学 System and method for realizing comprehensive informationized application based on instant message mode
CN106412003A (en) * 2015-07-30 2017-02-15 阿里巴巴集团控股有限公司 Information pushing method and device, and information request device
CN108234816A (en) * 2016-12-15 2018-06-29 北京视联动力国际信息技术有限公司 The method and device of resource information real-time synchronization is monitored between a kind of monitoring device
CN108243210A (en) * 2016-12-23 2018-07-03 北京神州泰岳软件股份有限公司 A kind of information-pushing method and Information Push Server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
UEP Cloud实训教程;李锐等;《广州:华南理工大学出版社》;20190430;第11-18页 *

Also Published As

Publication number Publication date
CN110535904A (en) 2019-12-03

Similar Documents

Publication Publication Date Title
CN108449418B (en) Hybrid cloud platform management system and method
US11175796B2 (en) Menu management method, server, and system
EP3103023B1 (en) Private cloud connected device cluster architecture
CN102255935B (en) Cloud service consuming method, cloud service intermediary and cloud system
CN106874334B (en) Data processing method and device and information processing system
CN105991682B (en) Data sharing method and device
CN111400777B (en) Network storage system, user authentication method, device and equipment
CN110602056B (en) Service parameter transmission method and device
CN112131504B (en) Webpage editing and displaying method, device, equipment and storage medium
CN111880904A (en) Method, system and related device for arranging virtualization platform resources
CN109104368B (en) Connection request method, device, server and computer readable storage medium
CN111988418B (en) Data processing method, device, equipment and computer readable storage medium
US11882154B2 (en) Template representation of security resources
CN111064626B (en) Configuration updating method, device, server and readable storage medium
US20170331912A1 (en) Multi-account login and communication
CN110535904B (en) Asynchronous pushing method, system and device
KR20150033454A (en) Method managing big data processing apparatus and system performing the same
CN111221655B (en) Method and device for managing resources of OpenStack platform
CN111327680B (en) Authentication data synchronization method, device, system, computer equipment and storage medium
CN112379938A (en) Cross-browser safe local application calling method based on domestic operating system
CN112769798A (en) Login method and device
CN113821333A (en) Android application program migration method and device
CN103678332A (en) System, browser and method for displaying page
CN102480475B (en) Web service safety access control method, apparatus and system thereof
CN110808943B (en) Client connection emergency management method, client and computer readable storage medium

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