Information processing method, device and system and electronic equipment
By using a hash data structure to store monitoring data in the distributed cache, the problem of unreliability of Zookeeper notifications in complex network environments is solved, the reliability and timeliness of notifications in distributed coordination scenarios are achieved, and economic losses are reduced.
Patent Information
- Application Number
- CN202410772668.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-03
AI Technical Summary
Zookeeper's coordination notification mechanism cannot guarantee the reliability and timeliness of notifications in complex network environments and large-scale server scenarios, resulting in some servers not receiving notifications or delaying notifications.
By using a hash data structure to store monitoring data in the distributed cache, using the identifier of the notification information as a key and the identifier of the notified end as a field, the monitoring data is updated to determine whether the notification has been received, ensuring that the notifying end can understand the receipt of the notified end in a timely manner state.
It improves the reliability and timeliness of information notifications in distributed coordination scenarios, detects problems in a timely manner, and reduces economic losses and resource consumption.
Smart Images

Figure CN118590488A
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of distributed service technologies, and in particular to information processing methods, devices, systems, and electronic devices. Background Art
[0002] With the widespread use of distributed systems, distributed application coordination services (such as Zookeeper) have emerged. This coordination service can solve the problems of publish / subscribe, coordination / notification, cluster management, and manager (Master) election in distributed coordination scenarios.
[0003] However, the inventors found that Zookeeper's coordination notification mechanism usually cannot guarantee reliability and timeliness. This is especially true in complex network environments, such as across regions, across computer rooms, or in scenarios with a large number of servers (such as more than one thousand notified terminals). Often, some servers fail to receive notifications or receive notifications late.
[0004] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art. Summary of the invention
[0005] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.
[0006] Some embodiments of the present disclosure propose information processing methods, information processing devices, information processing systems, electronic devices, computer-readable media, and computer program products to solve one or more of the technical problems mentioned in the above background technology section.
[0007] In a first aspect, some embodiments of the present disclosure provide an information processing method, comprising: in response to receiving notification information sent by a notification end through a distributed application coordination service, reading information data of the notification information; determining target monitoring data in pre-stored monitoring data based on the information data of the notification information, wherein the monitoring data is used to characterize the situation in which each notified end receives the notification information; and updating the target monitoring data so that the notification end can determine whether each notified end has received the notification information based on the monitoring data.
[0008] In some embodiments, the monitoring data is stored in a distributed cache using a hash data structure, wherein the identifier of the notification information is used as the key, the identifier of the notified end is used as the field, and the status of whether the notification information is received is used as the corresponding value.
[0009] In some embodiments, based on the information data of the notification information, target monitoring data in pre-stored monitoring data is determined, including: determining an identifier of the notification information according to the information data of the notification information as a first identifier; determining an identifier of the notified end according to the attribute information of the notified end itself as a second identifier; and determining monitoring data that matches the first identifier and the second identifier from the pre-stored monitoring data as the target monitoring data.
[0010] In some embodiments, updating the target monitoring data includes: adjusting a status value in the target monitoring data that indicates whether the notification information has been received to a preset value that indicates whether the notification information has been received.
[0011] In a second aspect, some embodiments of the present disclosure provide an information processing device, comprising: an information reading unit, configured to read information data of the notification information in response to receiving notification information sent by a notification end through a distributed application coordination service; a data determination unit, configured to determine target monitoring data in pre-stored monitoring data based on the information data of the notification information, wherein the monitoring data is used to characterize the situation in which each notified end receives the notification information; and a data updating unit, configured to update the target monitoring data so that the notification end determines whether each notified end has received the notification information based on the monitoring data.
[0012] In some embodiments, the monitoring data is stored in a distributed cache using a hash data structure, wherein the identifier of the notification information is used as the key, the identifier of the notified end is used as the field, and the status of whether the notification information is received is used as the corresponding value.
[0013] In some embodiments, the data determination unit is further configured to determine the identifier of the notification information based on the information data of the notification information as the first identifier; determine the identifier of the notified end based on the attribute information of the notified end itself as the second identifier; and determine the monitoring data that matches the first identifier and the second identifier from the pre-stored monitoring data as the target monitoring data.
[0014] In some embodiments, the data updating unit is further configured to adjust the status value in the target monitoring data, which indicates whether the notification information has been received, to a preset value which indicates whether the notification information has been received.
[0015] In a third aspect, some embodiments of the present disclosure provide an information processing system, including: a notification end, configured to send notification information to each notified end through a distributed application coordination service, and to periodically query the monitoring data stored in a distributed cache to determine whether each notified end has received the notification information; a notified end, configured to perform information processing using the method described in any implementation method of the above-mentioned first aspect in response to receiving notification information sent by the notification end through the distributed application coordination service; and a distributed cache, configured to store monitoring data, and to support query and editing operations of the cached data by the notification end and the notified end.
[0016] In some embodiments, the notification end is further configured to: determine the identifier of each notified end to receive notification information; generate monitoring data based on the identifier of each notified end and the identifier of the notification information; store the monitoring data in a distributed cache and initialize it.
[0017] In some embodiments, periodic querying of monitoring data stored in a distributed cache includes: periodic querying of monitoring data stored in a distributed cache to determine the number of notified ends that have received the notification information; in response to determining that the number of notified ends that have received the notification information has reached a set value and the query duration has not reached the set duration, stopping the query.
[0018] In some embodiments, periodically querying the monitoring data stored in the distributed cache also includes: in response to determining that the query duration has reached a set duration and the number of notified ends that have received the notification information has not reached a set value, stopping the query, and generating prompt information based on the query results.
[0019] In a fourth aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the information processing method described in any implementation method in the above-mentioned first aspect.
[0020] In a fifth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the information processing method described in any one of the implementations in the first aspect above is implemented.
[0021] In a sixth aspect, some embodiments of the present disclosure provide a computer program product, including a computer program, which, when executed by a processor, implements the information processing method described in any implementation manner in the above-mentioned first aspect.
[0022] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: the information processing methods of some embodiments of the present disclosure can improve the reliability and timeliness of information notifications, especially for distributed coordination scenarios. Specifically, the distributed application coordination service can solve the problems of publish / subscribe, coordination / notification, cluster management, etc. in distributed coordination scenarios. However, this coordination notification mechanism usually cannot guarantee reliability and timeliness due to the lack of monitoring, that is, the lack of information determination and feedback. This is especially obvious in complex network environments, such as cross-regional, cross-computer room, etc., or in scenarios with a large number of notified terminals. There will be problems that some notified terminals have not received notifications, or have delayed receiving notifications. This is unacceptable in businesses that focus on timeliness, such as risk control, marketing, and other scenarios. At present, there is no unified and reasonable monitoring plan in the industry for this problem, so problems cannot be discovered in a timely manner, which can easily cause economic losses.
[0023] Based on this, the information processing method of some embodiments of the present disclosure can determine the corresponding target monitoring data and update the target monitoring data based on the information data of the notification information when the notified end receives the notification information sent by the notifying end. Among them, the monitoring data can be used to characterize the situation in which each notified end receives the notification information. In this way, the notifying end can determine whether each notified end has received the notification information it sent through the monitoring data. This can solve the problem of lack of monitoring for information notification using distributed application coordination services. By querying the monitoring data, the notifying end can accurately and timely understand whether each notified end has successfully received the notification information. Thereby, the reliability and timeliness of the notification information sent in distributed scenarios can be guaranteed. This can help to discover problems in a timely manner and reduce the resulting economic losses and resource consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0025] Figure 1 are flow charts of some embodiments of the information processing method of the present disclosure;
[0026] Figure 2 is a schematic diagram of the structure of some embodiments of the information processing device disclosed in the present invention;
[0027] Figure 3 It is a schematic diagram of the architecture of some application scenarios of the information processing system disclosed in the present invention;
[0028] Figure 4 yes Figure 3Flow chart of some embodiments of notifying the terminal to query monitoring data regularly;
[0029] Figure 5 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION
[0030] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0031] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.
[0032] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0033] In addition, the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".
[0034] Figure 1 The process 100 of some embodiments of the information processing method according to the present disclosure is shown. The method may include the following steps:
[0035] Step 101, in response to receiving notification information sent by a notification end through a distributed application coordination service, read information data of the notification information.
[0036] In some embodiments, the execution subject of the information processing method of the present disclosure (such as Figure 3 In the example, the notified end) can be connected to other electronic devices (such as Figure 3The distributed cache in the notification end) is used for communication connection. It can be understood that, under normal circumstances, the number of notification ends in this embodiment is often less than the number of notified ends. That is to say, one notification end can usually correspond to multiple (at least two) or even thousands of notified ends. In this distributed scenario, in order to ensure the timeliness and accuracy of information notifications, the notification information is generally sent through a distributed application coordination service (such as Zookeeper). That is, the notification end can send the notification information to the distributed application coordination service, and then the notification information can be sent to the notified end through the distributed application coordination service. That is, through the distributed application coordination service, the notified end can receive the notification information sent by the notification end. And then the information data of the notification information can be read.
[0037] Here, the notification information can be any information that the notifying end needs to send to the notified end, such as the management information of the notifying end to the notified end, data change information, etc. The above-mentioned distributed application coordination service is usually a service provided by a third party. As an example, in addition to the information content that needs to be notified, the notification information can also include the identifier of the notified end, such as the IP (Internet Protocol Address) Internet Protocol address. In this way, after receiving the notification information sent by the notifying end, the distributed application coordination service can send the information content that needs to be notified to the corresponding notified end according to the identifier of the notified end in the notification information. Thereby, the notified end can read the information data of the notification information.
[0038] For another example, the distributed application coordination service and the notified end may use a publish and subscribe method to implement the transmission of notification information. In this case, after receiving the notification information sent by the notifying end, the distributed application coordination service may send the notification information to the notified end that subscribes to the notification information. Alternatively, the notified end may monitor the distributed application coordination service. When monitoring that the distributed application coordination service receives the notification information sent by the notifying end, the notification information may be pulled to read its information data.
[0039] Step 102: Determine target monitoring data in pre-stored monitoring data based on the information data of the notification information.
[0040] In some embodiments, based on the information data of the notification information, the execution entity can determine the target monitoring data in the pre-stored monitoring data. Among them, the monitoring data can be used to characterize the situation in which each notified end receives the notification information. For example, each monitoring data corresponding to different notification information can be stored in different files (such as tables) respectively. That is, each monitoring data corresponding to the same notification information can be stored in the same file. At this time, the file name can be named according to the identifier of the notification information. Alternatively, in order to improve the query efficiency and avoid querying multiple files, each monitoring data corresponding to different notification information can be stored in different rows of the same file. That is, each monitoring data corresponding to the same notification information can be stored in the same row. At this time, the identifier of the notification information can be used as the retrieval key field for each row.
[0041] As an example, the notification information may include an identifier of the notification information, such as the ID (Identity document, unique code) of this notification. At this time, the execution subject can filter out monitoring data that matches (such as the same) the identifier from the stored monitoring data according to the identifier in the notification information, such as the file or line where it is located, as the target monitoring data.
[0042] It should be noted that the storage location of the monitoring data is not restricted, such as it can be stored in the notification end or a third party, or it can be stored in a database or distributed cache. It is understandable that since a notification end often corresponds to a large number of notified ends, if the monitoring data is stored in the notification end, a large number of notified ends will access the notification end within a certain period of time. This large number of interactive accesses will usually cause information congestion, thereby affecting the normal business processing of the notification end. In addition, if the monitoring data is stored in a database, a large number of notified ends will also access and query the database within a certain period of time, resulting in a high concurrency of the database. These situations will reduce the query efficiency of the monitoring data, thereby affecting the subsequent update of the monitoring data, and then affecting the timeliness of whether the monitoring notification information is received.
[0043] Based on the above considerations, in some embodiments, the monitoring data can be stored in a third-party distributed cache (such as Redis) using a hash data structure. In the distributed cache, the identifier of the notification information can be used as the key of the monitoring data, the identifier of the notified end can be used as the field of the monitoring data, and the status of whether the notification information is received can be used as the value corresponding to the monitoring data. It can be understood that by using a third-party distributed cache, the changes to the notifying end and the notified end are relatively small, which can reduce the impact on existing businesses. At the same time, based on the characteristics of distributed cache shared cache services and cluster deployment, the overall lightweight and high-performance solution can be achieved.
[0044] Furthermore, in this case, the execution subject can first determine the identifier of the notification information (such as the notification ID) based on the information data of the notification information as the first identifier. Then, the identifier of the notified end (such as the IP address) can be determined based on the attribute information of the notified end itself as the second identifier. After that, the monitoring data that matches the first identifier and the second identifier can be determined from the pre-stored monitoring data as the target monitoring data. That is, the monitoring data whose key is the notification ID and whose field is the IP address is determined as the target monitoring data.
[0045] Step 103: Update target monitoring data.
[0046] In some embodiments, based on the target monitoring data determined in step 102, the execution subject may update the target monitoring data so that the notification end determines whether each notified end has received the notification information based on the monitoring data. As an example, the execution subject may write the identifier of its own notified end in the file or line where the target monitoring data is located. In this way, when the notification end queries the monitoring data, it can determine that the notified end indicated by the identifier has successfully received the notification information.
[0047] Optionally, for the monitoring data using the hash data structure, the execution subject can adjust the status value in the target monitoring data, which indicates whether the notification information has been received, to a preset value indicating whether the notification information has been received. The preset value here can be set according to actual needs, such as adjusting the Value in the target monitoring data to 1. In this way, when the notification end queries the monitoring data, it can be determined that the notified end indicated by the monitoring data with a Value of 1 has successfully received the notification information.
[0048] It can be seen from the above description that the information processing method of some embodiments of the present disclosure, when the notified end receives the notification information sent by the notifying end, can determine the corresponding target monitoring data and update the target monitoring data based on the information data of the notification information. Among them, the monitoring data can be used to characterize the situation in which each notified end receives the notification information. In this way, the notifying end can determine whether each notified end has received the notification information it sent through the monitoring data. This can solve the problem of lack of monitoring for information notification using distributed application coordination services. By querying the monitoring data, the notifying end can accurately and timely understand whether each notified end has successfully received the notification information. Thereby, the reliability and timeliness of the notification information sent in distributed scenarios can be guaranteed. This can help to discover problems in a timely manner and reduce the resulting economic losses and resource consumption.
[0049] Further references Figure 2 , as a response to the above Figure 1 The present disclosure provides some embodiments of an information processing device. Figure 1 The device can be specifically applied to various electronic devices.
[0050] like Figure 2 As shown, the information processing device 200 of some embodiments may include: an information reading unit 201, configured to read information data of the notification information in response to receiving notification information sent by the notification end through the distributed application coordination service; a data determination unit 202, configured to determine target monitoring data in pre-stored monitoring data based on the information data of the notification information, wherein the monitoring data is used to characterize the situation in which each notified end receives the notification information; and a data updating unit 203, configured to update the target monitoring data so that the notification end determines whether each notified end has received the notification information based on the monitoring data.
[0051] In some embodiments, the monitoring data may be stored in a distributed cache using a hash data structure, wherein the identifier of the notification information is used as the key, the identifier of the notified end is used as the field, and the status of whether the notification information is received is used as the corresponding value.
[0052] In some embodiments, the data determination unit 202 can be further configured to determine the identifier of the notification information based on the information data of the notification information as the first identifier; determine the identifier of the notified end based on the attribute information of the notified end itself as the second identifier; and determine the monitoring data that matches the first identifier and the second identifier from the pre-stored monitoring data as the target monitoring data.
[0053] In some embodiments, the data updating unit 203 may be further configured to adjust the status value in the target monitoring data, which indicates whether the notification information has been received, to a preset value which indicates whether the notification information has been received.
[0054] It is understandable that the units described in the information processing device 200 are similar to those described in the reference Figure 1 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the information processing device 200 and the units included therein, and will not be described in detail here.
[0055] The embodiment of the present disclosure also provides an information processing system. Figure 3 , which shows a schematic diagram of the architecture of some embodiments of the information processing system of the present disclosure. Here, the information processing system may include a notification terminal, multiple notified terminals and a cache server. Among them, the cache server may provide a distributed cache service.
[0056] like Figure 3As shown, the notification end (i.e., the notification end system in the figure) can send notification information to each notified end (i.e., the listening end system instances 1, 2, 3, ..., N in the figure) through the distributed application coordination service (i.e., zookeeper in the figure). And the monitoring data stored in the distributed cache (i.e., the cache server) can be queried periodically to determine whether each notified end has received the notification information. When the notified end receives the notification information sent by the notification end through the distributed application coordination service, the above Figure 1 The method described in any implementation of the embodiment performs information processing. The distributed cache can be used to store monitoring data and support query and edit operations on cache data by the notifying end and the notified end.
[0057] In some embodiments, before sending the notification information, the notification end may also determine the identifiers of each notified end to receive the notification information. Then, based on the identifiers of each notified end and the identifier of the notification information, the monitoring data is generated. After that, the monitoring data may be stored in the distributed cache and initialized. Here, the generation method and storage method of the monitoring data may refer to Figure 1 Related description in the embodiments.
[0058] As an example, Figure 3 The notification end system in can obtain the IP addresses of all service instances of the listening end system, initialize the monitoring data structure, and store it in the distributed cache Redis. Among them, the monitoring data can use the Hash structure of Redis. That is, the unique ID of this notification is used as the cache key, each IP address is used as the Field, and the status of whether it is successfully received is used as the Value. And the values corresponding to all IP addresses are initialized to 0, which means that the notification was not successfully received. Afterwards, the notification end system can add the unique ID of this notification to the notification information and send it to Zookeeper.
[0059] Furthermore, the service instance of the listening end system can listen to Zookeeper. When the notification is successfully received, the unique ID of this notification and the IP address of this instance can be read in the notification information. The monitoring data of the unique ID of this notification in the distributed cache Redis, the value of the IP address of this instance is updated to 1, which means that the notification is successfully received.
[0060] In some optional implementations, such as Figure 4 As shown in the flowchart, the notification end can periodically query the monitoring data stored in the distributed cache to determine the number of notified ends that have received the notification information. The number here can be a specific number or other quantitative indicators, such as the successful reception ratio. If it is determined that the number of notified ends that have received the notification information has reached the set value and the query duration has not reached the set duration, the query can be stopped.
[0061] Furthermore, if it is determined that the query duration has reached the set duration and the number of notified terminals that have received the notification information has not reached the set value, a prompt message may be generated based on the query result while the query is stopped. The prompt message may be used to indicate that there are notified terminals that have not received the notification information, and its specific content is also not limited.
[0062] As an example, Figure 3 The notification end system in can set a 5-minute scheduled task. During the task, the distributed cache Redis can be queried every 1 second to read the monitoring data of the unique ID of this notification. If the Value of an IP address is 1, it means that the instance successfully received the notification. And the judgment can be made by calculating the success ratio. If all instances receive the notification successfully, the scheduled task ends and this process ends. If not all are received successfully, continue to execute. If the scheduled task time limit is exceeded and not all are successful, an alarm (i.e., warning) message can be issued to report the success ratio and the IP address of the unsuccessful instance.
[0063] Reference below Figure 5 , which shows a structural schematic diagram of an electronic device 500 suitable for implementing some embodiments of the present disclosure. Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0064] like Figure 5 As shown, the electronic device 500 may include a processing device 501 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0065] Typically, the following devices may be connected to the I / O interface 505: input devices 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 507 including, for example, a speaker, a vibrator, etc.; storage devices 508 including, for example, a disk, a memory card, etc.; and communication devices 509. The communication devices 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Figure 5The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 5 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0066] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.
[0067] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0068] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (Hyper Text Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0069] The computer-readable medium may be included in the electronic device; or it may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: responds to receiving notification information sent by the notification end through the distributed application coordination service, reads the information data of the notification information; determines the target monitoring data in the pre-stored monitoring data based on the information data of the notification information, wherein the monitoring data is used to characterize the situation of each notified end receiving the notification information; and updates the target monitoring data so that the notification end determines whether each notified end has received the notification information based on the monitoring data.
[0070] In addition, computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0071] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0072] The units described in some embodiments of the present disclosure may be implemented by software or hardware. The units described may also be provided in a processor, for example, may be described as: a processor includes an information reading unit, a data determination unit, and a data update unit. The names of these units do not, in some cases, constitute limitations on the units themselves, for example, the information reading unit may also be described as a "unit for reading information data of notification information".
[0073] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0074] Some embodiments of the present disclosure further provide a computer program product, including a computer program, which implements any of the above-mentioned information processing methods when executed by a processor.
[0075] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.
Claims
1. An information processing method, comprising: In response to receiving notification information sent by the notification end through the distributed application coordination service, reading information data of the notification information; Based on the information data of the notification information, determining target monitoring data in pre-stored monitoring data, wherein the monitoring data is used to characterize the situation in which each notified terminal receives the notification information; as well as The target monitoring data is updated so that the notifying end determines whether each notified end has received the notification information according to the monitoring data.
2. The information processing method according to claim 1, wherein: The monitoring data is stored in a distributed cache using a hash data structure, wherein the identifier of the notification information is used as a key, the identifier of the notified end is used as a field, and the status of whether the notification information is received is used as a corresponding value.
3. The information processing method according to claim 2, wherein: The determining, based on the information data of the notification information, target monitoring data in pre-stored monitoring data comprises: Determine, according to the information data of the notification information, an identifier of the notification information as a first identifier; Determining an identifier of the notified terminal according to the attribute information of the notified terminal itself as a second identifier; From the pre-stored monitoring data, monitoring data matching the first identifier and the second identifier is determined as target monitoring data.
4. The information processing method according to claim 2, wherein: The updating of the target monitoring data comprises: The status value in the target monitoring data, which indicates whether the notification information has been received, is adjusted to a preset value which indicates whether the notification information has been received.
5. An information processing device, comprising: an information reading unit, configured to read information data of the notification information in response to receiving notification information sent by the notification end through the distributed application coordination service; A data determination unit is configured to determine target monitoring data in pre-stored monitoring data based on information data of the notification information, wherein the monitoring data is used to characterize a situation in which each notified terminal receives the notification information; as well as The data updating unit is configured to update the target monitoring data so that the notifying end determines whether each notified end has received the notification information according to the monitoring data.
6. An information processing system comprising: The notifying end is configured to send notification information to each notified end through a distributed application coordination service, and to periodically query monitoring data stored in a distributed cache to determine whether each notified end has received the notification information; The notified end is configured to process the information by using the method according to any one of claims 1 to 4 in response to receiving the notification information sent by the notifying end through the distributed application coordination service; The distributed cache is configured to store the monitoring data and support query and edit operations of the notifying end and the notified end on the cached data.
7. The information processing system according to claim 6, wherein: The notification terminal is also configured to: Determining the identifier of each notified terminal to receive the notification information; generating the monitoring data based on the identifiers of the notified terminals and the identifier of the notification information; The monitoring data is stored in the distributed cache and initialized.
8. The information processing system according to claim 6 or 7, wherein: The periodic query of the monitoring data stored in the distributed cache includes: Periodically query the monitoring data stored in the distributed cache to determine the number of notified terminals that have received the notification information; In response to determining that the number of notified terminals that have received the notification information has reached a set value and the query duration has not reached the set duration, the query is stopped.
9. The information processing system according to claim 8, wherein: The periodic query of the monitoring data stored in the distributed cache also includes: In response to determining that the query duration reaches the set duration and the number of notified terminals that receive the notification information does not reach the set value, the query is stopped, and prompt information is generated according to the query result.
10. An electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 4.
11. A computer readable medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
12. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method according to any one of claims 1 to 4.
