[go: up one dir, main page]

CN114584618A - Information interaction method, device, equipment, storage medium and system - Google Patents

Information interaction method, device, equipment, storage medium and system Download PDF

Info

Publication number
CN114584618A
CN114584618A CN202011382751.6A CN202011382751A CN114584618A CN 114584618 A CN114584618 A CN 114584618A CN 202011382751 A CN202011382751 A CN 202011382751A CN 114584618 A CN114584618 A CN 114584618A
Authority
CN
China
Prior art keywords
server
data
target data
request
node 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
Application number
CN202011382751.6A
Other languages
Chinese (zh)
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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202011382751.6A priority Critical patent/CN114584618A/en
Publication of CN114584618A publication Critical patent/CN114584618A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General 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 disclosure relates to the technical field of computers, and discloses an information interaction method, device, equipment, storage medium and system. The method comprises the following steps: when the fact that the agent server side meets the preset conditions is monitored, a data acquisition request is sent to the central server side; receiving a data acquisition response sent by the central server, wherein the data acquisition response comprises target data required by the node server to process the user access request; and sending a data storage request to a node server, wherein the data storage request comprises the target data and is used for requesting the node server to store the target data. By the technical scheme, the node server asynchronously acquires the target data in the central server, the redundancy degree of the target data in the node server is reduced, and the processing efficiency of the node server on the user access request is improved.

Description

Information interaction method, device, equipment, storage medium and system
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an information interaction method, apparatus, device, storage medium, and system.
Background
In a Content Delivery Network (CDN) implemented based on Nginx or OpenResty integrating Nginx and lua, there is a central server and a plurality of node servers. The central server is used for uniformly generating a plurality of network access strategies such as an optimization strategy, a black and white list strategy and the like; the node server is used for processing the access request of the user.
At present, the general process of interacting a network access policy between a central server and each node server in a CDN is as follows: when the node server receives an access request initiated by a user side, a policy acquisition request is sent to the central server side, and after the node server receives a network access policy returned by the central server side, the access request of the user side is processed based on the network access policy.
In the above network access policy interaction mode, the node server obtains the network access policy depending on the triggering of the access request of the user terminal, so that the node server repeatedly obtains the same network access policy within a certain time, thereby causing data redundancy; moreover, the node server needs to synchronously process the interaction between the node server and the central server and the user side, so that the processing process of the node server is complex, the processing efficiency of the node server on the access request of the user side is reduced, and the access waiting time of the user side is prolonged.
Disclosure of Invention
To solve the technical problem or at least partially solve the technical problem, the present disclosure provides an information interaction method, apparatus, device, storage medium, and system.
In a first aspect, the present disclosure provides an information interaction method applied to a proxy server, where the method includes:
when the fact that the agent server side meets the preset conditions is monitored, a data acquisition request is sent to the central server side;
receiving a data acquisition response sent by the central server, wherein the data acquisition response comprises target data required by the node server to process the user access request;
and sending a data storage request to a node server, wherein the data storage request comprises the target data and is used for requesting the node server to store the target data.
In some embodiments, the target data is policy data for controlling network access.
In some embodiments, the preset condition includes at least one of arrival of a timing period, completion of a preset event, and reception of an externally transmitted trigger signal.
In some embodiments, the timing period is determined based on an update frequency of the target data in the central server.
In some embodiments, the sending the data storage request to the node server includes:
and if the target data is detected to be updated, sending the data storage request to the node server.
In some embodiments, the data storage request further includes storage location information, where the storage location information is used to determine that a storage location of the target data in the node server is an Nginx shared memory or a cache server.
In a second aspect, the present disclosure further provides an information interaction method applied to a node server, where the method includes:
receiving a data storage request sent by a proxy server, wherein the data storage request comprises target data required by a node server to process a user access request, and the target data is data acquired from a central server when the proxy server meets preset conditions;
and storing the target data.
In some embodiments, said storing said target data comprises:
and if the data storage request comprises storage position information corresponding to the Nginx shared memory, packaging the target data according to a preset data structure, and storing the packaged target data into the Nginx shared memory.
In some embodiments, said storing said target data comprises:
and if the data storage request contains storage position information corresponding to a cache server, storing the target data to the cache server.
In some embodiments, the method further comprises:
receiving a user access request sent by a client;
inquiring and acquiring the target data from the Nginx shared memory or the cache server;
and processing the user access request based on the target data, and feeding back a processing result to the client.
In a third aspect, the present disclosure further provides an information interaction apparatus configured at an agent server, where the apparatus includes:
the data acquisition request sending module is used for sending a data acquisition request to the central server when the condition that the proxy server meets the preset condition is monitored;
a data acquisition response receiving module, configured to receive a data acquisition response sent by the central server, where the data acquisition response includes target data required by the node server to process the user access request;
and the data storage request sending module is used for sending a data storage request to a node server, wherein the data storage request comprises the target data, and the data storage request is used for requesting the node server to store the target data.
In some embodiments, the target data is policy data for controlling network access.
In some embodiments, the preset condition includes at least one of arrival of a timing period, completion of a preset event, and reception of an externally transmitted trigger signal.
In some embodiments, the timing period is determined based on an update frequency of the target data in the central server.
In some embodiments, the data storage request sending module is specifically configured to:
and if the target data is detected to be updated, sending the data storage request to the node server.
In some embodiments, the data storage request further includes storage location information, where the storage location information is used to determine that a storage location of the target data in the node server is an Nginx shared memory or a cache server.
In a fourth aspect, the present disclosure further provides an information interaction apparatus configured at a node server, where the apparatus includes:
the data storage request receiving module is used for receiving a data storage request sent by a proxy server, wherein the data storage request comprises target data required by a node server to process a user access request, and the target data is data acquired from a central server when the proxy server meets a preset condition;
and the data storage module is used for storing the target data.
In some embodiments, the data storage module is specifically configured to:
and if the data storage request comprises storage position information corresponding to the Nginx shared memory, packaging the target data according to a preset data structure, and storing the packaged target data into the Nginx shared memory.
In some embodiments, the data storage module is specifically configured to:
and if the data storage request contains storage position information corresponding to a cache server, storing the target data to the cache server.
In some embodiments, the apparatus further comprises a user request processing module to:
receiving a user access request sent by a client;
inquiring and acquiring the target data from the Nginx shared memory or the cache server;
and processing the user access request based on the target data, and feeding back a processing result to the client.
In a fifth aspect, the present disclosure also provides an electronic device, including:
a processor and a storage device;
the processor is configured to execute the steps of the information interaction method applied to the proxy server according to any embodiment of the present disclosure, or execute the steps of the information interaction method applied to the node server according to any embodiment of the present disclosure, by calling a program or an instruction stored in the storage device.
In a sixth aspect, the present disclosure provides a computer-readable storage medium, on which a program or instructions are stored, the program or instructions causing a computer to execute the steps of the information interaction method applied to the proxy server according to any embodiment of the present disclosure, or execute the steps of the information interaction method applied to the node server according to any embodiment of the present disclosure.
According to the technical scheme provided by the embodiment of the disclosure, the proxy server is added between the central server and the node server, and the proxy server is used for sending the data acquisition request to the central server when the proxy server meets the preset condition so as to request the node server to process the target data required by the user access request from the central server, and after the target data is obtained, the target data is sent to the node server so that the node server can store the target data to the local. Therefore, the node server side asynchronously acquires the target data depending on the data storage request of the proxy server side, and strong coupling between the node server side and the user access request is avoided; moreover, the proxy server side can pull the target data from the central server side to generate a data storage request when the preset conditions are met, so that the redundancy of the target data in the node server side is avoided to a certain extent; in addition, the node server does not need to pull target data from the central server while processing the user access request, and only needs to query the locally stored target data, so that the service processing complexity of the node server is reduced, the processing efficiency of the node server on the user access request is improved, the user access waiting time is reduced, and the user experience is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present disclosure, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic structural diagram of an information interaction system provided by an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a process of information interaction provided by an embodiment of the present disclosure;
fig. 3 is a flowchart of an information interaction method applied to a proxy server according to an embodiment of the present disclosure;
fig. 4 is a flowchart of an information interaction method applied to a node server according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an information interaction apparatus configured at an agent server according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an information interaction apparatus configured at a node server according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, aspects of the present disclosure will be described in further detail below. It should be noted that the embodiments and features of the embodiments of the present disclosure may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced in other ways than those described herein; it is to be understood that the embodiments disclosed in the specification are only a few embodiments of the present disclosure, and not all embodiments.
The information interaction scheme provided by the disclosure is mainly applied to the information interaction process between the central server and the node server in the Internet, and is particularly suitable for the interaction process of target data between the central server and the node server, wherein the target data is generated by the central server and is necessary data used when the node server processes a user access request. For example, the information interaction scheme may be applied to a content distribution network such as a Nginx-based network.
Fig. 1 is a schematic structural diagram of an information interaction system according to an embodiment of the present disclosure. In some embodiments, the information interaction system 100 may be implemented as, or as part of, a Nginx-based content distribution network. As shown in fig. 1, the information interaction system 100 includes a central server 110, at least one agent server 120, and a plurality of node servers 130.
The central server 110 is configured to generate target data required by the node server 130 to process the user access request; and sending a data acquisition response to the proxy server 120 in response to the data acquisition request sent by the proxy server 120. The central server 110 is a server for overall controlling the entire CDN network, and contains control policies/rules required by the CDN network, and can communicate with each proxy server 120 and each node server 130. In some embodiments, the target data is policy data for controlling network access. For example, an optimization policy to improve data access efficiency, a user filtering policy (e.g., a blacklist and whitelist policy) to determine whether a user has permission to access certain data resources, etc.
The proxy server 120 is in communication connection with the central server 110 and the node server 130, and is configured to send a data acquisition request to the central server 110 when the proxy server 120 is monitored to meet a preset condition; receiving a data acquisition response sent by the central server 110, wherein the data acquisition response comprises target data; and sending a data storage request to the node server 130, where the data storage request includes the target data.
The preset condition is a preset condition for triggering the proxy server 120 to send a data acquisition request to the central server 110. In some embodiments, the preset condition includes at least one of arrival of a timing period, completion of a preset event, and reception of an externally transmitted trigger signal. In this embodiment, the data acquisition request may be sent at a fixed time, or sent when the execution of a preset early event is completed, or sent when a trigger signal sent from the outside is received. In some embodiments, the timing period is determined based on the update frequency of the target data in the central server 110. For example, the timing period is set to be consistent with the update frequency of the target data in the central server 110; alternatively, a timing period with a shorter/longer duration is set according to the speed/slowness of the update frequency of the target data in the central server 110. In this way, the probability of duplication between the target data requested from the central server 110 by the proxy server 120 is reduced each time, so as to reduce the redundancy of the target data and reduce the data acquisition operation of the duplicated data by the proxy server 120.
In some embodiments, the proxy server 120 sends a data storage request to the node server 130 after detecting the target data update. In this embodiment, the proxy server 120 does not acquire the target data and then send it to the node server 130, but needs to first detect whether the target data is updated compared with the previously acquired target data. Only if an update is detected, the target data is packaged in a data storage request and sent to the node server 130. Therefore, the target data acquired by the node server 130 is not repeated, the data redundancy degree is further reduced, and the operation that the node server 130 repeatedly stores the data is further reduced.
And the node server 130 is used for responding to the data storage request and storing the target data. The node server 130 is a server in the CDN network that directly interacts with the user terminal, and receives and processes a user access request sent by the client terminal. Moreover, when the node server 130 processes the user access request, the policy/rule generated by the central server and used for controlling the user to access the CDN network needs to be executed first, so that the target data needs to be obtained first. In the embodiment of the present disclosure, the node server 130 obtains the target data through the data storage request sent by the proxy server 120, and needs to store the obtained target data in the local storage space. In some embodiments, the data storage request further includes storage location information, which is used to determine that the storage location of the target data in the node server 130 is an Nginx shared memory or cache server.
In some embodiments, the information interaction system 100 comprises a proxy server 120, and the proxy server 120 sends the target data to a plurality of node servers 130. In some embodiments, the information interaction system 100 includes a plurality of proxy servers 120, and the number of the proxy servers 120 is less than the number of the node servers 130. In this embodiment, part of the proxy servers 120 and the node servers 130 have a one-to-one relationship, and part of the proxy servers 120 and the node servers 130 have a one-to-many relationship. In some embodiments, the number of proxy servers 120 is consistent with the number of node servers 130. In this embodiment, the proxy server 120 and the node server 130 have a one-to-one correspondence relationship. Therefore, the proxy server 120 only forwards the target data for the corresponding node server 130, thereby reducing the service complexity of the proxy server, improving the efficiency of the proxy server for acquiring and sending the target data, and enabling the node server to acquire the updated target data more timely.
Referring to fig. 2, taking an interaction process among a node server 130, an agent server 120 and a central server 110 in the information interaction system 100 as an example, the information interaction process of the information interaction system 100 is as follows:
s1, when monitoring that the proxy server 120 meets the preset condition, sending a data acquisition request to the central server 110. The data acquisition request is used to request target data from the central server 110.
S2, after receiving the data obtaining request, the central server 110 feeds back a data obtaining response containing the target data to the proxy server 120.
S3, after receiving the data obtaining response, the proxy server 120 sends a data storage request to the node server 130. The data storage request is used to request the node server 130 to store the target data, so the data storage request includes the target data.
S4, after receiving the data storage request, the node server 130 stores the target data in the data storage request into a local storage space of the node server. In some embodiments, the data storage request carries storage location information, and the node server 130 stores the target data in the nginnx shared memory or the cache server according to the storage location information.
S5, when the node server 130 receives the user access request, it may query the target data from the Nginx shared memory or the cache server, and process the user access request and feed back a processing response based on the target data, without synchronously requesting data from the central server 110, thereby avoiding strong coupling between the central server and the service requirement, and reducing the complexity of the system.
Fig. 3 is a flowchart of an information interaction method applied to a proxy server according to an embodiment of the present disclosure. The information interaction method applied to the agent server can be executed by an information interaction device configured at the agent server, and the device can be implemented by software and/or hardware, and the device can be integrated in electronic equipment, such as a desktop computer, a server or a super computer. Referring to fig. 3, the information interaction method applied to the proxy server specifically includes:
and S110, sending a data acquisition request to the central server when the agent server is monitored to meet the preset conditions.
The preset condition is a preset condition used for triggering the sending of the data acquisition request to the central server. In some embodiments, the preset condition includes at least one of arrival of a timing period, completion of a preset event, and reception of an externally transmitted trigger signal. In this embodiment, the data acquisition request may be sent at a fixed time, or sent when the execution of a preset early event is completed, or sent when a trigger signal sent from the outside is received. In some embodiments, the timing period is determined based on an update frequency of the target data in the central server. For example, the timing period is set to be consistent with the updating frequency of the target data in the central server; or, setting a timing cycle with shorter/longer duration according to the speed/slow of the update frequency of the target data in the central server. Therefore, the proxy server side can send out the data acquisition request at a more proper time, and reduce the repetition rate between the subsequently acquired target data and the previously acquired target data, thereby reducing the redundancy degree of the target data.
Specifically, the agent server sends a data acquisition request to the central server when monitoring that the preset condition is met, so as to actively and asynchronously pull the target data from the central server with the user access request.
And S120, receiving a data acquisition response sent by the central server, wherein the data acquisition response comprises target data required by the node server to process the user access request.
Wherein the data acquisition response is a result obtained after processing the data acquisition request. For example, if the data fetch request is for requesting target data, then the data fetch response includes the target data when the target data is present. In some embodiments, the target data is policy data for controlling network access. For example, the target data may be an optimization policy that improves data access efficiency, a user filtering policy (e.g., a blacklist and whitelist policy) that indicates whether a user has permission to access certain data resources, and the like.
Specifically, the central server sends a data acquisition response containing the target data to the proxy server in response to the data acquisition request of the proxy server, and then the proxy server receives the data acquisition response sent by the central server.
S130, sending a data storage request to the node server, wherein the data storage request comprises target data and is used for requesting the node server to store the target data.
Specifically, after acquiring the target data, the proxy server may send a data storage request including the target data to one or more node servers corresponding to the proxy server. The data storage request is a request for triggering the node server to receive and store target data, and may be an http request for requesting data writing, for example. And the node server side receiving the data storage request stores the target data into the local storage space.
In some embodiments, sending the data storage request to the node server comprises: and if the target data update is detected, sending a data storage request to the node server. In this embodiment, after the proxy server acquires the target data, it first detects whether the target data is updated compared with the previously acquired target data. If not, the data storage request does not need to be sent to the corresponding node server. And if the data is updated, packaging the target data in the data storage request and sending the data to the corresponding node server. Therefore, target data acquired by the node server cannot be repeated, the data redundancy degree is further reduced, and the operation that the node server repeatedly stores the same data is further reduced.
In some embodiments, the data storage request further includes storage location information, where the storage location information is used to determine that the storage location of the target data in the node server is an nginn shared memory or a cache server. The storage location information is information capable of determining a specific storage location of the data, and for example, for the nginn shared memory, the storage location information may be domain name information carried in an http request. The position of the target data stored by the designated node server side in the storage position information can be set by self based on the service scene and the service requirement.
According to the technical scheme of the embodiment of the disclosure, the data acquisition request is sent to the central server when the proxy server meets the preset condition so as to request the central server for the target data required by the node server to process the user access request, and after the target data is obtained, the target data is sent to the node server so that the node server can store the target data to the local. Therefore, the proxy server can be used as a transfer terminal for target data interaction between the central server and the node server, the node server can acquire target data asynchronously in processing the user access request, and the service processing complexity of the node server is reduced, so that the processing efficiency of the node server on the user access request is improved, and the time for waiting for user access is reduced. And the proxy server can pull the target data from the central server only when the preset conditions are met, so that the redundancy of the target data in the node server is avoided to a certain extent.
Fig. 4 is a flowchart of an information interaction method applied to a node server according to an embodiment of the present disclosure. The information interaction method applied to the node server can be executed by an information interaction device configured at the node server, where the information interaction device can be implemented by software and/or hardware, and the information interaction device can be integrated in an electronic device, such as a desktop computer, a server, or a super computer. The same terms or steps as those in the above embodiments can be referred to in the above embodiments, and are not described herein. Referring to fig. 4, the information interaction method applied to the node server specifically includes:
s210, receiving a data storage request sent by the proxy server, wherein the data storage request comprises target data required by the node server to process the user access request, and the target data is data acquired from the central server when the proxy server meets preset conditions.
Specifically, the proxy server is only used as a transfer terminal of the target data, and after acquiring the target data, the proxy server actively sends the target data to the node server under a certain condition. The node server receives a data storage request containing target data sent by the proxy server.
And S220, storing the target data.
Specifically, the node server obtains the target data and information related to the target data storage by parsing the data storage request. And storing the target data into the local storage space thereof according to the storage-related information.
In some embodiments, storing the target data comprises: and if the data storage request comprises storage position information corresponding to the Nginx shared memory, packaging target data according to a preset data structure, and storing the packaged target data into the Nginx shared memory. If the data storage request is an http request and carries storage location information (such as an internal domain name) corresponding to the Nginx shared memory, the node server encapsulates the target data according to a storage structure (i.e., a preset data structure, such as a specific array format) of the data in the Nginx shared memory. And then, injecting the encapsulated target data into the Nginx shared memory through an 80 port of the internal domain name. Therefore, the memory utilization rate of Nginx can be reduced to a great extent, the access efficiency of the target data is ensured, and the processing performance of the node server-side on the business related to the target data is improved.
In some embodiments, storing the target data comprises: and if the data storage request contains storage position information corresponding to the cache server, storing the target data to the cache server. And if the data storage request contains storage position information corresponding to the cache server, the node server stores the target data into the cache server inside the node server. For example, it may be stored in a database of the cache server through the virtual file system. Therefore, the target data can act on various online service businesses in the node server, and the utilization rate of the target data is improved.
In some embodiments, the information interaction method applied to the node server further includes: receiving a user access request sent by a client; inquiring and acquiring target data from the Nginx shared memory or the cache server; and processing the user access request based on the target data, and feeding back a processing result to the client. In this embodiment, the node server has stored the target data in the Nginx shared memory or the cache server. When receiving a user access request sent by a client, the target data required can be inquired from the Nginx shared memory or the cache server. Then, the user access request is processed based on the target data, and the processing result is fed back to the client as the response of the client to the user access request. Therefore, synchronous request data from the central server side in the process of processing the user access request can be avoided, the strong coupling of the acquisition process of the target data and the service requirement is weakened, and the complexity of the system is reduced.
According to the technical scheme of the embodiment of the disclosure, the node server acquires and stores the target data by receiving the data storage request sent by the proxy server, so that the node server relies on the proxy server to asynchronously acquire the target data, strong coupling between the node server and the user access request is avoided, the processing efficiency of the user access request is improved, the waiting time for user access is reduced, and the user experience is improved.
Fig. 5 is a schematic structural diagram of an information interaction device configured at an agent server according to an embodiment of the present disclosure. Referring to fig. 5, the apparatus specifically includes:
a data obtaining request sending module 510, configured to send a data obtaining request to a central server when it is monitored that the proxy server meets a preset condition;
a data acquisition response receiving module 520, configured to receive a data acquisition response sent by the central server, where the data acquisition response includes target data required by the node server to process the user access request;
a data storage request sending module 530, configured to send a data storage request to the node server, where the data storage request includes target data, and the data storage request is used to request the node server to store the target data.
In some embodiments, the target data is policy data for controlling network access.
In some embodiments, the preset condition includes at least one of arrival of a timing period, completion of a preset event, and reception of an externally transmitted trigger signal.
In some embodiments, the timing period is determined based on an update frequency of the target data in the central server.
In some embodiments, the data storage request sending module 530 is specifically configured to:
and if the target data update is detected, sending a data storage request to the node server.
In some embodiments, the data storage request further includes storage location information, where the storage location information is used to determine that the storage location of the target data in the node server is an nginnx shared memory or a cache server.
By the information interaction device configured at the proxy server, a transfer function of target data interaction between the central server and the node server is realized, so that the node server asynchronously processes the user access request to acquire target data, and the service processing complexity of the node server is reduced, thereby improving the processing efficiency of the node server on the user access request and reducing the time length of user access waiting. And the target data can be pulled from the central server only when the preset condition is met, so that the redundancy of the target data in the node server is avoided to a certain extent.
Fig. 6 is a schematic structural diagram of an information interaction device configured at a node server according to an embodiment of the present disclosure. Referring to fig. 6, the apparatus specifically includes:
a data storage request receiving module 610, configured to receive a data storage request sent by a proxy server, where the data storage request includes target data required by a node server to process a user access request, and the target data is data obtained from a central server when the proxy server meets a preset condition;
and a data storage module 620 for storing the target data.
In some embodiments, the data storage module 620 is specifically configured to:
and if the data storage request comprises storage position information corresponding to the Nginx shared memory, packaging target data according to a preset data structure, and storing the packaged target data into the Nginx shared memory.
In some embodiments, the data storage module 620 is specifically configured to:
and if the data storage request contains storage position information corresponding to the cache server, storing the target data to the cache server.
In some embodiments, the information interaction apparatus configured at the node server further includes a user request processing module, configured to:
receiving a user access request sent by a client;
inquiring and acquiring target data from the Nginx shared memory or the cache server;
and processing the user access request based on the target data, and feeding back a processing result to the client.
Through the information interaction device configured at the node server, the node server can asynchronously acquire the target data by relying on the proxy server, strong coupling between the node server and the user access request is avoided, the processing efficiency of the user access request is improved, the waiting time for user access is reduced, and the user experience is improved.
It should be noted that, in each embodiment of the information interaction apparatus, each included module is only divided according to functional logic, but is not limited to the above division, as long as the corresponding function can be implemented; in addition, the specific names of the functional modules are only used for distinguishing one functional module from another, and are not used for limiting the protection scope of the present disclosure.
Fig. 7 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure. Referring to fig. 7, an electronic device 700 provided by an embodiment of the present disclosure includes: a processor 720 and a storage device 710; the processor 720 is used for executing the steps of the information interaction method applied to the proxy server side provided by the embodiment of the disclosure by calling the program or the instruction stored in the storage device 710:
when the fact that the agent server side meets the preset conditions is monitored, a data acquisition request is sent to the central server side;
receiving a data acquisition response sent by a central server, wherein the data acquisition response comprises target data required by the node server to process a user access request;
and sending a data storage request to the node server, wherein the data storage request comprises target data and is used for requesting the node server to store the target data.
Of course, those skilled in the art can understand that the processor 720 can also implement the technical solution of the information interaction method applied to the proxy server, which is provided by any embodiment of the present disclosure.
The electronic device 700 shown in fig. 7 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure. As shown in fig. 7, electronic device 700 is embodied in the form of a general purpose computing device. The components of the electronic device 700 may include, but are not limited to: one or more processors 720, a memory device 710, and a bus 750 that couples the various system components (including the memory device 710 and the processors 720).
Bus 750 represents one or more of any of several types of bus structures, including a memory device bus or memory device controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 700 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 700 and includes both volatile and nonvolatile media, removable and non-removable media.
The storage 710 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)711 and/or cache memory 712. The electronic device 700 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 713 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, commonly referred to as a "hard drive"). Although not shown in FIG. 7, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be connected to bus 750 by one or more data media interfaces. Storage 710 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the disclosure.
A program/utility 714 having a set (at least one) of program modules 715 may be stored, for instance, in storage 710, such program modules 715 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination may comprise an implementation of a network environment. The program modules 715 generally perform the functions and/or methods described in any of the embodiments of the disclosure.
The electronic device 700 may also communicate with one or more external devices 760 (e.g., keyboard, pointing device, display 770, etc.), with one or more devices that enable a user to interact with the electronic device 700, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 700 to communicate with one or more other computing devices. Such communication may be through an input/output interface (I/O interface) 730. Also, the electronic device 700 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 740. As shown in FIG. 7, the network adapter 740 communicates with the other modules of the electronic device 700 via the bus 750. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The disclosed embodiment also provides another electronic device, which includes: a processor and a storage device; the processor is used for executing the steps of the information interaction method applied to the node server side provided by the embodiment of the disclosure by calling the program or the instruction stored in the storage device:
receiving a data storage request sent by a proxy server, wherein the data storage request comprises target data required by a node server to process a user access request, and the target data is data acquired from a central server when the proxy server meets a preset condition;
the target data is stored.
Of course, those skilled in the art can understand that the processor can also implement the technical solution of the information interaction method applied to the node server side provided in any embodiment of the present disclosure. The hardware structure and functions of the electronic device can be explained with reference to the above embodiments.
The embodiment of the present disclosure further provides a computer-readable storage medium, where the computer-readable storage medium stores a program or an instruction, and the program or the instruction causes a computer to execute the steps of the information interaction method applied to the proxy server, provided by the embodiment of the present disclosure:
when the fact that the agent server side meets the preset conditions is monitored, a data acquisition request is sent to the central server side;
receiving a data acquisition response sent by a central server, wherein the data acquisition response comprises target data required by the node server to process a user access request;
and sending a data storage request to the node server, wherein the data storage request comprises target data and is used for requesting the node server to store the target data.
Of course, the stored program or instruction of the computer-readable storage medium provided by the embodiments of the present disclosure is not limited to the above method operations, and may also perform related operations in the information interaction method applied to the proxy server provided by any embodiment of the present disclosure.
The computer storage media of the disclosed embodiments may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The embodiment of the present disclosure further provides another computer-readable storage medium, where the computer-readable storage medium stores a program or an instruction, and the program or the instruction causes a computer to execute the steps of the information interaction method applied to the node server, provided by the embodiment of the present disclosure:
receiving a data storage request sent by a proxy server, wherein the data storage request comprises target data required by a node server to process a user access request, and the target data is data acquired from a central server when the proxy server meets a preset condition;
the target data is stored.
Of course, the stored program or instruction of the computer-readable storage medium provided by the embodiments of the present disclosure is not limited to the above method operations, and may also perform related operations in the information interaction method applied to the node server, provided by any embodiment of the present disclosure. The storage medium is described with reference to the content explanation in the above embodiments.
It is to be understood that the terminology used in the disclosure is for the purpose of describing particular embodiments only, and is not intended to limit the scope of the present application. As used in the specification and claims of this disclosure, the terms "a," "an," "the," and/or "the" are not intended to be inclusive in the singular, but rather are inclusive in the plural, unless the context clearly dictates otherwise. The term "and/or" includes any and all combinations of one or more of the associated listed items. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, 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, 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 or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present disclosure, which enable those skilled in the art to understand or practice the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (16)

1. An information interaction method is applied to a proxy server, and the method comprises the following steps:
when the agent server side is monitored to meet a preset condition, sending a data acquisition request to a central server side;
receiving a data acquisition response sent by the central server, wherein the data acquisition response comprises target data required by the node server to process the user access request;
and sending a data storage request to a node server, wherein the data storage request comprises the target data and is used for requesting the node server to store the target data.
2. The method of claim 1, wherein the target data is policy data for controlling network access.
3. The method of claim 1, wherein the preset condition comprises at least one of a timing period arriving, a preset event completing, and a receipt of an externally sent trigger signal.
4. The method of claim 3, wherein the timing period is determined based on an update frequency of the target data in the central server.
5. The method of claim 1, wherein sending a data storage request to a node server comprises:
and if the target data is detected to be updated, sending the data storage request to the node server.
6. The method according to any one of claims 1 to 5, wherein the data storage request further includes storage location information, and the storage location information is used to determine that the storage location of the target data in the node server is an Nginx shared memory or cache server.
7. An information interaction method is applied to a node server side, and the method comprises the following steps:
receiving a data storage request sent by a proxy server, wherein the data storage request comprises target data required by a node server to process a user access request, and the target data is data acquired from a central server when the proxy server meets preset conditions;
and storing the target data.
8. The method of claim 7, wherein the storing the target data comprises:
and if the data storage request comprises storage position information corresponding to the Nginx shared memory, packaging the target data according to a preset data structure, and storing the packaged target data into the Nginx shared memory.
9. The method of claim 7, wherein the storing the target data comprises:
and if the data storage request contains storage position information corresponding to a cache server, storing the target data to the cache server.
10. The method of claim 7, further comprising:
receiving a user access request sent by a client;
inquiring and acquiring the target data from the Nginx shared memory or the cache server;
and processing the user access request based on the target data, and feeding back a processing result to the client.
11. An information interaction device, configured at a proxy server, the device comprising:
the data acquisition request sending module is used for sending a data acquisition request to a central server when the agent server is monitored to meet a preset condition;
a data acquisition response receiving module, configured to receive a data acquisition response sent by the central server, where the data acquisition response includes target data required by the node server to process the user access request;
and the data storage request sending module is used for sending a data storage request to a node server, wherein the data storage request comprises the target data, and the data storage request is used for requesting the node server to store the target data.
12. An information interaction apparatus, configured to a node server, the apparatus comprising:
the data storage request receiving module is used for receiving a data storage request sent by a proxy server, wherein the data storage request comprises target data required by a node server to process a user access request, and the target data is data acquired from a central server when the proxy server meets a preset condition;
and the data storage module is used for storing the target data.
13. An electronic device, comprising: a processor and a storage device;
the processor is configured to perform the steps of the method according to any one of claims 1 to 6, or to perform the steps of the method according to any one of claims 7 to 10, by calling a program or instructions stored in the storage means.
14. A computer-readable storage medium, characterized in that it stores a program or instructions for causing a computer to carry out the steps of the method according to any one of claims 1 to 6, or to carry out the steps of the method according to any one of claims 7 to 10.
15. An information interaction system, comprising: the system comprises a central server, at least one proxy server and a plurality of node servers;
the central server is used for generating target data required by the node server to process the user access request; responding to a data acquisition request sent by the proxy server, and sending a data acquisition response to the proxy server;
the proxy server is in communication connection with the central server and the node server, and is used for sending the data acquisition request to the central server when monitoring that the proxy server meets a preset condition; receiving the data acquisition response sent by the central server, wherein the data acquisition response comprises the target data; sending a data storage request to the node server, wherein the data storage request comprises the target data;
and the node server is used for responding to the data storage request and storing the target data.
16. The system of claim 15, wherein the number of the proxy servers is the same as the number of the node servers, and there is a one-to-one correspondence between the proxy servers and the node servers.
CN202011382751.6A 2020-12-01 2020-12-01 Information interaction method, device, equipment, storage medium and system Pending CN114584618A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011382751.6A CN114584618A (en) 2020-12-01 2020-12-01 Information interaction method, device, equipment, storage medium and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011382751.6A CN114584618A (en) 2020-12-01 2020-12-01 Information interaction method, device, equipment, storage medium and system

Publications (1)

Publication Number Publication Date
CN114584618A true CN114584618A (en) 2022-06-03

Family

ID=81767706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011382751.6A Pending CN114584618A (en) 2020-12-01 2020-12-01 Information interaction method, device, equipment, storage medium and system

Country Status (1)

Country Link
CN (1) CN114584618A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115022397A (en) * 2022-06-16 2022-09-06 平安普惠企业管理有限公司 Interface parameter simplifying method and device, electronic equipment and storage medium
CN115718571A (en) * 2022-11-23 2023-02-28 深圳计算科学研究院 Data management method and device based on multi-dimensional features
CN116808570A (en) * 2023-06-21 2023-09-29 广州银汉科技有限公司 Distributed game server based on OpenResty platform

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002373108A (en) * 2001-06-14 2002-12-26 Hitachi Ltd Proxy device and proxy control system
CN104168300A (en) * 2013-05-17 2014-11-26 中国电信股份有限公司 Content acceleration method and system
CN109040787A (en) * 2018-09-05 2018-12-18 湖南华诺科技有限公司 A kind of method of distributed autonomous set-top box content distribution network
CN109951338A (en) * 2019-03-28 2019-06-28 北京金山云网络技术有限公司 CDN network configuration method, configuration device, electronic device and storage medium
CN110191007A (en) * 2019-06-27 2019-08-30 广州虎牙科技有限公司 Node administration method, system and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002373108A (en) * 2001-06-14 2002-12-26 Hitachi Ltd Proxy device and proxy control system
CN104168300A (en) * 2013-05-17 2014-11-26 中国电信股份有限公司 Content acceleration method and system
CN109040787A (en) * 2018-09-05 2018-12-18 湖南华诺科技有限公司 A kind of method of distributed autonomous set-top box content distribution network
CN109951338A (en) * 2019-03-28 2019-06-28 北京金山云网络技术有限公司 CDN network configuration method, configuration device, electronic device and storage medium
CN110191007A (en) * 2019-06-27 2019-08-30 广州虎牙科技有限公司 Node administration method, system and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王一蓉;王思宁;邹颖;于波涛;: "电力CDN业务需求分析及网络体系架构研究", 电信科学, no. 05, 20 May 2015 (2015-05-20) *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115022397A (en) * 2022-06-16 2022-09-06 平安普惠企业管理有限公司 Interface parameter simplifying method and device, electronic equipment and storage medium
CN115022397B (en) * 2022-06-16 2023-11-03 河南匠多多信息科技有限公司 Interface parameter simplifying method and device, electronic equipment and storage medium
CN115718571A (en) * 2022-11-23 2023-02-28 深圳计算科学研究院 Data management method and device based on multi-dimensional features
CN115718571B (en) * 2022-11-23 2023-08-22 深圳计算科学研究院 Data management method and device based on multidimensional features
CN116808570A (en) * 2023-06-21 2023-09-29 广州银汉科技有限公司 Distributed game server based on OpenResty platform

Similar Documents

Publication Publication Date Title
US10693816B2 (en) Communication methods and systems, electronic devices, and computer clusters
CN102955717B (en) Message management equipment and method in distributed message processing system
WO2017041398A1 (en) Data transmission method and device
CN111737022A (en) Interface calling method, system, equipment and medium based on micro-service
CN109101662B (en) Block generation method, device, equipment and storage medium
CN111737564B (en) Information query method, device, equipment and medium
CN105657000A (en) Message transmission method and device
CN110059278A (en) Web page configuration method, server and computer readable storage medium
CN114584618A (en) Information interaction method, device, equipment, storage medium and system
US20120166585A1 (en) Apparatus and method for accelerating virtual desktop
CN111259022A (en) Information synchronization method, synchronization system, computer equipment and medium
CN111694620A (en) Interaction method, device and equipment of third-party service and computer storage medium
CN107493312B (en) Service calling method and device
CN108062224B (en) Data reading and writing method, device and computing device based on file handle
KR102454695B1 (en) Caching device, cache, system, method and apparatus for processing data, and medium
CN113905091A (en) Method and device for processing access request
CN113760986A (en) Data query method, device, equipment and storage medium
CN110245027B (en) Inter-process communication method and device
CN112748855A (en) Method and device for processing high-concurrency data request
CN113064678B (en) Cache configuration method and device
CN113377752B (en) Data cleaning method, device and system and computer readable storage medium
CN110750316B (en) Method and application architecture system for processing internal tasks or input events
CN108920589B (en) Browsing hijacking identification method, device, server and storage medium
CN106484536B (en) IO scheduling method, device and equipment
CN114817166B (en) Method, device and medium for canceling file operation

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