CN111769965A - Information processing method, device and equipment - Google Patents
Information processing method, device and equipment Download PDFInfo
- Publication number
- CN111769965A CN111769965A CN201910967907.8A CN201910967907A CN111769965A CN 111769965 A CN111769965 A CN 111769965A CN 201910967907 A CN201910967907 A CN 201910967907A CN 111769965 A CN111769965 A CN 111769965A
- Authority
- CN
- China
- Prior art keywords
- configuration information
- information
- server
- redis server
- state
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention provides an information processing method, device and equipment. The information processing method comprises the following steps: receiving a service request sent by a user through terminal equipment; acquiring first configuration information stored on a Redis server and second configuration information stored on a CDN server according to a service request; and determining target configuration information according to the first configuration information and the second configuration information. The configuration information is stored in both the Redis server and the CDN server, after a service request of a user is received, the configuration information is thermally modified through the first configuration information acquired from the Redis server and the second configuration information acquired from the CDN server, service restart is avoided, and reliability of website service configuration is improved.
Description
Technical Field
The present invention relates to the field of internet technologies, and in particular, to an information processing method, apparatus, and device.
Background
With the explosion of the internet, the market of internet e-commerce (e-commerce for short) is growing rapidly. The E-commerce website is a core component of E-commerce transaction, and commodity display and commodity transaction can be carried out through the E-commerce website.
Due to the existence of the e-commerce promotion days, the e-commerce website can face the problems of high user access amount, high service concurrency and low server response speed in a short time. For this reason, the e-commerce website background system needs to thermally modify the configuration information without restarting the service.
At present, a Redis cache is commonly used by a background system of an e-commerce website to modify configuration information online. However, since the Redis cache is strongly dependent on survival and normal operation, when the Redis server is unstable or stops operating due to various reasons, the server can only be restarted, so that an access error occurs when a user accesses a website during restarting, and the reliability of the service is reduced.
Disclosure of Invention
The invention provides an information processing method, device and equipment, which improve the reliability of website service configuration.
In a first aspect, the present invention provides an information processing method, including:
receiving a service request sent by a user through terminal equipment;
acquiring first configuration information stored on a Redis server and second configuration information stored on a CDN server according to the service request;
and determining target configuration information according to the first configuration information and the second configuration information.
Optionally, before determining the target configuration information according to the first configuration information and the second configuration information, the method further includes:
acquiring first priority information of the first configuration information and second priority information of the second configuration information;
the determining target configuration information according to the first configuration information and the second configuration information includes:
and determining the target configuration information in the first configuration information and the second configuration information according to the first priority information and the second priority information.
Optionally, the first priority information is a first time when the first configuration information is stored on the Redis server, and the second priority information is a second time when the second configuration information is stored on the CDN server;
the determining the target configuration information in the first configuration information and the second configuration information according to the first priority information and the second priority information includes:
and determining the latest configuration information in the first configuration information and the second configuration information as the target configuration information according to the first time and the second time.
Optionally, the method further includes:
generating a service operation result according to the service request and the target configuration information;
and sending the service operation result to the terminal equipment.
Optionally, the method further includes:
sending a heartbeat detection signal to the Redis server according to a preset period;
if a response signal sent by the Redis server is received, determining that the state of the Redis server is a normal state; if the response signal sent by the Redis server is not received, determining that the state of the Redis server is an abnormal state;
storing a state of the Redis server.
Optionally, if the response signal sent by the Redis server is not received, the method further includes:
generating alarm information; the alarm information is used for informing an administrator that the state of the Redis server is an abnormal state.
Optionally, the method further includes:
receiving configuration information input by an administrator and the entry time of the configuration information;
acquiring the state of the Redis server;
and storing the configuration information and the entry time according to the state of the Redis server.
Optionally, the storing the configuration information and the entry time according to the state of the Redis server includes:
if the state of the Redis server is a normal state, storing the configuration information and the entry time in the Redis server;
and if the state of the Redis server is an abnormal state, storing the configuration information and the entry time in the CDN server.
In a second aspect, the present invention provides an information processing apparatus comprising:
the receiving module is used for receiving a service request sent by a user through terminal equipment;
the obtaining module is used for obtaining first configuration information stored on a Redis server and second configuration information stored on a CDN server according to the service request;
and the determining module is used for determining target configuration information according to the first configuration information and the second configuration information.
Optionally, the obtaining module is further configured to:
acquiring first priority information of the first configuration information and second priority information of the second configuration information;
the determining module is specifically configured to:
and determining the target configuration information in the first configuration information and the second configuration information according to the first priority information and the second priority information.
Optionally, the first priority information is a first time when the first configuration information is stored on the Redis server, and the second priority information is a second time when the second configuration information is stored on the CDN server;
the determining module is specifically configured to:
and determining the latest configuration information in the first configuration information and the second configuration information as the target configuration information according to the first time and the second time.
Optionally, the system further comprises a processing module and a sending module;
the processing module is used for generating a service operation result according to the service request and the target configuration information;
and the sending module is used for sending the service operation result to the terminal equipment.
Optionally, the system further comprises a sending module and a storage module;
the sending module is used for sending a heartbeat detection signal to the Redis server according to a preset period;
the determination module is further to:
if the receiving module receives a response signal sent by the Redis server, determining that the state of the Redis server is a normal state; if the receiving module does not receive the response signal sent by the Redis server, determining that the state of the Redis server is an abnormal state;
the storage module is used for storing the state of the Redis server.
Optionally, the system further comprises an alarm module, wherein the alarm module is configured to:
if the receiving module does not receive the response signal sent by the Redis server, alarm information is generated; the alarm information is used for informing an administrator that the state of the Redis server is an abnormal state.
Optionally, the system further comprises a storage module;
the receiving module is further used for receiving configuration information input by an administrator and the entry time of the configuration information;
the obtaining module is further configured to obtain a state of the Redis server;
the storage module is used for storing the configuration information and the entry time according to the state of the Redis server.
Optionally, the storage module is specifically configured to:
if the state of the Redis server is a normal state, storing the configuration information and the entry time in the Redis server;
and if the state of the Redis server is an abnormal state, storing the configuration information and the entry time in the CDN server.
In a third aspect, the present invention provides an information processing apparatus comprising: a memory, a processor, and a transceiver;
the memory to store program instructions;
the transceiver is used for carrying out data transmission with other devices;
the processor is configured to call the program instructions stored in the memory to implement the information processing method according to any implementation manner of the first aspect of the present invention.
In a fourth aspect, the present invention provides a storage medium comprising: a readable storage medium and a computer program for implementing the information processing method according to any one of the implementation manners of the first aspect of the present invention.
The invention provides an information processing method, an information processing device and information processing equipment, which can acquire first configuration information stored on a Redis server and second configuration information stored on a CDN server after receiving a service request sent by a user through terminal equipment, and determine target configuration information according to the first configuration information and the second configuration information. Because both the Redis server and the CDN server store the configuration information, a backup configuration scheme is provided, and the configuration information can be modified thermally, so that the reliability of the website service configuration is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a diagram of a system architecture suitable for use with embodiments of the present invention;
FIG. 2 is a functional framework diagram suitable for use with embodiments of the present invention;
fig. 3 is a flowchart of an information processing method according to an embodiment of the present invention;
fig. 4 is a flowchart of an information processing method according to a second embodiment of the present invention;
fig. 5 is a flowchart of an information processing method according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an information processing apparatus according to a first embodiment of the present invention.
Detailed Description
By way of example, FIG. 1 is a diagram of a system architecture in which embodiments of the present invention are applicable. As shown in fig. 1, the system may include an information processing apparatus and a terminal apparatus. The information processing apparatus and the terminal apparatus can communicate. The information processing device can process relevant information related to the E-commerce website.
It should be noted that the present invention is not limited to the number of the information processing apparatuses and the terminal apparatuses, and is not limited to the types of the information processing apparatuses and the terminal apparatuses, and may be any apparatus having a data processing capability. Illustratively, in fig. 1, the information processing apparatus may be a server 100. The terminal equipment can include 3, and the identification is terminal equipment 201 ~ 203 respectively. The terminal 201 may be a smart phone, and the terminal 202 and the terminal 203 may be desktop computers.
In the following, an application scenario of the present invention is exemplarily described with reference to fig. 1 and fig. 2.
The invention may relate to a user system, a website background service system and a website configuration system. The user system can realize that the user browses commodities and carries out transaction on the commodities through the E-commerce website. For example, in fig. 1, the user system may correspond to the terminal device 201 and the terminal device 202. The terminal device 201 and the terminal device 202 have an Application (APP) installed thereon in advance. The user can log in the APP through the account number and the password, and commodity information is browsed through the APP to complete commodity transaction. The user system may send a service request to the website backend service system. Correspondingly, the website background service system can process the service request and return a corresponding processing result to the user system. For example, in fig. 1, the website backend service system may correspond to the server 100. The user can send a page access request to the server 100 through the terminal device 201. Accordingly, the server 100 can return an access page to the terminal device 201. Optionally, the website background service system may be built by node. Optionally, the website background service system may further query configuration information of the e-commerce website, and determine whether a state of a server storing the configuration information is normal. The website configuration system is used for providing a visual input interface and storing configuration information. For example, in fig. 1, the website configuration system may correspond to the server 100 and the terminal device 203. The terminal device 203 is pre-installed with an APP, and the APP can provide a visual information entry interface. An administrator can log in the APP through the account and the password, and enter new configuration information or modify the original configuration information through the APP. The server 100 may store the configuration information.
The concept of the present invention will be explained below.
(1)Redis
A Remote Dictionary Server (Remote Dictionary Server, Redis) may also be referred to as a data structure Server, and is an open-source key-value database, which has high read-write performance. It can store the mapping (mapping) between keys (keys) and various different types of values (values) and can persist the key-value pair data stored in memory to the hard disk. The user can configure different persistence modes according to actual use scenes. The value (value) may be a String (String), a hash (Map), a list (list), a set (sets), a sorted set (sorted sets), or the like.
(2)Node.js
Js is a JavaScript running environment, and is used for conveniently building a network or local application which is high in response speed and easy to expand. It is well suited to running data intensive real-time applications on distributed devices.
(3)CDN
A Content Delivery Network (CDN) is an intelligent virtual Network constructed on the basis of the existing Network, and bottlenecks and links that may affect data transmission speed and stability in the Network are avoided as much as possible by edge servers deployed in various places and by functional modules of a central platform, such as load balancing, Content Delivery, scheduling, and the like, so that a user can obtain required Content nearby, Network congestion is reduced, and user access response speed and hit rate are improved.
In the following, the technical solutions in the embodiments of the present application are clearly and completely described with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 3 is a flowchart of an information processing method according to an embodiment of the present invention. In the information processing method provided by the present embodiment, the execution subject may be an information processing apparatus or an information processing device. As shown in fig. 3, the information processing method provided in this embodiment may include:
s301, receiving a service request sent by a user through terminal equipment.
The specific content included in the service request is not limited in this embodiment, and may be any request message sent to the e-commerce website by the existing user. Alternatively, the service request may include, but is not limited to, a page access request, a search request, and a payment request. Wherein the page access request may be for accessing a page. The search request may be for information related to the item. The payment request may be for a transaction for the item.
S302, according to the service request, first configuration information stored on the Redis server and second configuration information stored on the CDN server are obtained.
Configuration information is stored on both the Redis server and the CDN server. It should be noted that, the present embodiment does not limit the specific content included in the configuration information and the storage form in the server.
Since both the Redis server and the CDN server store the configuration information, the Redis server and the CDN server are backups of each other, and a single storage mode which only depends on the Redis server in the prior art is avoided. In this way, when the Redis server is abnormal, effective configuration information can be obtained from the CDN server. Similarly, when the CDN server is abnormal, valid configuration information may also be obtained from the Redis server. When the Redis server and the CDN server are both in a normal state, first configuration information can be obtained from the Redis server, second configuration information can be obtained from the CDN server, and subsequently, configuration information with the maximum credibility is determined according to the first configuration information and the second configuration information, and the configuration information can be called target configuration information. Therefore, the reliability of the website service configuration is improved.
Optionally, in an implementation manner, an event triggering manner may be adopted, and after a service request sent by a user through a terminal device is received, first configuration information stored in a Redis server and second configuration information stored in a CDN server are triggered and obtained.
Optionally, in another implementation manner, first configuration information stored in the Redis server and second configuration information stored in the CDN server may be periodically obtained according to a preset query period. After receiving a service request sent by a user through terminal equipment, first configuration information obtained from a Redis server and second configuration information obtained from a CDN server in a current query period are obtained.
Optionally, the preset query periods for the Redis server and the CDN server may be the same or different. The present embodiment does not limit the specific value of the preset query period.
S303, determining target configuration information according to the first configuration information and the second configuration information.
As can be seen, in the information processing method provided in this embodiment, both the Redis server and the CDN server store configuration information, a backup configuration scheme is provided, and a single storage manner that strongly depends on the Redis storage is avoided. When the Redis server cannot work normally, the configuration information can still be modified thermally through the CDN server, so that the problem of website access errors caused during the service restart of the Redis server is avoided, and the reliability of website service configuration is improved. In an application scenario that an e-commerce website is subject to a large number of sudden simultaneous accesses of users, stable service can be provided for the users, and browsing experience and website transaction amount of the users are improved.
Optionally, S303, before determining the target configuration information according to the first configuration information and the second configuration information, may further include:
first priority information of the first configuration information and second priority information of the second configuration information are obtained.
Correspondingly, S303, determining the target configuration information according to the first configuration information and the second configuration information may include:
and determining target configuration information in the first configuration information and the second configuration information according to the first priority information and the second priority information.
Specifically, the first priority information of the first configuration information may reflect the reliability of the first configuration information, and the second priority information of the second configuration information may reflect the reliability of the second configuration information. The embodiment does not limit the implementation manner of the priority information. Alternatively, the priority information may be a storage time of the configuration information in the server. Optionally, the priority information may be a priority corresponding to the server. For example, priority of the Redis server may be set higher than priority of the CDN server in advance. Thus, the priority of the configuration information stored on the Redis server will be higher than the priority of the configuration information stored on the CDN server. According to the first priority information and the second priority information, the target configuration information can be determined in the first configuration information and the second configuration information, and accuracy of determining the target configuration information is improved.
It should be noted that, in this embodiment, there is no limitation on an execution sequence between obtaining the first configuration information stored in the Redis server and the second configuration information stored in the CDN server, and obtaining the first priority information of the first configuration information and the second priority information of the second configuration information. For example, the first priority information may be stored on a Redis server, the second priority information may be stored on a CDN server, and the first configuration information and the first priority information may be simultaneously obtained from the Redis server, while the second configuration information and the second priority information are simultaneously obtained from the CDN server.
Optionally, when the first priority information is a first time when the first configuration information is stored on the Redis server, and the second priority information is a second time when the second configuration information is stored on the CDN server, correspondingly, determining the target configuration information in the first configuration information and the second configuration information according to the first priority information and the second priority information may include:
and determining the latest configuration information in the first configuration information and the second configuration information as the target configuration information according to the first time and the second time.
By determining the configuration information with the more recent storage time as the target configuration information, the accuracy of determining the target configuration information is further improved.
Optionally, the information processing method provided in this embodiment may further include:
and generating a service operation result according to the service request and the target configuration information.
And sending the service operation result to the terminal equipment.
It should be noted that, the type and specific content of the service request are different, and the corresponding service operation result may be different, and the implementation manner of the service operation result is not limited in this embodiment. For example, when the service request is a page access request, the service execution result may be an access page.
The embodiment provides an information processing method, which comprises the following steps: receiving a service request sent by a user through terminal equipment, acquiring first configuration information stored on a Redis server and second configuration information stored on a CDN server according to the service request, and determining target configuration information according to the first configuration information and the second configuration information. According to the information processing method provided by the embodiment, the configuration information is stored by both the Redis server and the CDN server, a backup configuration scheme is provided, the configuration information is thermally modified, and the reliability of website service configuration is improved.
Fig. 4 is a flowchart of an information processing method according to a second embodiment of the present invention. In the information processing method provided by the present embodiment, the execution subject may be an information processing apparatus or an information processing device. As shown in fig. 4, the information processing method provided in this embodiment may include:
s401, sending heartbeat detection signals to a Redis server according to a preset period.
If a response signal transmitted by the Redis server is received, S402 is performed. If the response signal transmitted by the Redis server is not received, S403 is performed.
It should be noted that, the present embodiment does not limit the specific value of the preset period.
Alternatively, the heartbeat detection signal may be an invalid character.
S402, if a response signal sent by the Redis server is received, determining that the state of the Redis server is a normal state.
S403, if the response signal sent by the Redis server is not received, determining that the state of the Redis server is an abnormal state.
S405, storing the state of the Redis server.
Therefore, whether the Redis server is abnormal or not can be accurately known by periodically inquiring the state of the Redis server and storing the state of the Redis server. Thus, it is possible to provide a basis for the information processing apparatus or the information processing device to acquire the first configuration information from the Redis server. When the Redis server is normal, the acquired first configuration information is usually trusted. When the Redis server is abnormal, the acquired first configuration information is usually not trusted. Therefore, the accuracy of obtaining the configuration information from the Redis server is improved.
Optionally, if a response signal sent by the Redis server is not received, the information processing method provided in this embodiment may further include:
and generating alarm information. The alarm information is used for notifying an administrator that the state of the Redis server is an abnormal state.
By generating the alarm information, a website administrator can be informed in time, so that Redis services can be repaired in time, and the reliability of website service configuration is guaranteed.
It should be noted that the present embodiment does not limit the implementation manner of the alarm information. Optionally, the alarm information may include, but is not limited to, at least one of the following: short messages, mail, and voice messages.
The embodiment provides an information processing method, which sends a heartbeat detection signal to a Redis server according to a preset period, determines whether the state of the Redis server is abnormal according to whether a response signal is received, and stores the state of the Redis server, so that a basis is provided for acquiring first configuration information from the Redis server, and the accuracy of acquiring the configuration information from the Redis server is improved.
Fig. 5 is a flowchart of an information processing method according to a third embodiment of the present invention. In the information processing method provided by the present embodiment, the execution subject may be an information processing apparatus or an information processing device. As shown in fig. 3, the information processing method provided in this embodiment may include:
s501, receiving configuration information input by an administrator and the entry time of the configuration information.
And S502, acquiring the state of the Redis server.
S503, storing the configuration information and the recording time according to the state of the Redis server.
In the present embodiment, the application scenario of entering the configuration information or modifying the configuration information is involved. When the website administrator inputs the configuration information, the configuration information can be stored according to the state of the Redis server, so that the storage accuracy and validity of the configuration information are ensured.
Optionally, in S503, storing the configuration information and the entry time according to the state of the Redis server may include:
and if the state of the Redis server is a normal state, storing the configuration information and the entry time in the Redis server.
And if the state of the Redis server is an abnormal state, storing the configuration information and the entry time in the CDN server.
Specifically, when the state of the Redis server is a normal state, the configuration information and the entry time are preferentially stored in the Redis server. And when the state of the Redis server is an abnormal state, storing configuration information and entry time in the CDN server.
Since both the Redis server and the CDN server store the configuration information, the Redis server and the CDN server are backups of each other, and a single storage mode which only depends on the Redis server in the prior art is avoided. Therefore, when any one of the Redis server and the CDN server is abnormal, effective configuration information can be obtained from the other server, and the reliability of website service configuration is improved.
The method embodiments shown in fig. 3 to 5 may be combined with each other.
Fig. 6 is a schematic structural diagram of an information processing apparatus according to a first embodiment of the present invention. The information processing apparatus provided by the present embodiment is configured to execute the information processing method provided by the method embodiments shown in fig. 3 to 5. As shown in fig. 6, the information processing apparatus provided in the present embodiment may include:
a receiving module 61, configured to receive a service request sent by a user through a terminal device;
an obtaining module 62, configured to obtain, according to the service request, first configuration information stored in a Redis server and second configuration information stored in a content delivery network CDN server;
a determining module 63, configured to determine target configuration information according to the first configuration information and the second configuration information.
Optionally, the obtaining module 62 is further configured to:
acquiring first priority information of the first configuration information and second priority information of the second configuration information;
the determining module 63 is specifically configured to:
and determining the target configuration information in the first configuration information and the second configuration information according to the first priority information and the second priority information.
Optionally, the first priority information is a first time when the first configuration information is stored on the Redis server, and the second priority information is a second time when the second configuration information is stored on the CDN server;
the determining module 63 is specifically configured to:
and determining the latest configuration information in the first configuration information and the second configuration information as the target configuration information according to the first time and the second time.
Optionally, the system further comprises a processing module and a sending module;
the processing module is used for generating a service operation result according to the service request and the target configuration information;
and the sending module is used for sending the service operation result to the terminal equipment.
Optionally, the system further comprises a sending module and a storage module;
the sending module is used for sending a heartbeat detection signal to the Redis server according to a preset period;
the determining module 63 is further configured to:
if the receiving module 61 receives a response signal sent by the Redis server, it is determined that the state of the Redis server is a normal state; if the receiving module 61 does not receive the response signal sent by the Redis server, determining that the state of the Redis server is an abnormal state;
the storage module is used for storing the state of the Redis server.
Optionally, the system further comprises an alarm module, wherein the alarm module is configured to:
if the receiving module 61 does not receive the response signal sent by the Redis server, generating alarm information; the alarm information is used for informing an administrator that the state of the Redis server is an abnormal state.
Optionally, the system further comprises a storage module;
the receiving module 61 is further configured to receive configuration information input by an administrator and entry time of the configuration information;
the obtaining module 62 is further configured to obtain a state of the Redis server;
the storage module is used for storing the configuration information and the entry time according to the state of the Redis server.
Optionally, the storage module is specifically configured to:
if the state of the Redis server is a normal state, storing the configuration information and the entry time in the Redis server;
and if the state of the Redis server is an abnormal state, storing the configuration information and the entry time in the CDN server.
The information processing apparatus provided by the present embodiment is configured to execute the information processing method provided by the method embodiments shown in fig. 3 to 5. The technical principle is similar, and the detailed description is omitted.
Fig. 7 is a schematic structural diagram of an information processing apparatus according to a first embodiment of the present invention. The embodiment provides an information processing device for executing the information processing method provided by the method embodiments shown in fig. 3 to 5. As shown in fig. 7, the information processing apparatus provided in the present embodiment may include: a memory 72, a processor 71 and a transceiver 73. A memory 72 for storing program instructions. The transceiver 73 is used to communicate with other devices. And a processor 71 for calling the program instructions stored in the memory 72 to implement the information processing method provided by the method embodiments shown in fig. 3 to 5. The technical principle is similar, and the detailed description is omitted.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the embodiments of the present application, and are not limited thereto; although the embodiments of the present application have been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.
Claims (12)
1. An information processing method characterized by comprising:
receiving a service request sent by a user through terminal equipment;
acquiring first configuration information stored on a Redis server and second configuration information stored on a Content Delivery Network (CDN) server according to the service request;
and determining target configuration information according to the first configuration information and the second configuration information.
2. The method of claim 1, wherein before determining the target configuration information according to the first configuration information and the second configuration information, further comprising:
acquiring first priority information of the first configuration information and second priority information of the second configuration information;
the determining target configuration information according to the first configuration information and the second configuration information includes:
and determining the target configuration information in the first configuration information and the second configuration information according to the first priority information and the second priority information.
3. The method of claim 2, wherein the first priority information is a first time that the first configuration information is stored on the Redis server, and wherein the second priority information is a second time that the second configuration information is stored on the CDN server;
the determining the target configuration information in the first configuration information and the second configuration information according to the first priority information and the second priority information includes:
and determining the latest configuration information in the first configuration information and the second configuration information as the target configuration information according to the first time and the second time.
4. The method of any of claims 1 to 3, further comprising:
sending a heartbeat detection signal to the Redis server according to a preset period;
if a response signal sent by the Redis server is received, determining that the state of the Redis server is a normal state; if the response signal sent by the Redis server is not received, determining that the state of the Redis server is an abnormal state;
storing a state of the Redis server.
5. The method according to claim 4, wherein if no response signal sent by the Redis server is received, further comprising:
generating alarm information; the alarm information is used for informing an administrator that the state of the Redis server is an abnormal state.
6. The method of any of claims 1 to 3, further comprising:
receiving configuration information input by an administrator and the entry time of the configuration information;
acquiring the state of the Redis server;
and storing the configuration information and the entry time according to the state of the Redis server.
7. The method according to claim 6, wherein said storing the configuration information and the logging time according to the state of the Redis server comprises:
if the state of the Redis server is a normal state, storing the configuration information and the entry time in the Redis server;
and if the state of the Redis server is an abnormal state, storing the configuration information and the entry time in the CDN server.
8. An information processing apparatus characterized by comprising:
the receiving module is used for receiving a service request sent by a user through terminal equipment;
the obtaining module is used for obtaining first configuration information stored on a Redis server and second configuration information stored on a Content Delivery Network (CDN) server according to the service request;
and the determining module is used for determining target configuration information according to the first configuration information and the second configuration information.
9. The apparatus of claim 8, wherein the obtaining module is further configured to:
acquiring first priority information of the first configuration information and second priority information of the second configuration information;
the determining module is specifically configured to:
and determining the target configuration information in the first configuration information and the second configuration information according to the first priority information and the second priority information.
10. The apparatus of claim 9, wherein the first priority information is a first time that the first configuration information is stored on the Redis server, and wherein the second priority information is a second time that the second configuration information is stored on the CDN server;
the determining module is specifically configured to:
and determining the latest configuration information in the first configuration information and the second configuration information as the target configuration information according to the first time and the second time.
11. An information processing apparatus characterized by comprising: a processor, a memory, and a transceiver;
the transceiver is used for communicating with other equipment;
the memory to store instructions;
the processor to execute instructions stored in the memory to perform the method of any one of claims 1 to 7.
12. A storage medium, comprising: readable storage medium and computer program for implementing the method according to any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910967907.8A CN111769965B (en) | 2019-10-12 | 2019-10-12 | Information processing method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910967907.8A CN111769965B (en) | 2019-10-12 | 2019-10-12 | Information processing method, device and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111769965A true CN111769965A (en) | 2020-10-13 |
CN111769965B CN111769965B (en) | 2023-04-07 |
Family
ID=72718409
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910967907.8A Active CN111769965B (en) | 2019-10-12 | 2019-10-12 | Information processing method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111769965B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105490843A (en) * | 2015-12-01 | 2016-04-13 | 努比亚技术有限公司 | Information processing method and system |
CN106789249A (en) * | 2016-12-22 | 2017-05-31 | 北京五八信息技术有限公司 | Hot update method, client and server |
US20170207956A1 (en) * | 2016-01-14 | 2017-07-20 | Veniam, Inc. | Systems and methods for remote configuration update and distribution in a network of moving things |
US20180032323A1 (en) * | 2016-07-27 | 2018-02-01 | Salesforce.Com, Inc. | Rolling Version Update Deployment Utilizing Dynamic Node Allocation |
CN108011949A (en) * | 2017-11-30 | 2018-05-08 | 百度在线网络技术(北京)有限公司 | Method and apparatus for obtaining data |
CN108228282A (en) * | 2018-04-04 | 2018-06-29 | 北京三快在线科技有限公司 | For the method and device of Website page loading |
CN109582684A (en) * | 2018-11-30 | 2019-04-05 | 深圳市盟天科技有限公司 | A kind of update method of local cache data, device, server and storage medium |
CN110245307A (en) * | 2019-05-07 | 2019-09-17 | 广州虎牙信息科技有限公司 | Page cache management method and system, terminal device and storage medium |
-
2019
- 2019-10-12 CN CN201910967907.8A patent/CN111769965B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105490843A (en) * | 2015-12-01 | 2016-04-13 | 努比亚技术有限公司 | Information processing method and system |
US20170207956A1 (en) * | 2016-01-14 | 2017-07-20 | Veniam, Inc. | Systems and methods for remote configuration update and distribution in a network of moving things |
US20180032323A1 (en) * | 2016-07-27 | 2018-02-01 | Salesforce.Com, Inc. | Rolling Version Update Deployment Utilizing Dynamic Node Allocation |
CN106789249A (en) * | 2016-12-22 | 2017-05-31 | 北京五八信息技术有限公司 | Hot update method, client and server |
CN108011949A (en) * | 2017-11-30 | 2018-05-08 | 百度在线网络技术(北京)有限公司 | Method and apparatus for obtaining data |
CN108228282A (en) * | 2018-04-04 | 2018-06-29 | 北京三快在线科技有限公司 | For the method and device of Website page loading |
CN109582684A (en) * | 2018-11-30 | 2019-04-05 | 深圳市盟天科技有限公司 | A kind of update method of local cache data, device, server and storage medium |
CN110245307A (en) * | 2019-05-07 | 2019-09-17 | 广州虎牙信息科技有限公司 | Page cache management method and system, terminal device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111769965B (en) | 2023-04-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10158541B2 (en) | Group server performance correction via actions to server subset | |
CN106778260B (en) | Attack detection method and device | |
KR20210027400A (en) | Implementation of compliance settings by mobile devices to comply with configuration scenarios | |
US11061727B1 (en) | Preventing performance degradation over time in a cache | |
US20150227412A1 (en) | Server performance correction using remote server actions | |
US9514176B2 (en) | Database update notification method | |
US20220276845A1 (en) | Systems and methods for consistent feature flag evaluation | |
CN113190812A (en) | Login method, system, electronic equipment and storage medium | |
US20230205619A1 (en) | Common platform for fulfilling different actions | |
US20230161664A1 (en) | Method of responding to operation, electronic device, and storage medium | |
CN111769965B (en) | Information processing method, device and equipment | |
CN116561179A (en) | Data query method, device, equipment and program product | |
CN114138397B (en) | Page display method and device, electronic equipment and storage medium | |
CN114374657B (en) | Data processing method and device | |
US11662927B2 (en) | Redirecting access requests between access engines of respective disk management devices | |
CN113360689B (en) | Image retrieval system, method, related device and computer program product | |
CN113872994B (en) | Organization architecture synchronization method, device, computer equipment and storage medium | |
CN112860770A (en) | Report generation method and device, electronic equipment and storage medium | |
CN113595870B (en) | Push message processing method and device, electronic equipment and storage medium | |
US20240372878A1 (en) | New entity detection using probabilistic data structures | |
CN114491674A (en) | Log processing method, device and equipment based on block chain | |
CN115686911A (en) | Server-side self-checking method and device, electronic equipment and storage medium | |
CN114065274A (en) | Method, electronic device and computer program product for processing information | |
WO2024228831A1 (en) | New entity detection using probabilistic data structures | |
CN115168074A (en) | Method, device, medium and electronic equipment for controlling concurrency number of interface requests |
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 |