CN110798512A - Centralized data pushing method, intelligent terminal and storage medium - Google Patents
Centralized data pushing method, intelligent terminal and storage medium Download PDFInfo
- Publication number
- CN110798512A CN110798512A CN201910976918.2A CN201910976918A CN110798512A CN 110798512 A CN110798512 A CN 110798512A CN 201910976918 A CN201910976918 A CN 201910976918A CN 110798512 A CN110798512 A CN 110798512A
- Authority
- CN
- China
- Prior art keywords
- data
- center
- pushing
- client
- background server
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/566—Grouping or aggregating service requests, e.g. for unified processing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a centralized data pushing method, an intelligent terminal and a storage medium, wherein the method comprises the following steps: a background server requests a data pushing center to establish a data point, and the data pushing center returns a data point ID to the background server; the client requests data from the background server and receives a data point ID sent by the data pushing center through a data point; the client requests data from the data pushing center, and the data pushing center returns data according to the request of the client. The data transmission method and the data transmission system have the advantages that the data needing to be changed in real time are stored in the data push center in a centralized mode through all the services, the data synchronization of a system composed of multiple services is facilitated, the data transmission is carried out in a unified mode through the data push center, and the data transmission efficiency is improved.
Description
Technical Field
The invention relates to the technical field of computer application, in particular to a centralized data pushing method, an intelligent terminal and a storage medium.
Background
Under the development mode of the client and the background server, data which is frequently changed is generally required to be pushed in real time so as to complete the instant display of the client. In modern development with popular microservice architecture style, an application system is usually composed of a plurality of services together, and such frequently changed data is naturally distributed in different services.
Background servers are usually developed by different teams or even different companies, and data push for respective services is generally selected to be developed when data push is needed, at the moment, a mode suitable for a technical stack of each team is selected when each team realizes data push of the team, so that great difficulty is encountered when a client performs data docking due to inconsistency of a push method and push contents (the client is difficult to receive data of a plurality of background servers due to different protocols and push modes); moreover, the resource consumption of pushing is maintained to be large, and there is a problem of large resource consumption due to the respective implementation of pushing, as shown in fig. 1, since each client needs to perform data synchronization with the backend server, the number of connections that need to be established is n × m (for example, the number of clients is m, and the number of backend servers is n), and as the number of the backend servers and the clients increases, the number of connections established increases progressively in a product relationship, which brings great pressure to the backend servers, which may greatly increase the workload of developers, resulting in low development efficiency.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The present invention mainly aims to provide a centralized data pushing method, an intelligent terminal and a storage medium, and aims to solve the above-mentioned defects in the prior art.
In order to achieve the above object, the present invention provides a centralized data pushing method, which includes the following steps:
a background server requests a data pushing center to establish a data point, and the data pushing center returns a data point ID to the background server;
the client requests data from the background server and receives a data point ID sent by the data pushing center through a data point;
the client requests data from the data pushing center, and the data pushing center returns data according to the request of the client.
Optionally, the centralized data pushing method, where the background server requests a data pushing center to establish a data point, and the data pushing center returns a data point ID to the background server, further includes:
a data push center is erected in a cluster communication system in advance, and data needing to be pushed are stored in the data push center through a service.
Optionally, the centralized data pushing method, where the client requests data from the data pushing center, and after the step of the data pushing center returning data according to the request of the client, the method further includes:
the client determines whether to monitor data according to whether the data needs to be continuously received, monitors the data when the client needs to continuously receive the data, and does not need to monitor the data when the client does not need to continuously receive the data.
Optionally, the centralized data pushing method further includes:
the client requests data from the background server and records the data point ID;
and the client requests a specified data point from the data push center, receives the specified data point returned by the data push center, and establishes long connection with the data push center when the client selects to monitor data.
Optionally, the centralized data pushing method further includes:
the background server creates a data point in the data push center and records the ID of the data point;
the background server receives a data request of the client and returns a data point ID to the client;
and when the background server changes the data, reporting the data change to the data pushing center.
Optionally, the centralized data pushing method includes, in which the data point includes a unique ID for identifying data and data content.
In addition, to achieve the above object, the present invention further provides a centralized data pushing system, wherein the centralized data pushing system includes: the system comprises a background server, a data push center connected with the background server and a client connected with the data push center;
the background server requests the data pushing center to establish a data point, and the data pushing center returns a data point ID to the background server; the client requests data from the background server and receives a data point ID sent by the data pushing center through a data point; the client requests data from the data pushing center, and the data pushing center returns data according to the request of the client.
In addition, to achieve the above object, the present invention further provides a storage medium, wherein the storage medium stores a centralized data pushing program, and the centralized data pushing program realizes the steps of the centralized data pushing method as described above when executed by a processor.
In the invention, a background server requests a data pushing center to establish a data point, and the data pushing center returns a data point ID to the background server; the client requests data from the background server and receives a data point ID sent by the data pushing center through a data point; the client requests data from the data pushing center, and the data pushing center returns data according to the request of the client. The data transmission method and the data transmission system have the advantages that the data needing to be changed in real time are stored in the data push center in a centralized mode through all the services, the data synchronization of a system composed of multiple services is facilitated, the data transmission is carried out in a unified mode through the data push center, and the data transmission efficiency is improved. .
Drawings
Fig. 1 is a schematic diagram of a background service and a client for data push in the prior art (the background service in fig. 1 represents a background server);
FIG. 2 is a flow chart of a preferred embodiment of the centralized data pushing method of the present invention;
FIG. 3 is a schematic diagram of the background server, the data pushing center and the client for data communication according to the preferred embodiment of the centralized data pushing system of the present invention;
FIG. 4 is a diagram illustrating synchronization of data among clients according to a preferred embodiment of the centralized data pushing method of the present invention;
FIG. 5 is a diagram illustrating synchronization of data by a backend server according to a preferred embodiment of the centralized data pushing method of the present invention;
FIG. 6 is a sequence diagram of centralized data pushing in the preferred embodiment of the centralized data pushing method of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 2 and 3, the centralized data pushing method according to the preferred embodiment of the present invention includes the following steps:
step S10, the background server requests a data pushing center to establish a data point, and the data pushing center returns a data point ID to the background server;
step S20, the client requests data from the background server and receives the data point ID sent by the data push center through the data point;
step S30, the client requests data from the data pushing center, and the data pushing center returns data according to the request of the client.
Specifically, the previous data transmission is performed by the client directly and the background server, and therefore, as each client needs to perform data synchronization with the background server, the number of connections to be established is n × m (where n denotes the number of the background servers and m denotes the number of the clients); after the mode of the invention is adopted, only the number of the established connections is m, and the pushing method is unified, so that the respective development amount is reduced, and the development efficiency is greatly improved.
Before the step S10, the method further includes: a data push center is erected in a trunking communication system (the trunking communication system is a mobile communication system used for group dispatching and commanding communication and is mainly applied to the field of professional mobile communication) in advance, and data needing to be pushed is stored in the data push center through services.
In fig. 3, the background server and the data push center establish a long connection channel, where the long connection means that the connection state between the client and the server is maintained for a long time, and the default timeout time is 8 hours; and the data push center establishes a short connection channel with the client, wherein the short connection means that the data transmission is immediately disconnected after finishing, and each connection only completes the sending of one service.
According to the invention, by erecting the data pushing center in the cluster, each service can store data to be pushed in the data pushing center, and then the data pushing center uniformly pushes the data to the client according to the data ground subscription condition of the client. Therefore, the number of the long connections is changed from n to m, resources required for maintaining the long connections are greatly reduced, and the method is particularly suitable for the situation that the number of the clients and the number of the services are large.
The data point is a package of data and is composed of a unique ID for identifying the data and data content, and the data point is used for distinguishing different data in the data push center.
Further, after the step S10, the method further includes: the client determines whether to monitor data according to whether the data needs to be continuously received, monitors the data when the client needs to continuously receive the data, and does not need to monitor the data when the client does not need to continuously receive the data (namely, the client determines whether to monitor the data according to whether the data needs to be continuously received or not).
Further, as shown in fig. 4, the client requests data from the backend server and records the data point ID; and the client requests a specified data point from the data push center, receives the specified data point returned by the data push center, and establishes long connection with the data push center when the client selects to monitor data.
Further, as shown in fig. 5, the background server creates a data point in the data push center, and records a data point ID; the background server receives a data request of the client and returns a data point ID to the client; and when the background server changes the data, reporting the data change to the data pushing center.
Further, as shown in fig. 3 and fig. 6, based on the foregoing centralized data pushing method, the present invention also provides a centralized data pushing system, where the centralized data pushing system includes: the system comprises a background server, a data push center connected with the background server and a client connected with the data push center; the background server requests the data pushing center to establish a data point, and the data pushing center returns a data point ID to the background server; the client requests data from the background server and receives a data point ID sent by the data pushing center through a data point; the client requests data from the data pushing center, and the data pushing center returns data according to the request of the client; the client determines whether to monitor data according to whether to continuously receive data, monitors data when the client needs to continuously receive data, and does not need to monitor data when the client does not need to continuously receive data (i.e., whether the client focuses on data points in fig. 6).
In summary, the present invention provides a centralized data pushing method, an intelligent terminal and a storage medium, where the method includes: a background server requests a data pushing center to establish a data point, and the data pushing center returns a data point ID to the background server; the client requests data from the background server and receives a data point ID sent by the data pushing center through a data point; the client requests data from the data pushing center, and the data pushing center returns data according to the request of the client. The data transmission method and the data transmission system have the advantages that the data needing to be changed in real time are stored in the data push center in a centralized mode through all the services, the data synchronization of a system composed of multiple services is facilitated, the data transmission is carried out in a unified mode through the data push center, and the data transmission efficiency is improved.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program instructing relevant hardware (such as a processor, a controller, etc.), and the program may be stored in a computer readable storage medium, and when executed, the program may include the processes of the above method embodiments. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.
Claims (8)
1. A centralized data pushing method, characterized in that the centralized data pushing method comprises:
a background server requests a data pushing center to establish a data point, and the data pushing center returns a data point ID to the background server;
the client requests data from the background server and receives a data point ID sent by the data pushing center through a data point;
the client requests data from the data pushing center, and the data pushing center returns data according to the request of the client.
2. The centralized data pushing method according to claim 1, wherein the step of the backend server requesting a data point establishment from a data pushing center, the data pushing center returning a data point ID to the backend server, further comprises:
a data push center is erected in a cluster communication system in advance, and data needing to be pushed are stored in the data push center through a service.
3. The centralized data pushing method according to claim 1, wherein the client requests data from the data pushing center, and after the step of the data pushing center returning data according to the request of the client, the method further comprises:
the client determines whether to monitor data according to whether the data needs to be continuously received, monitors the data when the client needs to continuously receive the data, and does not need to monitor the data when the client does not need to continuously receive the data.
4. The centralized data pushing method of claim 1, further comprising:
the client requests data from the background server and records the data point ID;
and the client requests a specified data point from the data push center, receives the specified data point returned by the data push center, and establishes long connection with the data push center when the client selects to monitor data.
5. The centralized data pushing method of claim 1, further comprising:
the background server creates a data point in the data push center and records the ID of the data point;
the background server receives a data request of the client and returns a data point ID to the client;
and when the background server changes the data, reporting the data change to the data pushing center.
6. The centralized data pushing method of claim 1, wherein the data points comprise a unique ID for identifying data and data content.
7. A centralized data pushing system, characterized in that the centralized data pushing system comprises: the system comprises a background server, a data push center connected with the background server and a client connected with the data push center;
the background server requests the data pushing center to establish a data point, and the data pushing center returns a data point ID to the background server; the client requests data from the background server and receives a data point ID sent by the data pushing center through a data point; the client requests data from the data pushing center, and the data pushing center returns data according to the request of the client.
8. A storage medium, characterized in that the storage medium stores a centralized data push program, which when executed by a processor implements the steps of the centralized data push method according to any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910976918.2A CN110798512A (en) | 2019-10-15 | 2019-10-15 | Centralized data pushing method, intelligent terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910976918.2A CN110798512A (en) | 2019-10-15 | 2019-10-15 | Centralized data pushing method, intelligent terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110798512A true CN110798512A (en) | 2020-02-14 |
Family
ID=69439172
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910976918.2A Pending CN110798512A (en) | 2019-10-15 | 2019-10-15 | Centralized data pushing method, intelligent terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110798512A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114449029A (en) * | 2022-01-27 | 2022-05-06 | 中国建设银行股份有限公司 | Service data acquisition method, system, device, computer equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101707635A (en) * | 2009-12-25 | 2010-05-12 | 中国海洋大学 | Internet-based resource supplying system |
CN103095732A (en) * | 2013-03-01 | 2013-05-08 | 畅捷通信息技术股份有限公司 | Information push system and information push method |
CN103167017A (en) * | 2013-01-09 | 2013-06-19 | 北京奇虎科技有限公司 | Method, device and system for Web polling |
CN104486443A (en) * | 2014-12-24 | 2015-04-01 | 上海心动企业发展有限公司 | Message pushing system and method |
US20170171332A1 (en) * | 2015-12-15 | 2017-06-15 | Le Holdings (Beijing) Co., Ltd. | Message pushing method, electronic device and non-transitory computer-readable storage medium |
CN109428923A (en) * | 2017-08-29 | 2019-03-05 | 努比亚技术有限公司 | Information push method, server, terminal and computer readable storage medium |
-
2019
- 2019-10-15 CN CN201910976918.2A patent/CN110798512A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101707635A (en) * | 2009-12-25 | 2010-05-12 | 中国海洋大学 | Internet-based resource supplying system |
CN103167017A (en) * | 2013-01-09 | 2013-06-19 | 北京奇虎科技有限公司 | Method, device and system for Web polling |
CN103095732A (en) * | 2013-03-01 | 2013-05-08 | 畅捷通信息技术股份有限公司 | Information push system and information push method |
CN104486443A (en) * | 2014-12-24 | 2015-04-01 | 上海心动企业发展有限公司 | Message pushing system and method |
US20170171332A1 (en) * | 2015-12-15 | 2017-06-15 | Le Holdings (Beijing) Co., Ltd. | Message pushing method, electronic device and non-transitory computer-readable storage medium |
CN109428923A (en) * | 2017-08-29 | 2019-03-05 | 努比亚技术有限公司 | Information push method, server, terminal and computer readable storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114449029A (en) * | 2022-01-27 | 2022-05-06 | 中国建设银行股份有限公司 | Service data acquisition method, system, device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109542457B (en) | Distributed application distribution and deployment system and method for edge computing network | |
US10791166B2 (en) | Method and device for processing persistent connection establishment request | |
CN104144098B (en) | Information push method, system and push server equipment | |
CN102571940B (en) | Application program remote installation system, method, intelligent terminal, application server | |
US20170163478A1 (en) | Method,electronic device and system for updating client configuration in key-value pair database | |
CN106302647B (en) | Message distribution method and server | |
US20100174806A1 (en) | Data Processing Method, Apparatus And System | |
WO2021223454A1 (en) | Screen projection method and system | |
CN105656964B (en) | The implementation method and device of data-pushing | |
CN101895531B (en) | Client equipment, multimedia data unloading system and unloading method | |
CN111953785A (en) | Data transmission method, system and server | |
CN114338769A (en) | Access request processing method and device | |
CN110798512A (en) | Centralized data pushing method, intelligent terminal and storage medium | |
CN110417876A (en) | Node server and main control device in session method, distributed system | |
CN103001989A (en) | Parameter receiving method and system | |
CN109889406A (en) | For managing method, apparatus, equipment and the storage medium of network connection | |
CN111131470B (en) | Terminal device, data processing method thereof and data processing system | |
CN109981778B (en) | Method, device, equipment and storage medium for realizing service of content distribution network | |
CN112925946B (en) | Service data storage method and device and electronic equipment | |
CN114257503A (en) | Method, server, system and storage medium for accelerating domain name deployment | |
CN104735097A (en) | Information collecting method and system | |
CN114020412A (en) | Message processing method, device, equipment and storage medium | |
CN110958240A (en) | Message subscription system and method | |
CN110099208B (en) | Method and device for cross-level and cross-domain upgrading of camera in video monitoring system | |
CN110891247B (en) | Method, system, equipment and medium for client stateless access cluster |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200214 |
|
RJ01 | Rejection of invention patent application after publication |