Subscription data push method, device, system, electronic device and storage medium
By pushing subscription data in parallel on each storage node, the problem of high pressure on a single storage node in the existing technology is solved, the library outgoing efficiency and network bandwidth utilization are improved, and multiple storage nodes are enabled to send out libraries concurrently.
Patent Information
- Application Number
- CN202110786258.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-12
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing subscription data push system, deploying task services and data push services on multiple storage nodes causes video or image information to be returned to users through a single storage node, which puts huge pressure on network bandwidth and reduces the efficiency of outsourcing.
Each storage node exports the subscription data stored on it and pushes it in parallel. By obtaining the current subscription task, searching for qualified structured data, filtering the target data and pushing the data to the receiving end, multiple storage nodes can be issued concurrently. library.
It improves the efficiency of outsourcing, reduces the pressure on network bandwidth, and avoids data backlog and excessive consumption of system resources.
Smart Images

Figure CN113656683B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of video image technology, and in particular to a subscription data push method, device, system, electronic device and storage medium. Background Art
[0002] The subscription data push system usually includes multiple storage nodes for storing video image information data. When a user needs to obtain the video or image information stored in the storage node (the process of pushing the data that the user wants to obtain to the user is also called data out of the warehouse), the subscription method is usually adopted. First, a subscription task is created through the entry of the subscription data push system. The subscription task specifies the storage time, type, required data format and other attribute information of the video or image information to be subscribed. The storage node executes the subscription task and sends the user the video or image information that meets the user's requirements.
[0003] In the existing subscription method, a task service is deployed on one node, and a data push service is deployed on multiple storage nodes. The node with the task service deployed receives the subscription task initiated by the user, and assigns the subscription task to the data push service on a certain storage node. The data push service on the storage node obtains the data corresponding to the subscription task from each storage node and pushes it to the subscription receiving address. It can be seen that the video or image information in each storage node that meets the subscription task requirements will be pushed to the user by the data push service on the storage node, which causes a huge pressure on the network bandwidth when the video or image information is returned to the user through the storage node, thereby reducing the efficiency of outbound delivery. Summary of the invention
[0004] The purpose of the present invention is to provide a subscription data push method, device, system, electronic device and storage medium, each storage node outsources the subscription data stored thereon, so as to realize multiple storage nodes outsourcing in parallel, thereby improving outsourcing efficiency.
[0005] In order to achieve the above purpose, the technical solution adopted by the embodiment of the present invention is as follows:
[0006] In a first aspect, the present invention provides a subscription data push method, which is applied to a storage node in a subscription data push system; the storage node stores multiple object data, the object data and structured data having a corresponding relationship therewith form a data pair, and the structured data contains the storage address of the object data forming a data pair with the structured data on the storage node; the method comprises: obtaining a current subscription task; the current subscription task comprises a current subscription time period, a current receiving end and a current filtering condition; searching for structured data of the node within the current subscription time period; the structured data of the node is structured data stored in the storage node with the object data forming a data pair therewith; according to the current filtering condition, determining target structured data from the structured data of the node within the current subscription time period; obtaining data to be pushed according to the object data corresponding to the target structured data and / or the target structured data; pushing the data to be pushed to the current receiving end, the data to be pushed being a subset of the subscription data to be subscribed by the current subscription task.
[0007] In a second aspect, the present invention provides a subscription data push device, which is a storage node in a subscription data push system, and multiple object data are stored on the storage node, and the object data and structured data having a corresponding relationship therewith form a data pair, and the structured data includes the storage address of the object data that forms a data pair with the structured data on the storage node; the device includes: a task acquisition module, used to obtain the current subscription task; the current subscription task includes the current subscription time period, the current receiving end and the current filtering condition; a data search module, used to search for the structured data of this node within the current subscription period; the structured data of this node is the structured data stored in the storage node with the object data that forms a data pair with it; a screening module, used to determine the target structured data from the structured data of this node within the current subscription period according to the current filtering condition; a processing module, used to obtain the data to be pushed according to the object data corresponding to the target structured data and / or the target structured data; a push module, used to push the data to be pushed to the current receiving end, and the data to be pushed is a subset of the subscription data to be subscribed by the current subscription task.
[0008] In a third aspect, the present invention provides a subscription data push method, which is applied to a subscription data push system, wherein the subscription data push system comprises multiple storage nodes and a gateway; the gateway receives an entry request and routes the entry request to one of the multiple storage nodes; the multiple storage nodes execute the subscription data push method provided by the first aspect of the present invention, and push the subscription data to be subscribed by the current subscription task in parallel.
[0009] In a fourth aspect, the present invention provides a subscription data push system, which includes multiple storage nodes and a gateway; the gateway receives an entry request and routes the entry request to one of the multiple storage nodes; the multiple storage nodes execute the subscription data push method provided in the first aspect of the present invention, and push the subscription data to be subscribed by the current subscription task in parallel.
[0010] In a fifth aspect, the present invention provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the above-mentioned subscription data push method.
[0011] In a sixth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which implements the above-mentioned subscription data push method when executed by a processor.
[0012] Compared with the prior art, the present invention enables the incoming data to be distributedly stored in various storage nodes, and promptly notifies all storage nodes when the subscription task is updated, so that all storage nodes can execute the updated subscription tasks in parallel, so as to realize concurrent outbound delivery of all storage nodes and improve outbound delivery efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0014] Figure 1 The following is an architecture diagram of a subscription data push system provided by an embodiment of the present invention.
[0015] Figure 2 A block diagram of a storage node provided by an embodiment of the present invention is shown.
[0016] Figure 3 A flow chart of a subscription data push method provided by an embodiment of the present invention is shown.
[0017] Figure 4 A flow chart of a subscription data push device provided by an embodiment of the present invention is shown.
[0018] Icons: 10 - storage node; 11 - processor; 12 - memory; 13 - bus; 14 - communication interface; 20 - gateway; 30 - external system; 100 - subscription data push device; 110 - task acquisition module; 120 - data search module; 130 - screening module; 140 - processing module; 150 - push module. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0020] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0021] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0022] In the description of the present invention, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. appear to indicate an orientation or position relationship, they are based on the orientation or position relationship shown in the accompanying drawings, or are the orientation or position relationship in which the product of the invention is usually placed when used. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0023] In addition, the terms “first”, “second”, etc., if used, are merely used to distinguish between the descriptions and should not be understood as indicating or implying relative importance.
[0024] It should be noted that, in the absence of conflict, the features in the embodiments of the present invention may be combined with each other.
[0025] In the prior art, a subscription data push system generally includes a storage node and may also include a gateway, wherein the storage node is used to store data such as videos and images, and the gateway is used to implement communication between the subscription data push system and external systems. Figure 1 , Figure 1An architecture diagram of a subscription data push system provided in an embodiment of the present invention is shown. The subscription data push system includes a storage node 10 and a gateway 20. An external system 30 is communicatively connected to the gateway 20. The gateway 20 is communicatively connected to the storage node 10. When there are multiple gateways 20, the multiple gateways 20 can communicate with the multiple storage nodes 10 through a network. There can also be multiple storage nodes 10, and the multiple storage nodes 10 can form a storage cluster. The storage nodes 10 in the same storage cluster can communicate with each other through special components.
[0026] When the external system 30 obtains the video or image data stored in the storage node 10 through the gateway 20, a subscription method is usually adopted. Subscription is a subscription request sent by the subscriber (i.e., the external system 30 requesting the video or image) to the data (in the video image information system, the data information usually refers to the video data or image data) holder. In one case, the subscriber and the data holder can be in a superior and subordinate relationship. At this time, the superior system initiates a subscription request to the subordinate system, and the subordinate system returns the qualified data to the superior system. The superior system and the subordinate system are relative. The superior and the subordinate can be understood as the size relationship when distinguished by jurisdiction. For example, the superior system can be the video image information system of the head office, and the corresponding subordinate system can be the video image information system of the branch office, etc.; the superior and the subordinate can also be understood as the superior and inferior connection relationship in the system architecture when cascading. For example, a local area network is the superior system, and the subnet included in the local area network is the subordinate system. In another case, the subscriber and the data holder can also be systems of the same level, or units across different jurisdictions, or systems of different network types. Video or image data may include data on faces, people, motor vehicles, non-motor vehicles, objects, scenes, and other types of data.
[0027] Subscription requests are also commonly referred to as subscription tasks. Subscribers initiate subscription tasks, and storage nodes 10 execute subscription tasks to return videos or pictures that meet the requirements of the subscription tasks to subscribers. The requirements of subscription tasks usually include, but are not limited to, subscription time (i.e., the time when the video or picture is generated or stored), subscription content receiving address, subscription content type, etc. Subscribers can also update subscription tasks. Update operations include creating new subscription tasks, modifying subscription tasks, deleting subscription tasks, and querying subscription tasks. When a subscription task is updated, the storage node 10 performs corresponding operations according to the updated subscription task. For example, after a subscription task is modified, the storage node 10 executes the modified subscription task to return videos or pictures that meet the modified subscription task to the subscriber.
[0028] In the prior art, the subscription task is uniformly managed by one of the multiple storage nodes 10, that is, the external system sends the subscription task to the storage node 10 that manages the subscription task through the gateway 20, and the storage node 10 is responsible for processing the subscription task. The videos or images on other storage nodes 10 that meet the subscription task requirements are finally released from the warehouse (pushed to the subscriber) through the storage node 10. In other words, there is only one outlet for subscription data push. The inventor found that in this case, the efficiency of releasing the warehouse is particularly low. Taking a 500KB picture as an example, under the condition of a gigabit network, only 1000 / 8MBps÷500 / 1024MB=256 pictures can be pushed per second at most. This does not include the bandwidth occupied by the storage (i.e., the video or picture is stored in the storage node). The number of access devices of the external system of a general medium-sized subscription data push system can reach hundreds or thousands, and the number of access devices of a large-scale subscription data push system can even be tens of thousands. Taking the example of each access device capturing an average of 0.5 pictures per second, 1000 access devices can generate 500 pictures per second. When the speed of warehousing (data is stored in the storage node of the subscription data push system) is greater than 256 pictures per second, the speed of outbound storage will always lag behind the speed of warehousing, resulting in data backlog. Videos and pictures have a storage cycle (videos and pictures are deleted after expiration), and it is impossible to accumulate them indefinitely. Eventually, there will be videos and / or pictures that are not pushed to subscribers in time and are deleted because the storage cycle is reached. In addition, picture data transmission will also be generated between storage nodes 10, further increasing the consumption of system resources. From the above analysis, it can be seen that there is only one outbound exit, which causes great pressure on the network bandwidth when transmitting videos and / or pictures, and ultimately leads to low outbound efficiency.
[0029] In response to the above problems and analysis of the above problems, the embodiments of the present application propose a subscription data push method, device, storage node and storage medium, which can realize the simultaneous release of all storage nodes, thereby improving the efficiency of the release, which will be described in detail below.
[0030] Please refer to Figure 2 , Figure 2 Provided Figure 1 Schematic diagram of a storage node 10. The storage node 10 includes a processor 11, a memory 12, a bus 13, and a communication interface 14. The processor 11 and the memory 12 are connected via the bus 13, the processor 11 is connected to the gateway 20 via the communication interface 14, and the storage nodes 10 are connected to each other via a network communication.
[0031] The processor 11 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 11 or instructions in the form of software. The above processor 11 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components.
[0032] The memory 12 is used to store programs, such as the subscription data push device of the embodiment of the present application. The subscription data push device includes at least one software function module that can be stored in the memory 12 in the form of software or firmware. After receiving the execution instruction, the processor 11 executes the program to implement the subscription data push method of the embodiment of the present application.
[0033] The memory 12 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. Optionally, the memory 12 may be a storage device built into the processor 11, or may be a storage device independent of the processor 11.
[0034] The bus 13 may be an ISA bus, a PCI bus, or an EISA bus, etc. Figure 2 It is represented by only one bidirectional arrow, but it does not mean that there is only one bus or one type of bus.
[0035] exist Figure 1 and Figure 2 Based on the above, the embodiment of the present invention provides a subscription data push method, which can be applied to Figure 1 and Figure 2 A storage node 10 is provided, wherein a plurality of object data are stored on the storage node, wherein the object data and structured data having a corresponding relationship therewith form a data pair, and the structured data includes the storage address on the storage node of the object data forming the data pair with the structured data.
[0036] An object data may contain at least one sub-object data. It is understandable that when an object data contains multiple sub-object data, the sub-object data and the sub-structured data corresponding to it form a sub-data pair, and the sub-structured data contains the storage address of the sub-object data forming the sub-data pair with the sub-structured data on the current storage node.
[0037] Please refer to Figure 3 , Figure 3 A flowchart of a subscription data push method provided by an embodiment of the present invention is shown, and the method comprises the following steps:
[0038] Step S100, obtaining a current subscription task; the current subscription task includes a current subscription time period, a current receiving end, and a current filtering condition.
[0039] In one example, a node subscription task list is maintained on the storage node, and the current subscription task is obtained from the corresponding node subscription task list. The node subscription task list maintains multiple subscription tasks to be executed. The subscription task specifies the time period corresponding to the data to be subscribed. According to the time period corresponding to the subscription data, the time to start executing the subscription task can be determined. The current subscription task refers to the subscription task to be executed currently. If the time for a subscription task to start execution arrives, the subscription task will be used as the current subscription task. For example, the current time is 4 o'clock, and a subscription task subscribes to data generated between 5 and 6 o'clock. When 5 o'clock arrives, the data to be subscribed by the subscription task begins to be generated, and the subscription task is ready to start execution. The subscription task is used as the current subscription task. For another example, the current time is 4 o'clock, and a subscription task subscribes to data generated between 2 and 3 o'clock. The data to be subscribed by the subscription task has already been generated, and the subscription task can be directly used as the current subscription task.
[0040] In addition to specifying the time period corresponding to the subscribed data, the subscription task can also specify the data receiver and filtering conditions. The filtering conditions indicate the requirements for the data to be subscribed by the subscription task. Accordingly, the current subscription time period, current receiver and current filtering conditions can be specified in the current subscription task. For example, the current subscription time period is 5:00-6:00, and the current filtering condition is "color partial image of vehicle", indicating that the current subscription task subscribes to the data generated from 5:00-6:00, the target is a vehicle, the image is a color image, and the image field of view is a partial image.
[0041] Step S200, searching for structured data of the node in the current subscription period; the structured data of the node is structured data whose corresponding object data is stored in the storage node.
[0042] The object data may be a video or an image. The structured data corresponding to the object data may be information used to describe the object data. For example, the structured data corresponding to the object data may include one or more of the ID of the object data, the type of target contained in the object data, the attributes of the target contained in the object data, the ID of the device that photographed the object data, the image type of the object data, the shooting time of the object data, and the image field of view of the object data. The structured data corresponding to the object data may also include the storage address of the object data on the storage node. An object data may include multiple interrelated sub-object data. For example, an object data may include 3 sub-object data, and the 3 sub-object data are: a panoramic picture (the panoramic picture contains two vehicles), the vehicle local area corresponding to the panoramic picture, and the panoramic picture of the vehicle. Figure 1 , the vehicle parts included in the panorama Figure 2 Correspondingly, the structured data corresponding to the object data also includes three sub-structured data, and the three sub-structured data respectively include the storage address of the corresponding sub-object data on the storage node.
[0043] Structured data within the current subscription period may refer to the time when the structured data is generated within the current subscription period, or the time when the object data corresponding to the structured data is generated within the current subscription period, or the time when the structured data is stored in the structured data storage space within the current subscription period, or the time when the object data is stored on the storage node within the current subscription period, or the time when the corresponding input data of the structured data or object data is generated or reaches the subscription data push system within the current subscription period.
[0044] A plurality of storage nodes form a storage cluster. The subscription data push system also includes a structured data storage space for storing structured data. In one example, each storage node stores both object data and structured data. In this case, a plurality of storage nodes form an object storage cluster and a structured storage cluster. That is, the structured data storage space is distributed in each storage node. In another example, each storage node stores object data, and a small number of storage nodes store structured data. That is, the structured data storage space is distributed in certain storage nodes. In another example, each storage node stores object data, and a structured data storage device is set up for structured data, and all structured data is stored in the structured storage device. Therefore, when a storage node stores certain object data, the structured data that forms a data pair with the object data may be stored in the storage node, or may not be stored in the storage node. For example, the structured data corresponding to the object data of each storage node in the cluster may be uniformly stored in a structured data storage device. It should be noted that no matter the structured data is stored in other storage nodes or in a unified structured data storage space, this storage node can obtain the structured data through the communication connection with the structured storage space.
[0045] It is understandable that object data is usually videos, images, etc., which are large and frequently transmitted, which will occupy a large bandwidth. Structured data is small, and the transmission process will not have much impact on bandwidth and data processing speed. Therefore, even if the structured data and its corresponding object data are not stored in the same storage node, when necessary, the storage node of the object data can obtain the structured data from the storage space where the structured data is located without causing much impact on bandwidth and data processing speed.
[0046] Object data can be evenly stored in each storage node according to a certain strategy. In this way, when executing the current subscription task, each storage node searches for the structured data of this node within the current subscription period, generates the data to be pushed corresponding to this storage node based on the structured data of this node, and then pushes it by the data push service on this storage node. In this way, multiple storage nodes can realize the parallel push of subscription data to be subscribed by the current subscription task.
[0047] In one example, the incoming data containing the object data is routed to the storage node, the storage node stores the object data in the incoming data in the storage node, deletes or sets the object data in the incoming data to zero, and adds the storage address of the object data on the storage node to the incoming data to obtain the structured data corresponding to the object data, and then stores the structured data in the structured data storage space. As mentioned above, the structured data storage space can be located in the storage node, in other storage nodes, or in a structured data storage device.
[0048] Step S300: determining target structured data from the structured data of the node within the current subscription period according to the current screening condition.
[0049] The actual scenarios are different, and the data information to be subscribed is also different. For example, in some scenarios, only vehicle information is needed, and in some scenarios, only driver information is needed. In order to make the pushed subscription content more in line with the needs of the receiver, you can set filtering conditions and filter out the target structured data through the filtering conditions.
[0050] Structured data is the descriptive information of object data, including the attributes of object data. The filtering condition can correspond to one attribute or a combination of multiple attributes contained in the structured data. If the attribute value of a certain attribute in the structured data meets the attribute value in the filtering condition, the structured data of this node in the current subscription period is the target structured data. The filtering condition can also be set to any value, that is, no matter what the attribute value of the attribute in the structured data is, it is used as the target structured data.
[0051] In one example, the value of the attribute "TYPE" in the structured data is used as the screening condition. The attribute value of this attribute can be a vehicle panoramic image, a vehicle color partial image, a license plate binary image, a driver's facial feature image, a vehicle logo, a violation composite image, a scene image, etc.
[0052] In one example, the filtering condition may require that the image type is a license plate binary image. In this case, the attribute value of the image type attribute of the structured data is the license plate binary image structured data as the target structured data. In another example, the filtering condition may require that the image type is a general image (i.e., any value). In other words, no matter what the attribute value of the image type attribute of the structured data is, it will be used as the target structured data.
[0053] When a structured data includes multiple sub-structured data, the granularity of filtering the structured data of the node in the current subscription period using the filtering condition may be the granularity of the sub-structured data. For example, one of the multiple sub-structured data in a structured data may be filtered out.
[0054] For example, this node has 3 structured data, and the data format is shown in the following table.
[0055]
[0056]
[0057]
[0058] The current filtering condition 1 is that the image type is 01, that is, the large picture of the vehicle. The structured data 2 (Type=10) of this node and the structured data 3 (Type=14) of this node do not meet the requirements and are filtered out. The first sub-structured data of the structured data 1 of this node is also filtered out, leaving only the second sub-structured data of the structured data 1 of this node as the target structured data.
[0059] The current filtering condition 2 is that the image type is 100, that is, general pictures. General pictures are equivalent to all, so Type is not filtered, and the structured data of this node within the current subscription period are all used as target structured data.
[0060] Step S400: obtaining data to be pushed according to the object data corresponding to the target structured data and / or the target structured data.
[0061] For example, in some subscription tasks, the data to be pushed is required to be structured data. In this case, the data to be pushed can be obtained based on the target structured data; in some subscription tasks, the data to be pushed is required to be a combination of structured data and object data. In this case, the data to be pushed needs to be obtained based on the object data corresponding to the target structured data and the target structured data.
[0062] Step S500: Push the data to be pushed to the current receiving end, wherein the data to be pushed is a subset of the subscription data corresponding to the current subscription task.
[0063] In the subscription data push system, each storage node is responsible for pushing the data to be pushed stored in the object data storage node to the current receiving end, thereby pushing the subscription data in parallel. When distributed storage is used for object data, the object data corresponding to the data to be pushed is stored in multiple storage nodes, that is, the data to be pushed pushed by each storage node is part of the subscription data corresponding to the current subscription task, and the data to be pushed pushed by each storage node is a subset of the subscription data corresponding to the current subscription task.
[0064] The current receiving end can be one or more IP addresses. If the current receiving end is multiple IP addresses, the subscription data push service randomly selects one of them for push. If the push fails for multiple times (for example, 3 times), the subscription task will be canceled.
[0065] In the embodiment of the present application, the incoming data is already distributed and stored on each storage node when it is stored in the storage node. Ideally, the data stored on each storage node is evenly distributed. For a subscription task of pushing 256 pictures to the receiving end, since these pictures are scattered on each storage node, each of the N storage nodes is responsible for pushing one of them. The outbound speed increases linearly with the number of storage nodes. In the worst case, all incoming data is stored in one storage node, and the outbound speed degenerates to the speed of the above-mentioned prior art. Therefore, the outbound speed achieved by the embodiment of the present application must be no less than that of the above-mentioned prior art. In addition, there will be no transmission of object data between storage nodes, saving internal bandwidth.
[0066] In a specific implementation, the current subscription task also includes current data processing conditions, and the current data processing conditions include image field of view and / or processing method; each structured data includes at least one sub-structured data, and each sub-structured data corresponds to an image field of view.
[0067] The receiving ends of different subscription tasks may have different requirements for the data they subscribe to, and the storage node needs to process the structured data and / or object data into the form required by the receiving end and then push it to the receiving end. Therefore, after determining the target structured data, it is necessary to process the target structured data to obtain the data to be pushed that meets the requirements of the receiving end.
[0068] The image field of view may be an attribute included in the substructured data, or may be a value determined according to the predetermined correspondence between the image type and the image field of view and the image type. For example, when the image type is a vehicle panoramic image, the corresponding image field of view is a panoramic image, and when the image type is a license plate color partial image, the corresponding image field of view is a partial image.
[0069] Normally, the processing methods for substructured data of different fields of view may be different. The current data processing condition is used to characterize how the substructured data of various image fields of view need to be processed when generating the data to be pushed. The image field of view corresponding to the substructured data can be one of a panoramic image and a local image; the processing method can be to retain the storage address of the sub-object data corresponding to the substructured data in the storage node in the data to be pushed, retain the sub-object data corresponding to the substructured data in the data to be pushed, or discard the substructured data from the data to be pushed. When the data processing condition is a combination of an image field of view and a processing method, a variety of possible data processing conditions may be obtained, for example: for substructured data corresponding to the panoramic image and the local image, the storage address of the sub-object data corresponding to the corresponding substructured data in the storage node is retained; or, for the substructured data corresponding to the panoramic image and the local image, the sub-object data corresponding to the corresponding substructured data is retained; or, for the substructured data corresponding to one of the panoramic image and the local image, the storage address of the corresponding sub-object data in the storage node is retained, and for the substructured data corresponding to the other image, the corresponding sub-object data is retained; or, for the substructured data corresponding to one of the panoramic image and the local image, the substructured data is discarded from the data to be pushed, and the substructured data corresponding to the other image is retained in the data to be pushed.
[0070] Step S400 includes the following steps:
[0071] Step S410: If the current data processing conditions include processing the substructured data of the first image field of view using a first processing method, then determine that the target structured data, the substructured data of the first image field of view, is the target substructured data; wherein the first processing method is to retain the sub-object data corresponding to the substructured data in the data to be pushed.
[0072] The target structured data may include a plurality of sub-structured data, and the sub-structured data of the target structured data in the first image field of view is the target sub-structured data.
[0073] Step S420: acquiring target sub-object data corresponding to the target sub-structured data according to the sub-object data storage address included in the target sub-structured data;
[0074] The substructured data includes the storage address of the subobject data that forms a subdata pair with the substructured data on the current storage node, so the target subobject data corresponding to the target substructured data can be obtained according to the storage address of the subobject data included in the target substructured data.
[0075] Step S430: adding the target sub-object data to the target sub-structured data to obtain the data to be pushed;
[0076] For example, the first processing method is to retain the sub-object data corresponding to the sub-structured data in the data to be pushed, and the first image field of view is a panoramic view, that is, the current data processing conditions require that the sub-structured data corresponding to the panoramic view be retained (or called added) in the data to be pushed. At this time, the sub-structured data whose image field of view of the corresponding sub-object data in the target structured data is the panoramic view can be used as the target sub-structured data, and the target sub-object data corresponding to the target sub-structured data (necessarily stored on the current storage node) is obtained according to the sub-object data storage address included in the target sub-structured data, and the target sub-object data is added to the target sub-structured data to obtain the data to be pushed. It can be understood that in the target sub-structured data, the storage address of the target sub-object data can be deleted or not.
[0077] The second processing method is to retain the storage address (usually expressed as a URL) of the sub-object data corresponding to the sub-structured data in the data to be pushed. Because the sub-structured data already contains the storage address of the sub-object data, there is no need to process the target sub-structured data corresponding to the second processing method in the target structured data.
[0078] If the current data processing condition includes processing the sub-structured data in the second image field of view in the second processing manner, the sub-structured data in the second image field of view in the target structured data is not processed.
[0079] In this manner, after the data to be pushed is sent to the receiving end, the receiving end can obtain the object data according to the storage address of the object data contained in the structured data when the object data needs to be obtained.
[0080] The third processing method is to discard the substructured data from the data to be pushed, and then delete the substructured data corresponding to the third processing method in the target structured data.
[0081] If the current data processing condition includes processing the sub-structured data of the third image field of view using the third processing method, the sub-structured data of the third image field of view in the target structured data is deleted.
[0082] Table 1 shows several examples of data processing conditions.
[0083] Table 1
[0084]
[0085]
[0086] For example, the current processing condition is: the sub-structured data corresponding to the panoramic image is processed in the second processing mode, and the sub-structured data corresponding to the local image is processed in the first processing mode.
[0087] Use the current processing conditions to process the target structured data filtered out by the current filtering condition 1. The image type of the target structured data filtered out by the current filtering condition 1 is a large vehicle image. According to the correspondence between the image type and the image field of view, the image field of view corresponding to the large vehicle image is a panoramic image, so there is no need to process the target structured data and it can be pushed directly.
[0088] Use the current processing condition to process the target structured data filtered by the current filtering condition 2. The image field of view corresponding to the structured data of this node filtered by the current filtering condition 2 is as follows: the first substructured data of the structured data 1 of this node: local image, the second substructured data of the structured data 1 of this node: panoramic image, the structured data 2 of this node: local image, and the structured data 3 of this node: panoramic image. Therefore, for the first substructured data of the structured data 1 of this node and the structured data 2 of this node, the original BASE64 string, i.e., the object data, is obtained according to the object data storage address StoragePath in the substructured data, so that the key-value pairs "Data":"BASE64 string 1" and "Data":"BASE64 string 3" are added to the corresponding structured data (if the key Data in the structured data exists but its value is empty, only BASE64 string 1 and BASE64 string 3 are added to the structured data). The second substructured data of the structured data 1 of this node and the structured data 3 of this node do not need to be processed because they are panoramic images, and the data to be pushed is obtained.
[0089] It should be noted that the above steps are a specific implementation method when the subscribed content is a picture. When the subscribed content is a video, it can also be processed in a similar manner. For example, representative image frames are selected from the video and the image frames are processed in a manner similar to the pictures, or the videos are pre-classified according to scene requirements and set to different types. Those skilled in the art can completely obtain the video processing method based on the picture processing method recorded in the embodiment of the present invention without paying any creativity.
[0090] It can be seen that in this specific implementation, in the process of generating the data to be pushed, only the target sub-object data needs to be obtained from the storage node, and there is no transmission of object data between the storage nodes, which saves internal bandwidth. Moreover, different processing methods can be set for sub-object data of different image fields, which greatly increases the flexibility of pushing data and can meet the different needs of the receiving end.
[0091] In a specific implementation, the subscription data push method further includes:
[0092] Step S500: receiving the incoming data routed to the storage node.
[0093] The storage data can be data captured by the image acquisition device and structured, and can be included in the storage request, or sent to a storage node after the storage request is routed to the storage node. Therefore, the storage data usually includes object data (which can be encoded data of the image, such as base64 encoded data) and structured data obtained after processing the object data and used to describe the object data.
[0094] The subscription data push system may include multiple storage nodes. When an incoming data request is received, the incoming data will be routed to a storage node manually or automatically (for example, through a gateway) so that the storage node can store the object data in the incoming data, or store the object data and structured data in the incoming data.
[0095] It is understandable that, without considering the frequency at which the incoming data is subscribed, in order to evenly store multiple incoming data in each storage node so as to maximize the subsequent data push speed, the routing may follow a balancing strategy.
[0096] The subscription data push system includes three storage nodes: storage node a, storage node b and storage node c. There are three incoming data to be stored, namely data 1, data 2 and data 3. The three incoming data are sent to the three storage nodes for storage according to the balance principle.
[0097] Optionally, when receiving an entry request / entry data, each storage node 10 preferentially stores the object data in the received entry data locally, and only when local storage fails will it forward the entry data to other storage nodes 10 for storage.
[0098] Step S600: storing the object data in the incoming data in the storage node, and obtaining the first object data storage address of the object data corresponding to the incoming data on the storage node.
[0099] If the object data includes multiple sub-object data, each sub-object data in the stored data is stored in the current storage node, and the sub-object data storage address of each sub-object data on the current storage node is obtained.
[0100] In this embodiment, the object data is stored in the storage node, and the storage node returns the storage address (also called StoragePath) for storing the object data. For example, the BASE64 string of the image is stored in this storage node, where the storage address StoragePath includes the IP address of the storage node 10, and each object data corresponds to a unique storage address StoragePath.
[0101] Step S700: Delete the object data in the incoming data, add the first object data storage address to the incoming data, and obtain structured data corresponding to the incoming data.
[0102] Deleting the object data in the stored data may refer to deleting the key-value pair "Data":"BASE64 string" in the stored data, or may refer to emptying the original BASE64 string of the stored data to obtain "Data":"".
[0103] If the object data includes multiple sub-object data, after the sub-object data is stored in the storage node, the sub-object data in the input data can be deleted, and each sub-object data storage address can be added to its corresponding sub-structured data to obtain the structured data corresponding to the input data, that is, the sub-structured data corresponding to the sub-object data.
[0104] Step S800: storing the structured data corresponding to the input data into the structured data storage space.
[0105] As mentioned above, structured data can be stored in a structured data storage space on a storage node, or a common structured data storage space can be set for multiple storage nodes.
[0106] In this implementation, the structured data and object data in the incoming data are stored separately, which is not only convenient for indexing the structured data, but also convenient for preparing the data to be pushed. As mentioned above, some receiving ends need the data to be pushed that does not include the object data (for example, due to the bandwidth occupied by the transmission of the object data). Only when the user needs to view a certain object data, the object data is obtained from the subscription data push system in real time according to the object data address contained in the data to be pushed.
[0107] In a specific implementation, step S100 includes:
[0108] Step S110: Obtain the current subscription task from the node subscription task list corresponding to the storage node.
[0109] Each storage node can maintain a node subscription task list, and the node subscription task list of each node is the same. In this way, the node subscription task list of each node contains the A subscription task. When the A subscription task becomes the current subscription task, each node can push the subscription data corresponding to the A subscription task stored in each node in parallel.
[0110] Correspondingly, the subscription data push method also includes:
[0111] Step S900: receiving an update message indicating that the node subscription task list needs to be updated, and updating the node subscription task list according to the update message.
[0112] In one example, a first storage node that deploys a subscription task service receives a task update request and sends an update message to a second storage node according to the update request.
[0113] The first storage node may be Figure 1 The task update request may include a target subscription task to be updated and the type of update. The target subscription task refers to a subscription task that the user wants to update, and the types of updates include creation, modification, query, and deletion. When an update request is used to create a target subscription task, the target subscription task will be added to the subscription task list. When an update request is used to modify a target subscription task, the target subscription task in the subscription task list will be modified according to the update request. When an update request is used to delete a target subscription task, the target subscription task will be deleted from the subscription task list.
[0114] After the first storage node receives the task update request, in order to synchronize the node task list on the second storage node, the first storage node needs to send an update message indicating that the subscribed task list has been updated to the second storage node.
[0115] In one example, the gateway receives the task update request and routes it to the first storage node.
[0116] It is understandable that if the first storage node also needs to execute the data push task, the first storage node also needs to update the node task list on the node according to the update request.
[0117] In this embodiment, if the task update request is to create, modify or delete the target subscription task, the first storage node sends an update message to the second storage node indicating that the node subscription task list has been updated, thereby ultimately achieving the concurrent execution of the created or modified target subscription task by the first storage node and the second storage node, thereby achieving the purpose of pushing the subscription content related to the target subscription task to the first storage node and other storage nodes at the same time.
[0118] As an implementation, when the task update request is to create a target subscription task, the task update request may include a creation command and creation configuration information, wherein the creation command refers to a command for creating a target subscription task, and the creation configuration information is used to characterize the configuration of the target subscription task to be created, and the creation configuration information includes, but is not limited to, the name of the target subscription task, subscription time, subscription content receiving address, etc. For example, the creation configuration information is: {task001; (20190101000000-20200101000000); http: / / photo.test.com / rurl2}, wherein task001 is the name of the target subscription task, 20190101000000-20200101000000 is the subscription time, and http: / / photo.test.com / rurl2 is the subscription content receiving address.
[0119] As another implementation, when the task update request is to modify the target subscription task, the task update request may include modification configuration information, which may include, but is not limited to, the identifier of the target subscription task, subscription time, subscription content receiving address, etc.
[0120] In this embodiment, the node subscription task list may include multiple subscription tasks, each subscription task may include the identifier of the subscription task and the subscription configuration information of the subscription task. It can be determined whether the target subscription task exists in the subscription task list based on the identifier of the target subscription task. If it exists, the subscription configuration information of the target subscription task in the subscription task list is modified by modifying the configuration information. If it does not exist, the target subscription task is added to the subscription task list as a new subscription task.
[0121] In this embodiment, if the task update request is to delete the target subscription task, the first storage node sends an update message to other storage nodes indicating that the subscription task list has been updated, and finally deletes the target subscription task from the node task list of the first storage node and other storage nodes. If it is being executed, the execution of the target subscription task is stopped, so as to achieve the purpose of stopping the push of subscription content related to the target subscription task in both the storage node and other storage nodes. If the target subscription task does not exist in the subscription task list, it will not be processed, and the deletion failure can be returned according to actual needs, or no information will be returned.
[0122] It should be noted that, as an implementation method, the first storage node can use the ETCD component to synchronize the node subscription task list to other storage nodes in a timely manner when the node subscription task list needs to be updated. Of course, other technologies can also be used to achieve synchronization of the subscription task list between the storage node and other storage nodes, such as zookeeper and other technologies.
[0123] It should also be noted that in addition to updating the target subscription task, the target subscription task can also be queried. Since there is no need to update the subscription task list, at this time, the storage node will not send an update message to other storage nodes. After the storage node finds the target subscription task from the subscription task list, it returns the subscription configuration information of the target subscription task to the gateway 20.
[0124] As a specific implementation method, when querying the target subscription task, the gateway 20 sends an update request to the storage node with the update type contained in it being a query. The update request may include the identifier of the subscription task to be queried. The first storage node may determine whether there is a subscription task to be queried in the subscription task list based on the identifier of the subscription task to be queried. If so, the subscription configuration information of the subscription task to be queried is returned to the gateway 20. The update request may also not include the identifier of the subscription task to be queried. At this time, a preset number of subscription tasks in the subscription task list may be used as subscription tasks to be queried, and the subscription configuration information of each subscription task to be queried may be returned to the gateway 20, or all subscription tasks in the subscription task list may be used as subscription tasks to be queried, and the subscription configuration information of each subscription task to be queried may be returned to the gateway 20.
[0125] The above-mentioned subscription data push method provided by the embodiment of the present invention can promptly notify all storage nodes when the subscription task is updated, so that all storage nodes can execute the updated subscription task at the same time, so as to realize the concurrent delivery of all storage nodes and improve the delivery efficiency.
[0126] In a specific implementation, the current subscription time period is divided into a plurality of current subscription sub-time periods according to time units;
[0127] Step S100 is the same as the above-mentioned embodiment and will not be described again here.
[0128] Step S200 includes: searching for structured data of the node in each current subscription sub-time period in the current subscription time period in sequence according to the time sequence of each current subscription sub-time period;
[0129] The current subscription time period is [a,b], the time segment of the data to be pushed is [A,b], and the time segment of the data that has been pushed is [a,A). Data push starts from the starting time a. At the starting time, A=a. As the data push progresses, A gets closer and closer to b, and the time range of the time segment of the data to be pushed [A,b] gets smaller and smaller until it reaches 0, indicating that the subscription data push to be subscribed by the current subscription task is completed.
[0130] Specifically, A=a is initialized, and inc is a time unit, for example, inc=10 seconds. If A=b, the subscription push is completed.
[0131] [A, A+inc) is the current subscription sub-time period (if A+inc>b, let A+inc=b, indicating that it is the last sub-time period in the current subscription time period). In one example, the structured data storage space is queried according to the time range [A, A+inc) to obtain the structured data of this node in the current subscription sub-time period. In another example, the structured data storage space is queried according to the time range [A, A+inc) and the subscription type to obtain the structured data of this node in the current subscription sub-time period. In this case, when querying the structured data of this node, not only the time condition but also the subscription type condition is added to narrow the scope of the query results and facilitate subsequent processing. It can be understood that the structured data includes the storage address of the object data that constitutes a data pair with the structured data on the storage node. When the structured data storage space is queried, the structured data containing the IP of this storage node in the storage address is the structured data of this node.
[0132] The meaning of structured data in the current subscription sub-time period is similar to the meaning of structured data in the current subscription time end, and will not be repeated here.
[0133] Step 300 includes: determining target structured data from the structured data of the node within the current subscription sub-period according to the current screening condition.
[0134] In this way, target structured data meeting the current screening condition can be further screened out from the structured data obtained in step S200.
[0135] Step S400 includes: obtaining data to be pushed according to object data corresponding to the target structured data and / or the target structured data.
[0136] If the target structured data corresponds to the current subscription sub-time period, the data to be pushed is also the data to be pushed corresponding to the current subscription sub-time period.
[0137] Step S500 includes: pushing the data to be pushed to the current receiving end, wherein the data to be pushed is a subset of the subscription data to be subscribed by the current subscription task.
[0138] Similarly, if the target structured data corresponds to the current subscription sub-time period, the data to be pushed is also the data to be pushed corresponding to the current subscription sub-time period.
[0139] It can be understood that for the current subscription sub-time period [t, t+duration unit), the structured data of the node within the current subscription sub-time period can be searched through step S200, and then the target structured data can be determined from the structured data of the node within the current subscription sub-time period according to the current filtering conditions in step S300. Then, the data to be pushed corresponding to the current subscription sub-time period is generated and pushed through steps S400 and S500. Then, the current subscription sub-time period is updated to [t+duration unit, t+2*duration unit), and steps S200-S500 are executed again until the subscription data push is completed or the current subscription task is canceled.
[0140] In order to execute the corresponding steps in the above embodiment and each possible implementation method, an implementation method of the subscription data push device 100 is given below. Figure 4 , Figure 4 It is a block diagram of a subscription data push device 100 provided in an embodiment of the present invention. It should be noted that the basic principle and technical effects of the subscription data push device 100 provided in this embodiment are the same as those in the above embodiment, and are not mentioned in this embodiment for the sake of brief description.
[0141] The subscription data pushing device 100 includes a task acquisition module 110 , a data search module 120 , a screening module 130 , a processing module 140 and a pushing module 150 .
[0142] The task acquisition module 110 is used to acquire the current subscription task; the current subscription task includes the current subscription time period, the current receiving end and the current filtering condition;
[0143] The data search module 120 is used to search for the structured data of the node in the current subscription period; the structured data of the node is the structured data stored in the storage node with the object data constituting the data pair;
[0144] A screening module 130, configured to determine target structured data from the structured data of the node within the current subscription period according to the current screening condition;
[0145] The processing module 140 is used to obtain the data to be pushed according to the object data corresponding to the target structured data and / or the target structured data;
[0146] The push module 150 is used to push the data to be pushed to the current receiving end, and the data to be pushed is a subset of the subscription data to be subscribed by the current subscription task.
[0147] The embodiment of the present invention further provides a subscription data push method, which is applied to a subscription data push system, wherein the subscription data push system includes a plurality of storage nodes and a gateway;
[0148] The gateway receives the storage request and routes the storage request to one of the multiple storage nodes. The gateway is responsible for routing external requests. If the external request is a storage request, the storage request is routed to one of the multiple storage nodes. If the external request is a subscription request, the subscription request is routed to the subscription task service.
[0149] The multiple storage nodes execute the method described in any embodiment of the first aspect of the present invention, and push the subscription data to be subscribed by the current subscription task in parallel.
[0150] In one example, each of the plurality of storage nodes has a corresponding gateway, and the plurality of gateways correspond to the plurality of storage nodes one by one, and the storage node pushes the data to be pushed to the current receiving end through the corresponding gateway. The gateway also receives the storage request routed to the corresponding storage node.
[0151] In a specific implementation, at least one of the storage nodes receives an update request for a target subscription task, and sends an update message indicating that a node subscription task list needs to be updated to other storage nodes in the subscription data push system according to the update request.
[0152] In this embodiment, the subscription task service is deployed on a storage node of the subscription task system. The storage node where the subscription task service is deployed maintains the node subscription task list according to the subscription task to be updated and the update mode (addition, deletion and modification) contained in the update message and sends the update message to other storage nodes.
[0153] Correspondingly, an embodiment of the present invention also provides a subscription data push system, which includes multiple storage nodes and a gateway; the gateway is used to route the warehousing request to one of the multiple storage nodes, and the multiple storage nodes are used to execute the method described in any embodiment of the first aspect of the present invention, and push the subscription data to be subscribed by the current subscription task in parallel.
[0154] In a specific implementation, at least one of the storage nodes is further configured to receive an update request for a target subscription task, and send an update message indicating that a node subscription task list needs to be updated to other storage nodes in the subscription data push system according to the update request.
[0155] In one example, each of the plurality of storage nodes has a corresponding gateway, and the plurality of gateways correspond to the plurality of storage nodes one by one, and the storage node pushes the data to be pushed to the current receiving end through the corresponding gateway. The gateway also receives the storage request routed to the corresponding storage node.
[0156] The present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the subscription data push method as described above is implemented.
[0157] In summary, an embodiment of the present invention provides a subscription data push method, device, system, electronic device and storage medium, wherein the subscription data push method and device are applied to a storage node in a subscription data push system; the storage node stores multiple object data, the object data and structured data having a corresponding relationship therewith form a data pair, and the structured data contains the storage address of the object data forming a data pair with the structured data on the storage node; the method includes: obtaining a current subscription task; the current subscription task includes a current subscription time period, a current receiving end and a current filtering condition; searching for the structured data of this node within the current subscription time period; the structured data of this node is the structured data stored in the storage node with the object data forming a data pair therewith; according to the current filtering condition, determining the target structured data from the structured data of this node within the current subscription time period; obtaining the data to be pushed according to the object data corresponding to the target structured data and / or the target structured data; pushing the data to be pushed to the current receiving end, and the data to be pushed is a subset of the subscription data to be subscribed by the current subscription task. Compared with the prior art, the embodiment of the present invention can timely notify all storage nodes when the subscription task is updated, so that all storage nodes can execute the updated subscription task at the same time, so as to realize the concurrent dispatch of all storage nodes, thereby improving the dispatch speed and efficiency. In addition, there will be no transmission of object data between the storage nodes, thus saving internal bandwidth.
[0158] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A subscription data push method, characterized in that: A storage node used in a subscription data push system; the storage node stores a plurality of object data, the object data and structured data having a corresponding relationship therewith form a data pair, the structured data includes a storage address on the storage node of the object data forming a data pair with the structured data; the method comprises: Get the current subscription task; the current subscription task includes the current subscription time period, the current receiving end and the current filtering condition; Searching for structured data of the node within the current subscription period; the structured data of the node is structured data stored in the storage node with object data constituting a data pair; According to the current screening condition, determine the target structured data from the structured data of the node within the current subscription period; Obtaining data to be pushed according to the object data corresponding to the target structured data and / or the target structured data; Pushing the data to be pushed to the current receiving end, wherein the data to be pushed is a subset of the subscription data to be subscribed by the current subscription task, and the current subscription task also includes a current data processing condition, and the current data processing condition includes an image field of view and / or a processing method; each structured data includes at least one sub-structured data, and each sub-structured data corresponds to an image field of view; The step of obtaining the data to be pushed according to the object data corresponding to the target structured data and / or the target structured data includes: If the current data processing conditions include performing a first processing method on the substructured data of the first image field of view, then the substructured data of the target structured data of the first image field of view is determined to be the target substructured data, and the target sub-object data corresponding to the target substructured data is obtained according to the sub-object data storage address included in the target substructured data, and the target sub-object data is added to the target substructured data to obtain the data to be pushed; wherein the first processing method is to retain the sub-object data corresponding to the substructured data in the data to be pushed.
2. The method according to claim 1, characterized in that The method further comprises: Receiving incoming data routed to the storage node; Storing the object data in the incoming data in the storage node, and obtaining a first object data storage address of the object data corresponding to the incoming data on the storage node; Replace the object data in the stored data with the first object data storage address to obtain structured data corresponding to the stored data; The structured data corresponding to the input data is stored in the structured data storage space.
3. The method according to claim 1 or 2, characterized in that: The obtaining of the current subscription task includes: Obtain the current subscription task from the node subscription task list corresponding to the storage node; The method further comprises: An update message indicating that the node subscription task list needs to be updated is received, and the node subscription task list is updated according to the update message.
4. The method according to claim 1, characterized in that The current subscription time period includes a plurality of current subscription sub-time periods divided according to time units; The searching for structured data of the node within the current subscription period includes: According to the time sequence of each of the current subscription sub-time periods, the structured data of the node in each of the current subscription sub-time periods in the current subscription time period are searched in sequence.
5. A subscription data push device, characterized in that: The subscription data push device is a storage node in the subscription data push system, and the storage node stores a plurality of object data, wherein the object data and structured data having a corresponding relationship therewith form a data pair, and the structured data includes a storage address on the storage node of the object data forming a data pair with the structured data; the device comprises: A task acquisition module is used to acquire the current subscription task; the current subscription task includes the current subscription time period, the current receiving end and the current filtering condition; A data search module is used to search for structured data of the node within the current subscription period; the structured data of the node is structured data stored in the storage node with object data constituting a data pair; A screening module, used to determine target structured data from the structured data of the node within the current subscription period according to the current screening condition; A processing module, configured to obtain data to be pushed according to the object data corresponding to the target structured data and / or the target structured data; A push module, used to push the data to be pushed to the current receiving end, wherein the data to be pushed is a subset of the subscription data to be subscribed by the current subscription task, and the current subscription task also includes a current data processing condition, and the current data processing condition includes an image field of view and / or a processing method; each structured data includes at least one substructured data, and each substructured data corresponds to an image field of view; The processing module is also used to determine that the substructured data of the target structured data in the first image field of view is target substructured data if the current data processing conditions include processing the substructured data in the first image field of view in a first processing manner, obtain the target sub-object data corresponding to the target substructured data according to the sub-object data storage address included in the target substructured data, add the target substructured data to the target substructured data, and obtain the data to be pushed; wherein the first processing manner is to retain the sub-object data corresponding to the substructured data in the data to be pushed.
6. A subscription data push method, characterized in that: Applied to a subscription data push system, the subscription data push system comprising a plurality of storage nodes and a gateway; The gateway receives the storage request and routes the storage request to one of the plurality of storage nodes; The plurality of storage nodes execute the method described in any one of claims 1 to 4, and push the subscription data to be subscribed by the current subscription task in parallel.
7. The subscription data push method according to claim 6, characterized in that: At least one of the storage nodes receives an update request for a target subscription task, and sends an update message indicating that a node subscription task list needs to be updated to other storage nodes in the subscription data push system according to the update request.
8. A subscription data push system, characterized in that: The subscription data push system includes multiple storage nodes and a gateway; The gateway is used to route the storage request to one of the multiple storage nodes. The multiple storage nodes are used to execute the method described in any one of claims 1-4, and push the subscription data to be subscribed by the current subscription task in parallel.
9. An electronic device, characterized in that: The electronic device comprises: one or more processors; A memory for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the subscription data push method as described in any one of claims 1-4 or 6-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the subscription data push method as described in any one of claims 1-4 or 6-7 is implemented.
