CN110445869B - Content publishing method, terminal and server based on distributed subscription - Google Patents

Content publishing method, terminal and server based on distributed subscription Download PDF

Info

Publication number
CN110445869B
CN110445869B CN201910742799.4A CN201910742799A CN110445869B CN 110445869 B CN110445869 B CN 110445869B CN 201910742799 A CN201910742799 A CN 201910742799A CN 110445869 B CN110445869 B CN 110445869B
Authority
CN
China
Prior art keywords
content
node
server
published
subscription
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
CN201910742799.4A
Other languages
Chinese (zh)
Other versions
CN110445869A (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN201910742799.4A priority Critical patent/CN110445869B/en
Publication of CN110445869A publication Critical patent/CN110445869A/en
Application granted granted Critical
Publication of CN110445869B publication Critical patent/CN110445869B/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
    • 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/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a content publishing method, a terminal and a server based on distributed subscription, wherein the method comprises the following steps: receiving release information transmitted by a user terminal; and transmitting the publishing information to a corresponding subscription node server so that the subscription node server acquires publishing content resources from the resource storage node and updates a system file of the subscription node server, wherein the publishing content resources are obtained by storing the publishing content resources to the resource storage node after the user terminal receives the publishing content resources transmitted by the user.

Description

Content publishing method, terminal and server based on distributed subscription
Technical Field
The present invention relates to the technical field of content publishing management, and in particular, to a content publishing method, a terminal and a server based on distributed subscription.
Background
With the rapid development of the internet, company services are also expanding rapidly, website functions and user data are expanding rapidly, and various new services and new requirements are coming in continuously, and the website server needs to be updated systematically through content publishing, so as to improve user experience. The existing content publishing management scheme has the problems of low content publishing speed, poor flexibility and high operation and maintenance cost.
Disclosure of Invention
The invention aims to provide a content publishing method based on distributed subscription, which aims to deliver content to a user quickly, enhance the flexibility of a system and reduce the maintenance cost of a website. It is another object of the present invention to provide a distributed collaboration server. It is still another object of the present invention to provide a user terminal. It is yet another object of the present invention to provide a subscribing node server.
In order to achieve the above object, in one aspect, the present invention discloses a content publishing method based on distributed subscriptions, including:
receiving release information transmitted by a user terminal;
and transmitting the publishing information to a corresponding subscription node server so that the subscription node server acquires publishing content resources from the resource storage node and updates a system file of the subscription node server, wherein the publishing content resources are obtained by storing the publishing content resources in the resource storage node after the user terminal receives the publishing content resources transmitted by the user.
Preferably, the method further comprises:
acquiring a pre-validated content page formed by the subscription node server according to the updated system file;
comparing the pre-validated content page with the corresponding published content resource, if the comparison is successful, returning publishing success information to the subscription node server so that the subscription node server generates a formal validated content page according to the updated system file; if the comparison fails, marking the subscription node server as a node to be published and recording the failure times;
and sequentially determining whether all the subscription node servers have the node marks to be published, if so, repeatedly acquiring the published content resources and updating the system files of the subscription node servers until all the subscription node servers have no node marks to be published or the failure times exceed the preset times.
Preferably, the method further comprises:
and when the failure times exceed the preset times, newly building a subscription node server and sending release information to the newly built subscription node server so that the newly built subscription node server acquires the release content resource from the resource storage node and updates the system file of the newly built node server.
Preferably, the method further comprises:
receiving a return updating request transmitted by a subscription node server;
and sending resource storage node information storing the historical version release content resources corresponding to the returned updating request to the subscription node server, so that the subscription node server acquires the historical version release content resources according to the resource storage node information and updates the system file.
Preferably, the method further comprises, before transmitting the publishing information to the corresponding subscribing node server to make the subscribing node server obtain the publishing content resource from the resource storage node and update the system file of the subscribing node server, before:
and transmitting the release information to a preview node server so that the preview node server acquires the release content resource from the resource storage node and updates a system file of the preview node server, forms a preview content page according to the updated system file, and displays the preview content page to a user.
The invention also discloses a content publishing method based on distributed subscription, which comprises the following steps:
receiving a release content resource and release information transmitted by a user;
and storing the published content resources to the resource storage nodes, and sending the published information to a distributed cooperation server so that the distributed cooperation server transmits the published information to a corresponding subscription node server, so that the subscription node server acquires the published content resources from the resource storage nodes and updates system files of the subscription node server.
Preferably, the receiving the release content resource and the release information transmitted by the user specifically includes:
displaying a release content editing interface to a user;
and forming release content resources and release information according to the release content and the node configuration information input by the user through the release content editing interface.
Preferably, the forming of the release content resource and the release information according to the release content and the node configuration information input by the user through the release content editing interface specifically includes:
forming at least one version of published content resource according to the published content input by a user through a content editing interface;
and determining the version of the published content resource corresponding to each subscription node server according to the node configuration information set by the user and forming published information.
Preferably, the determining, according to the node configuration information set by the user, the version of the published content resource corresponding to each subscription node server and forming the published information specifically includes:
and determining the node information of all the subscription node servers according to the node configuration information set by the user, and determining the version of the released content resource corresponding to the subscription node server according to at least one of the user information, the area where the user is located, the random user and the user proportion in the node information of the subscription node servers.
The invention also discloses a content publishing method based on distributed subscription, which comprises the following steps:
receiving release information sent by a distributed collaboration server;
and acquiring the release content resource from the resource storage node according to the release information and updating the system file, wherein the release content resource and the release information are the release content resource and the release information transmitted by the user terminal for the user terminal, the release content resource is stored in the resource storage node, and the release information is sent to the distributed cooperation server so as to be obtained by the distributed cooperation server.
Preferably, the method further comprises:
a pre-validated content page is formed according to the updated system file;
transmitting the pre-validation content page to a distributed cooperative server so that the distributed cooperative server compares the pre-validation content page with corresponding published content resources, and if the comparison is successful, returning publishing success information to a subscription node server so that the subscription node server generates a formal validation content page according to the updated system file; if the comparison fails, marking the subscription node server as a node to be published and recording the failure times;
and sequentially determining whether all the subscription node servers have the node marks to be published, repeatedly acquiring the published content resources and updating the system files of the subscription node servers until all the subscription node servers have no node marks to be published or the failure times exceed the preset times.
Preferably, the method further comprises:
forming a return updating request according to a return updating instruction of a user, and transmitting the return updating request to a distributed collaboration server;
and receiving resource storage node information which is transmitted by the distributed cooperative server and stores the historical version release content resources corresponding to the return updating request, so that the subscription node server acquires the historical version release content resources according to the resource storage node information and updates the system file.
The invention also discloses a distributed collaboration server, comprising:
the information processing unit is used for receiving the release information transmitted by the user terminal;
and the content publishing control unit is used for transmitting the publishing information to the corresponding subscription node server so that the subscription node server acquires the publishing content resources from the resource storage node and updates the system file of the subscription node server, wherein the publishing content resources are obtained by storing the publishing content resources in the resource storage node after the user terminal receives the publishing content resources transmitted by the user.
The invention also discloses a user terminal, comprising:
the information input unit is used for receiving the release content resource and the release information transmitted by the user;
and the information forming unit is used for storing the published content resources to the resource storage nodes and sending the published information to the distributed cooperation servers so that the distributed cooperation servers transmit the published information to corresponding subscription node servers, and the subscription node servers acquire the published content resources from the resource storage nodes and update system files of the subscription node servers.
The invention also discloses a subscription node server, comprising:
the information receiving unit is used for receiving the release information sent by the distributed cooperation server;
and the content publishing unit is used for acquiring a publishing content resource from a resource storage node according to the publishing information and updating a system file, wherein the publishing content resource and the publishing information are used for a user terminal to receive the publishing content resource and the publishing information transmitted by a user, store the publishing content resource to the resource storage node and send the publishing information to a distributed collaboration server so that the publishing information can be obtained by the distributed collaboration server.
The invention also discloses a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor,
the processor, when executing the program, implements the method as described above.
The invention also discloses a computer-readable medium, having stored thereon a computer program,
which when executed by a processor implements the method as described above.
According to the method, the published content resources to be published of the user are stored in the resource storage node, and the subscription node server to be updated is determined by the distributed collaboration server according to the publishing information formed by user setting, so that the subscription node server can access the resource storage node to obtain the published content resources, and the system file is updated according to the published content resources to realize the publishing of the new content page. The invention carries out centralized control on content release through the distributed collaboration server, thereby realizing the purposes of rapidly delivering content to users, enhancing the flexibility of the system and reducing the maintenance cost of the website.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a specific embodiment of a content publishing method based on distributed subscription according to the present invention;
FIG. 2 is a second flowchart of a specific embodiment of a distributed subscription-based content publishing method according to the present invention;
FIG. 3 is a third flowchart illustrating a third embodiment of a distributed subscription-based content publishing method according to the present invention;
FIG. 4 is a fourth flowchart illustrating a content publishing method based on distributed subscriptions according to an embodiment of the present invention;
FIG. 5 is a flow chart showing a fifth embodiment of a content publishing method based on distributed subscription according to the present invention;
FIG. 6 is a flowchart illustrating a sixth embodiment of a content publishing method based on distributed subscriptions according to the present invention;
FIG. 7 is a seventh flowchart of a specific embodiment of a distributed subscription-based content publishing method according to the present invention;
FIG. 8 is a flowchart illustrating an eighth embodiment of a distributed subscription-based content publishing method of the present invention;
FIG. 9 is a ninth flowchart illustrating a method for content distribution based on distributed subscription according to an embodiment of the present invention;
FIG. 10 is a flow chart showing a tenth embodiment of a distributed subscription-based content publishing method of the present invention;
FIG. 11 is a flow chart showing an eleventh embodiment of a distributed subscription-based content publishing method of the present invention;
FIG. 12 is a flow chart showing a twelfth embodiment of a distributed subscription-based content publishing method of the present invention;
FIG. 13 is a block diagram illustrating a distributed collaboration server in accordance with an embodiment of the present invention;
FIG. 14 is a block diagram illustrating one embodiment of a user terminal of the present invention;
FIG. 15 is a block diagram illustrating a specific embodiment of a subscribing node server of the present invention;
FIG. 16 shows a schematic block diagram of a computer device suitable for use in implementing embodiments of the present invention.
Detailed Description
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 only a part of the embodiments of the present invention, and not all of the 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 invention.
According to one aspect of the invention, the embodiment discloses a content publishing method (distributed collaboration server) based on distributed subscription. As shown in fig. 1, in this embodiment, the content publishing method based on distributed subscription includes:
s1100: and receiving the release information transmitted by the user terminal.
S1200: and transmitting the publishing information to a corresponding subscription node server so that the subscription node server acquires publishing content resources from the resource storage node and updates a system file of the subscription node server, wherein the publishing content resources are obtained by storing the publishing content resources in the resource storage node after the user terminal receives the publishing content resources transmitted by the user.
According to the method, the published content resources to be published of the user are stored in the resource storage node, and the subscription node server to be updated is determined by the distributed collaboration server according to the publishing information formed by user setting, so that the subscription node server can access the resource storage node to obtain the published content resources, and the system file is updated according to the published content resources to realize the publishing of the new content page. The invention carries out centralized control on content release through the distributed collaboration server, thereby realizing the purposes of rapidly delivering content to users, enhancing the flexibility of the system and reducing the maintenance cost of the website.
The user terminal can realize man-machine interaction with a user, can receive published content resources and published information transmitted by the user, stores the published content resources to the resource storage node, and transmits the published information to the distributed cooperation server so that the distributed cooperation server transmits the published information to a corresponding subscription node server, so that the subscription node server acquires the published content resources from the resource storage node and updates a system file of the subscription node server.
Preferably, the user terminal can display the release content editing interface to the user, and form release content resources and release information according to the release content and the node configuration information input by the user through the release content editing interface. Specifically, the user terminal may include a content editing apparatus and a content message publishing apparatus, the user may operate using a published content editing interface provided by the content editing apparatus and generate a content resource to be published, after a record to be published is generated, the user may further set information such as a subscription node server and a configuration publishing manner through the content message publishing apparatus, the content message publishing apparatus forms publishing information according to node configuration information input by the user and sends the publishing information to the distributed collaboration server, and the distributed collaboration server may store the received publishing information in a publishing task list so as to obtain the publishing information when the content is published.
The distributed content resources formed by the user terminal need to be stored in the resource storage nodes, the user terminal can directly store the formed distributed content resources to the corresponding resource storage nodes, the distributed content resources can also be sent to the distributed collaboration server firstly, and the distributed collaboration server can store the distributed content resources to the corresponding resource storage nodes according to the needs, so that the distributed collaboration server can conveniently perform centralized management and control on content distribution.
In an alternative embodiment, the distributed collaboration servers may adopt a subscription publishing mode based on the distributed coordinator, and each subscription node server may establish a long connection with the distributed collaboration server when starting up. Through a long-connection communication mode, the subscription node server can monitor the change condition of the published information in the distributed cooperation server in real time, and when the change of the published information in the distributed cooperation server is monitored, the subscription node server can acquire the published content resource of the change from the resource storage node according to the published information for publishing. In an optional other embodiment, the distributed collaboration server may also actively push the publishing information to the subscribing node server, so that the subscribing node server can quickly update the system file to provide new services and functions.
In a preferred embodiment, as shown in fig. 2, the method further comprises:
s1310: and acquiring a pre-validated content page formed by the subscription node server according to the updated system file.
S1320: comparing the pre-validated content page with the corresponding published content resource, if the comparison is successful, returning publishing success information to the subscription node server so that the subscription node server generates a formal validated content page according to the updated system file; if the comparison fails, the subscribing node server is marked as the node to be published and the failure times are recorded.
S1330: and sequentially determining whether all the subscription node servers have the node marks to be published, if so, repeatedly acquiring the published content resources and updating the system files of the subscription node servers until all the subscription node servers have no node marks to be published or the failure times exceed the preset times.
It is understood that the content publishing approach of the distributed collaboration server may also support a rolling publishing mode. By setting the subscription node server, the subscription node server forms two forms of content pages according to the updated system file after acquiring the published content resources, namely a pre-effective content page and a formal effective content page. The user outside the pre-effective content page is invisible, the designated user inside the system can access the pre-effective content page, and all the users in the formal effective content page in the formal effective state are visible.
And when the published content resources are published to one subscription node server, a pre-effective content page can be formed according to the updated system file. The distributed collaboration server can obtain the pre-effective content page generated by the subscription node server, compare the pre-effective content page with the published content resources, if the comparison is successful, inform the subscription node server to switch the page state to an effective state and publish the page state to the outside, namely, generate a formal effective content page according to the updated system file and publish and display the page to the user.
In the rolling publishing mode, assuming that there are n subscription node servers, the distributed collaboration server may sequentially traverse all the subscription node servers to be upgraded, and each subscription node server is upgraded sequentially. After the No. 1 subscription node server releases the error-free content, the distributed coordination device informs the No. 1 subscription node server to formally release a formally effective content page to the outside and informs the No. 2 subscription node server to release the content page (at this time, 1 subscription node server is an updated content page, and n-1 subscription node servers are original pages), and after the No. 2 subscription node server releases the error-free content page, the No. 3 subscription node server is notified to release the content page until all the subscription node servers finish releasing the content page. And if the 1 subscription node server fails to publish, marking the subscription node server as a node to be published, and recording the failure times. If all the subscribing node servers in the round are successfully published, the rolling publishing is finished. And if the nodes to be published exist, continuously traversing the subscription node servers to be published in the second round (the subscription node servers in the second round all fail to publish for 1 time), and the method is the same as that in the first round.
In a preferred embodiment, as shown in fig. 3, the method further comprises:
s1340: and when the failure times exceed the preset times, newly building a subscription node server and sending release information to the newly built subscription node server so that the newly built subscription node server acquires the release content resource from the resource storage node and updates the system file of the newly built node server.
The distributed collaboration server can set preset times, and when the number of traversal turns reaches the preset times, a failed subscription node server still exists, content publishing is stopped or a newly built subscription node server with the same number as the failed subscription node server is automatically created. Preferably, in order to ensure the success rate of content distribution after the new creation of the subscribing node servers, a new creating subscribing node server with a number greater than that of the failed subscribing node servers may be selected, for example, a new creating subscribing node server with a number greater than that of the failed subscribing node servers by two may be added. For example, a new subscription node server may be configured by creating a new pod or other equivalent manners, and then sending publishing information to the new subscription node server, so that the new subscription node server obtains the publishing content resource from the resource storage node and updates a system file of the new subscription node server. And if one new subscription node server is successfully published, one failed node is removed from the subscription node server. And deleting redundant newly-built subscription node servers when the successful number of the newly-built subscription node servers is larger than or equal to the number of the nodes.
In a preferred embodiment, as shown in fig. 4, the method further comprises:
s1410: and receiving a returned updating request transmitted by the server of the subscription node.
S1420: and sending resource storage node information storing the historical version release content resources corresponding to the returned updating request to the subscription node server, so that the subscription node server acquires the historical version release content resources according to the resource storage node information and updates the system file.
The distributed collaboration server also supports fast fallback to a specified historical version. The resource storage node can store m latest versions of the published content resources (for example, m can be selected to be 5), and the value of m can be adjusted according to the system requirements. Under the scenes of canceling after release and the like, the distributed cooperative server can coordinate the subscription node server to realize quick rollback. The distributed collaboration server can send resource storage node information of the corresponding historical version release content resource to the subscription node server, and then the subscription node server can acquire the historical release content resource of the version to be restored from the corresponding resource storage node and update the system file, so that a page formed according to the system file can be quickly restored to the historical version, and the restoration of the update is supported.
In a preferred embodiment, as shown in fig. 5, the method further comprises, before S1200, the step of:
s1110: and transmitting the release information to a preview node server so that the preview node server acquires the release content resource from the resource storage node and updates a system file of the preview node server, forms a preview content page according to the updated system file, and displays the preview content page to a user.
The distributed collaboration server may also support a preview mechanism, where the presentation of the preview node server is logically consistent with the presentation of the subscribing node server. The content may be published to the preview node server prior to formal publication. The system publisher can check the display effect, the display content and the like on the preview node server in advance, so that the formal publishing effect is ensured, and the publishing error rate is reduced.
Based on the same principle, this embodiment also discloses a content publishing method (user terminal) based on distributed subscription, as shown in fig. 6, the method includes:
s2100: and receiving the published content resources and the published information transmitted by the user.
S2200: and storing the published content resources to the resource storage nodes, and sending the published information to a distributed cooperation server so that the distributed cooperation server transmits the published information to a corresponding subscription node server, so that the subscription node server acquires the published content resources from the resource storage nodes and updates system files of the subscription node server.
In a preferred embodiment, as shown in fig. 7, the receiving the published content resource and the published information transmitted by the user specifically includes:
s2300: and displaying the published content editing interface to the user.
S2400: and forming release content resources and release information according to the release content and the node configuration information input by the user through the release content editing interface.
In a preferred embodiment, as shown in fig. 8, the S2400 may specifically include:
s2410: and forming at least one version of the published content resource according to the published content input by the user through the content editing interface.
S2420: and determining the version of the published content resource corresponding to each subscription node server according to the node configuration information set by the user and forming published information.
In a preferred embodiment, as shown in fig. 9, the S2420 may specifically include:
s2421: and determining the node information of all the subscription node servers according to the node configuration information set by the user, and determining the version of the released content resource corresponding to the subscription node server according to at least one of the user information, the area where the user is located, the random user and the user proportion in the node information of the subscription node servers.
Because the principle of solving the problems by the method is similar to that of the method, the implementation of the method can be referred to the implementation of the method, and details are not repeated herein.
Based on the same principle, as shown in fig. 10, this embodiment further discloses a content publishing method (subscribing node server) based on distributed subscription, where the method includes:
s3100: and receiving the release information sent by the distributed cooperation server.
S3200: and acquiring the release content resource from the resource storage node according to the release information and updating the system file, wherein the release content resource and the release information are the release content resource and the release information transmitted by the user terminal for the user terminal, the release content resource is stored in the resource storage node, and the release information is sent to the distributed cooperation server so as to be obtained by the distributed cooperation server.
In a preferred embodiment, as shown in fig. 11, the method further comprises:
s3310: and forming a pre-effective content page according to the updated system file.
S3320: transmitting the pre-validation content page to a distributed cooperative server so that the distributed cooperative server compares the pre-validation content page with corresponding published content resources, and if the comparison is successful, returning publishing success information to a subscription node server so that the subscription node server generates a formal validation content page according to the updated system file; if the comparison fails, the subscribing node server is marked as the node to be published and the failure times are recorded.
S3330: and sequentially determining whether all the subscription node servers have the node marks to be published, repeatedly acquiring the published content resources and updating the system files of the subscription node servers until all the subscription node servers have no node marks to be published or the failure times exceed the preset times.
In a preferred embodiment, as shown in fig. 12, the method further comprises:
s3410: and forming a return updating request according to a return updating instruction of a user, and transmitting the return updating request to the distributed collaboration server.
S3420: and receiving resource storage node information which is transmitted by the distributed cooperative server and stores the historical version release content resources corresponding to the return updating request, so that the subscription node server acquires the historical version release content resources according to the resource storage node information and updates the system file.
Because the principle of solving the problems by the method is similar to that of the method, the implementation of the method can be referred to the implementation of the method, and details are not repeated herein.
Based on the same principle, the invention also discloses a distributed collaboration server, as shown in fig. 13, the server includes an information processing unit 11 and a content distribution control unit 12.
The information processing unit 11 is used for receiving the release information transmitted by the user terminal;
the content publishing control unit 12 is configured to transmit the publishing information to a corresponding subscribing node server so that the subscribing node server obtains a publishing content resource from the resource storage node and updates a system file of the subscribing node server, where the publishing content resource is obtained by storing, by a user terminal, the publishing content resource transmitted by a user to the resource storage node after receiving the publishing content resource.
Since the principle of the server to solve the problem is similar to the above method, the implementation of the server may refer to the implementation of the above method, and is not described herein again.
Based on the same principle, the invention also discloses a user terminal. As shown in fig. 14, the user terminal includes an information input unit 21 and an information forming unit 22.
The information input unit 21 is used for receiving the publishing content resource and the publishing information transmitted by the user.
The information forming unit 22 is configured to store the published content resources to the resource storage nodes, and send the published information to a distributed collaboration server, so that the distributed collaboration server transmits the published information to corresponding subscription node servers, so that the subscription node servers acquire the published content resources from the resource storage nodes and update system files of the subscription node servers.
Since the principle of the terminal to solve the problem is similar to the method, the implementation of the terminal may refer to the implementation of the method, and is not described herein again.
Based on the same principle, the invention also discloses a subscription node server. As shown in fig. 15, the subscribing node server includes an information receiving unit 31 and a content publishing unit 32.
The information receiving unit 31 is configured to receive the release information sent by the distributed collaboration server.
The content publishing unit 32 is configured to obtain a publishing content resource from a resource storage node according to the publishing information and update a system file, where the publishing content resource and the publishing information are a publishing content resource and publishing information transmitted by a user received by a user terminal, store the publishing content resource in the resource storage node, and send the publishing information to a distributed collaboration server so that the publishing information is obtained by the distributed collaboration server.
Since the principle of the server to solve the problem is similar to the above method, the implementation of the server may refer to the implementation of the above method, and is not described herein again.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer device, which may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
In a typical example, the computer device specifically comprises a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method performed by the client as described above when executing the program, or the processor implementing the method performed by the server as described above when executing the program.
Referring now to FIG. 16, shown is a schematic diagram of a computer device 600 suitable for use in implementing embodiments of the present application.
As shown in fig. 16, the computer apparatus 600 includes a Central Processing Unit (CPU)601 which can perform various appropriate works and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM)) 603. In the RAM603, various programs and data necessary for the operation of the system 600 are also stored. The CPU601, ROM602, and RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output section 607 including a Cathode Ray Tube (CRT), a liquid crystal feedback (LCD), and the like, and a speaker and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 606 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted as necessary on the storage section 608.
In particular, according to an embodiment of the present invention, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the invention include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should also be noted that 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 like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (15)

1. A content publishing method based on distributed subscription is characterized by comprising the following steps:
receiving release information transmitted by a user terminal;
transmitting the publishing information to a corresponding subscription node server so that the subscription node server acquires publishing content resources from a resource storage node and updates a system file of the subscription node server, wherein the publishing content resources are obtained by storing the publishing content resources in the resource storage node after a user terminal receives the publishing content resources transmitted by a user;
the method further comprises the following steps:
acquiring a pre-validated content page formed by the subscription node server according to the updated system file;
comparing the pre-validated content page with the corresponding published content resource, if the comparison is successful, returning publishing success information to the subscription node server so that the subscription node server generates a formal validated content page according to the updated system file; if the comparison fails, marking the subscription node server as a node to be published and recording the failure times;
and sequentially determining whether all the subscription node servers have the node marks to be published, if so, repeatedly acquiring the published content resources and updating the system files of the subscription node servers until all the subscription node servers have no node marks to be published or the failure times exceed the preset times.
2. The content distribution method according to claim 1, further comprising:
and when the failure times exceed the preset times, newly building a subscription node server and sending release information to the newly built subscription node server so that the newly built subscription node server acquires the release content resource from the resource storage node and updates the system file of the newly built node server.
3. The content distribution method according to claim 1, further comprising:
receiving a return updating request transmitted by a subscription node server;
and sending resource storage node information storing the historical version release content resources corresponding to the returned updating request to the subscription node server, so that the subscription node server acquires the historical version release content resources according to the resource storage node information and updates the system file.
4. The content publishing method according to claim 1, further comprising, before transmitting the publishing information to the corresponding subscribing node server to enable the subscribing node server to obtain a publishing content resource from the resource storage node and update a system file of the subscribing node server, before:
and transmitting the release information to a preview node server so that the preview node server acquires the release content resource from the resource storage node and updates a system file of the preview node server, forms a preview content page according to the updated system file, and displays the preview content page to a user.
5. A content publishing method based on distributed subscription is characterized by comprising the following steps:
receiving a release content resource and release information transmitted by a user;
storing the published content resources to the resource storage nodes, and sending the published information to a distributed cooperation server so that the distributed cooperation server transmits the published information to a corresponding subscription node server, so that the subscription node server acquires the published content resources from the resource storage nodes and updates system files of the subscription node server;
the method further comprises the following steps:
the distributed cooperative server acquires a pre-effective content page formed by the subscription node server according to the updated system file; comparing the pre-validated content page with the corresponding published content resource, if the comparison is successful, returning publishing success information to the subscription node server so that the subscription node server generates a formal validated content page according to the updated system file; if the comparison fails, marking the subscription node server as a node to be published and recording the failure times; and sequentially determining whether all the subscription node servers have the node marks to be published, if so, repeatedly acquiring the published content resources and updating the system files of the subscription node servers until all the subscription node servers have no node marks to be published or the failure times exceed the preset times.
6. The content distribution method according to claim 5, wherein the receiving of the distribution content resource and the distribution information transmitted by the user specifically includes:
displaying a release content editing interface to a user;
and forming release content resources and release information according to the release content and the node configuration information input by the user through the release content editing interface.
7. The content publishing method according to claim 6, wherein the forming of the published content resource and the published information according to the published content and the node configuration information input by the user through the published content editing interface specifically comprises:
forming at least one version of published content resource according to the published content input by a user through a content editing interface;
and determining the version of the published content resource corresponding to each subscription node server according to the node configuration information set by the user and forming published information.
8. The content publishing method according to claim 7, wherein the determining, according to the node configuration information set by the user, the version of the published content resource corresponding to each subscribing node server and forming the publishing information specifically comprises:
and determining the node information of all the subscription node servers according to the node configuration information set by the user, and determining the version of the released content resource corresponding to the subscription node server according to at least one of the user information, the area where the user is located, the random user and the user proportion in the node information of the subscription node servers.
9. A content publishing method based on distributed subscription is characterized by comprising the following steps:
receiving release information sent by a distributed collaboration server;
acquiring a release content resource from a resource storage node according to the release information and updating a system file, wherein the release content resource and the release information are the release content resource and the release information transmitted by a user terminal receiving user, storing the release content resource to the resource storage node, and sending the release information to a distributed cooperation server so as to be obtained by the distributed cooperation server;
the method further comprises the following steps:
a pre-validated content page is formed according to the updated system file;
transmitting the pre-validation content page to a distributed cooperative server so that the distributed cooperative server compares the pre-validation content page with corresponding published content resources, and if the comparison is successful, returning publishing success information to a subscription node server so that the subscription node server generates a formal validation content page according to the updated system file; if the comparison fails, marking the subscription node server as a node to be published and recording the failure times;
and sequentially determining whether all the subscription node servers have the node marks to be published, repeatedly acquiring the published content resources and updating the system files of the subscription node servers until all the subscription node servers have no node marks to be published or the failure times exceed the preset times.
10. The content distribution method according to claim 9, wherein the method further comprises:
forming a return updating request according to a return updating instruction of a user, and transmitting the return updating request to a distributed collaboration server;
and receiving resource storage node information which is transmitted by the distributed cooperative server and stores the historical version release content resources corresponding to the return updating request, so that the subscription node server acquires the historical version release content resources according to the resource storage node information and updates the system file.
11. A distributed collaboration server, comprising:
the information processing unit is used for receiving the release information transmitted by the user terminal;
the content publishing control unit is used for transmitting the publishing information to the corresponding subscribing node server so that the subscribing node server acquires the publishing content resources from the resource storage node and updates the system file of the subscribing node server, wherein the publishing content resources are obtained by storing the publishing content resources in the resource storage node after the user terminal receives the publishing content resources transmitted by the user;
the distributed collaboration server is further used for acquiring a pre-validated content page formed by the subscription node server according to the updated system file; comparing the pre-validated content page with the corresponding published content resource, if the comparison is successful, returning publishing success information to the subscription node server so that the subscription node server generates a formal validated content page according to the updated system file; if the comparison fails, marking the subscription node server as a node to be published and recording the failure times; and sequentially determining whether all the subscription node servers have the node marks to be published, if so, repeatedly acquiring the published content resources and updating the system files of the subscription node servers until all the subscription node servers have no node marks to be published or the failure times exceed the preset times.
12. A user terminal, comprising:
the information input unit is used for receiving the release content resource and the release information transmitted by the user;
the information forming unit is used for storing the published content resources to the resource storage nodes and sending the published information to a distributed cooperation server so that the distributed cooperation server transmits the published information to a corresponding subscription node server, and the subscription node server acquires the published content resources from the resource storage nodes and updates system files of the subscription node server;
the distributed collaboration server is further used for acquiring a pre-validated content page formed by the subscription node server according to the updated system file; comparing the pre-validated content page with the corresponding published content resource, if the comparison is successful, returning publishing success information to the subscription node server so that the subscription node server generates a formal validated content page according to the updated system file; if the comparison fails, marking the subscription node server as a node to be published and recording the failure times; and sequentially determining whether all the subscription node servers have the node marks to be published, if so, repeatedly acquiring the published content resources and updating the system files of the subscription node servers until all the subscription node servers have no node marks to be published or the failure times exceed the preset times.
13. A subscribing node server, comprising:
the information receiving unit is used for receiving the release information sent by the distributed cooperation server;
the content publishing unit is used for acquiring a publishing content resource from a resource storage node according to the publishing information and updating a system file, wherein the publishing content resource and the publishing information are the publishing content resource and the publishing information transmitted by a user terminal receiving user, the publishing content resource is stored in the resource storage node, and the publishing information is sent to a distributed collaboration server so as to be obtained by the distributed collaboration server;
the subscription node server is further used for forming a pre-effective content page according to the updated system file; transmitting the pre-validation content page to a distributed cooperative server so that the distributed cooperative server compares the pre-validation content page with corresponding published content resources, and if the comparison is successful, returning publishing success information to a subscription node server so that the subscription node server generates a formal validation content page according to the updated system file; if the comparison fails, marking the subscription node server as a node to be published and recording the failure times; and sequentially determining whether all the subscription node servers have the node marks to be published, repeatedly acquiring the published content resources and updating the system files of the subscription node servers until all the subscription node servers have no node marks to be published or the failure times exceed the preset times.
14. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor,
the processor, when executing the program, implements the method of any of claims 1-10.
15. A computer-readable medium, having stored thereon a computer program,
the program when executed by a processor implementing the method according to any one of claims 1-10.
CN201910742799.4A 2019-08-13 2019-08-13 Content publishing method, terminal and server based on distributed subscription Active CN110445869B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910742799.4A CN110445869B (en) 2019-08-13 2019-08-13 Content publishing method, terminal and server based on distributed subscription

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910742799.4A CN110445869B (en) 2019-08-13 2019-08-13 Content publishing method, terminal and server based on distributed subscription

Publications (2)

Publication Number Publication Date
CN110445869A CN110445869A (en) 2019-11-12
CN110445869B true CN110445869B (en) 2022-02-15

Family

ID=68434803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910742799.4A Active CN110445869B (en) 2019-08-13 2019-08-13 Content publishing method, terminal and server based on distributed subscription

Country Status (1)

Country Link
CN (1) CN110445869B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113497719B (en) * 2020-03-20 2024-06-21 广州汽车集团股份有限公司 Service-oriented vehicle-mounted ECU software upgrading method and system and related equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021844A (en) * 2006-02-15 2007-08-22 北京北大方正电子有限公司 System and method for real-time issuing web site content
CN101997896A (en) * 2009-08-19 2011-03-30 中兴通讯股份有限公司 Method and system for issuing document
CN102193933A (en) * 2010-03-10 2011-09-21 北大方正集团有限公司 Method and system for webpage editing
CN102508722A (en) * 2011-12-02 2012-06-20 中科方德软件有限公司 Inter-process communication method under embedded environment
CN102609526A (en) * 2012-02-13 2012-07-25 工购电子商务(上海)有限公司 Internet website content management system
CN103209162A (en) * 2012-01-16 2013-07-17 中国科学院声学研究所 Method and device for deploying Web-type business
CN105488158A (en) * 2015-11-30 2016-04-13 何磊 Method and device for processing file
CN107872334A (en) * 2016-09-23 2018-04-03 中兴通讯股份有限公司 The method and device that gray scale upgrades in a kind of micro services architecture system
CN108282529A (en) * 2018-01-23 2018-07-13 百度在线网络技术(北京)有限公司 Publication and system, the method and apparatus for subscribing to data
CN108880851A (en) * 2017-11-07 2018-11-23 北京视联动力国际信息技术有限公司 A kind of method and interactive system that configuration updates
CN110069758A (en) * 2018-01-19 2019-07-30 北京搜狗科技发展有限公司 A kind of dissemination method of multimedia messages, device and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021844A (en) * 2006-02-15 2007-08-22 北京北大方正电子有限公司 System and method for real-time issuing web site content
CN101997896A (en) * 2009-08-19 2011-03-30 中兴通讯股份有限公司 Method and system for issuing document
CN102193933A (en) * 2010-03-10 2011-09-21 北大方正集团有限公司 Method and system for webpage editing
CN102508722A (en) * 2011-12-02 2012-06-20 中科方德软件有限公司 Inter-process communication method under embedded environment
CN103209162A (en) * 2012-01-16 2013-07-17 中国科学院声学研究所 Method and device for deploying Web-type business
CN102609526A (en) * 2012-02-13 2012-07-25 工购电子商务(上海)有限公司 Internet website content management system
CN105488158A (en) * 2015-11-30 2016-04-13 何磊 Method and device for processing file
CN107872334A (en) * 2016-09-23 2018-04-03 中兴通讯股份有限公司 The method and device that gray scale upgrades in a kind of micro services architecture system
CN108880851A (en) * 2017-11-07 2018-11-23 北京视联动力国际信息技术有限公司 A kind of method and interactive system that configuration updates
CN110069758A (en) * 2018-01-19 2019-07-30 北京搜狗科技发展有限公司 A kind of dissemination method of multimedia messages, device and storage medium
CN108282529A (en) * 2018-01-23 2018-07-13 百度在线网络技术(北京)有限公司 Publication and system, the method and apparatus for subscribing to data

Also Published As

Publication number Publication date
CN110445869A (en) 2019-11-12

Similar Documents

Publication Publication Date Title
JP2017084334A (en) Method and device for extracting virtual machine image file
CN102857578B (en) A kind of file uploading method of network hard disc, system and net dish client
CN111240614B (en) Screen projection processing method, device and equipment
EP3244320A1 (en) File path storing and local file accessing method and device
CN110875871A (en) Management method of instant messaging application and electronic equipment
CN112346717A (en) Micro service system creating method, device, equipment, medium and micro service system
CN104331343A (en) File backup method and system
CN112953908A (en) Network isolation configuration method, device and system
CN104639973B (en) Information pushing method and device
CN110445869B (en) Content publishing method, terminal and server based on distributed subscription
CN110928887A (en) Data processing method and device
CN104267921A (en) Page display control method and server
CN103179153A (en) Mobile terminal and mobile terminal data backup method based on cloud server
US8635525B2 (en) Systems, methods and computer readable media for creating and updating electronic documents
CN106790635B (en) Cookie information management method and server
CN110677443A (en) Data transmitting and receiving method, transmitting end, receiving end, system and storage medium
CN111367561A (en) Software program remote development method and device
CN115793927A (en) Task list creating method, device, equipment and medium
US20140351084A1 (en) Registration process
CN106211353A (en) Data capture method, device and system
US10785602B2 (en) Information processing method and apparatus
CN110971669B (en) Message notification method, device, server, electronic equipment and readable storage medium
CN113486116A (en) Data synchronization method and device, electronic equipment and computer readable medium
CN110674148A (en) Data updating synchronization method and device for database
EP3203375B1 (en) Method and apparatus for deepening mirror image

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