CN114676153A - Data subscription method and device and proxy subscription equipment - Google Patents

Data subscription method and device and proxy subscription equipment Download PDF

Info

Publication number
CN114676153A
CN114676153A CN202210381940.4A CN202210381940A CN114676153A CN 114676153 A CN114676153 A CN 114676153A CN 202210381940 A CN202210381940 A CN 202210381940A CN 114676153 A CN114676153 A CN 114676153A
Authority
CN
China
Prior art keywords
data
subscription
theme
equipment
source
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202210381940.4A
Other languages
Chinese (zh)
Inventor
谭启超
张健文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Rootcloud Technology Co Ltd
Original Assignee
Rootcloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Rootcloud Technology Co Ltd filed Critical Rootcloud Technology Co Ltd
Priority to CN202210381940.4A priority Critical patent/CN114676153A/en
Publication of CN114676153A publication Critical patent/CN114676153A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a data subscription method, a data subscription device and proxy subscription equipment. The method comprises the following steps: monitoring whether each source data theme corresponding to the source data equipment is updated or not; obtaining incremental data corresponding to each source data theme; performing data processing of a preset type on the incremental data to obtain service data corresponding to service data topics, wherein the data processing of the preset type comprises integration, decomposition and conversion, and each service data topic is associated with at least one source data topic; and sending the service data to the corresponding user end equipment according to the service data acquisition request sent by each user end equipment and the preset subscription relationship between the service data theme and each user end equipment. According to the method and the device, the incremental data corresponding to the source data theme are processed into the service data which can be received by the user side equipment through the proxy subscription equipment, so that the service coupling between the data source and the user side is eliminated, and the butt joint cost of the data source and the user side is reduced.

Description

Data subscription method and device and proxy subscription equipment
Technical Field
The present application relates to the field of data transmission, and in particular, to a data subscription method and apparatus, and a proxy subscription device.
Background
When a user needs to obtain some latest data for presentation or business processing, message queue middleware is usually used to subscribe a corresponding data topic from a data source. According to the method, a user needs to deeply know the data to be acquired so as to find the address of the data source, select a proper data theme from the data source and acquire the required latest data.
Under the condition that a user does not know data and a data source, the required data theme and the corresponding data cannot be directly acquired. Therefore, the data acquisition method requires a certain technical understanding of the user, so that the interfacing cost of the data source and the user side is relatively high.
Disclosure of Invention
In order to solve the technical problem, the invention provides a data subscription method, a device and a proxy subscription device, and the specific scheme is as follows:
in a first aspect, an embodiment of the present application provides a data subscription method, which is applied to a proxy subscription device, where the proxy subscription device is connected to a source data device and at least one user end device, and the data subscription method includes:
monitoring whether each source data theme corresponding to the source data equipment is updated or not;
obtaining incremental data corresponding to each source data theme;
performing data processing of a preset type on the incremental data to obtain service data corresponding to service data topics, wherein the data processing of the preset type comprises integration, decomposition and conversion, and each service data topic is associated with at least one source data topic;
and sending the service data to corresponding user end equipment according to the service data acquisition request sent by each user end equipment and the preset subscription relationship between the service data theme and each user end equipment.
According to a specific embodiment disclosed in the present application, the step of performing the preset type of data processing on the incremental data to obtain the service data corresponding to the service data theme includes:
if the business data theme is associated with at least two source data themes, combining the first metadata corresponding to each source data theme to obtain second metadata corresponding to the business data theme;
the first metadata is used for indicating a storage area of source data corresponding to a source data theme, and all source data corresponding to the second metadata are service data corresponding to the service data theme.
According to a specific embodiment disclosed in the present application, the step of converting the preset type of data processing, and performing the preset type of data processing on the incremental data to obtain the service data corresponding to the service data theme includes:
and according to a preset first mapping relation between the first field and the second field, converting the first field in the incremental data into the corresponding second field through field mapping to obtain the business data corresponding to the business data theme.
According to a specific embodiment disclosed in the present application, the creating step of the preset subscription relationship includes:
receiving a subscription request sent by user end equipment, wherein the subscription request comprises a service data subject needing subscription and an equipment identifier corresponding to the user end equipment;
and creating the preset subscription relationship according to the subscription request, wherein the preset subscription relationship comprises a second mapping relationship between the equipment identifier and the service data topic needing to be subscribed.
According to a specific embodiment disclosed in the present application, the step of sending the service data to the corresponding customer premise equipment according to a service data acquisition request sent by each customer premise equipment and a preset subscription relationship between the service data topic and each customer premise equipment includes:
judging whether the user side equipment corresponding to the business data theme is inspection-free equipment or not;
if the user end equipment corresponding to the business data theme is not the inspection-free equipment, verifying a business data acquisition request sent by the user end equipment, wherein the business data acquisition request comprises an equipment identifier and a request timestamp corresponding to the business data acquisition request;
and if the verification is successful, the business data corresponding to the business data theme is sent to the user side equipment corresponding to the equipment identification.
According to a specific embodiment disclosed in the present application, the step of checking the service data acquisition request sent by the user end device, where the preset subscription relationship includes a subscription authorization time interval, includes:
if the equipment identifier in the service data acquisition request is the same as the equipment identifier in the preset subscription relationship, judging whether the request timestamp is in the subscription authorization time interval;
if the request timestamp is within the subscription authorization time interval, judging that the verification is successful;
and if the request timestamp is not in the subscription authorization time interval, judging that the verification fails.
In a second aspect, an embodiment of the present application provides a data subscription apparatus, which is applied to a proxy subscription device, where the proxy subscription device is connected to a source data device and at least one user end device, and the data subscription apparatus includes:
the monitoring module is used for monitoring whether each source data theme corresponding to the source data equipment is updated or not;
the acquisition module is used for acquiring incremental data corresponding to each source data theme;
the processing module is used for performing data processing of a preset type on the incremental data to obtain business data corresponding to business data topics, wherein the data processing of the preset type comprises integration, decomposition and conversion, and each business data topic is associated with at least one source data topic;
and the sending module is used for sending the service data to the corresponding customer premise equipment according to the service data acquisition request sent by each customer premise equipment and the preset subscription relationship between the service data theme and each customer premise equipment.
According to a specific embodiment disclosed in the present application, the preset type of data processing is integration, and the processing module is specifically applied to:
if a business data theme is associated with at least two source data themes, combining first metadata corresponding to each source data theme to obtain second metadata corresponding to the business data theme;
the first metadata is used for indicating a storage area of source data corresponding to a source data theme, and all source data corresponding to the second metadata are service data corresponding to the service data theme.
In a third aspect, an embodiment of the present application provides a proxy subscription device, where the proxy subscription device includes a processor and a memory, where the memory stores a computer program, and the computer program, when executed on the processor, implements the data subscription method described in any embodiment of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, where a computer program is stored, and the computer program, when executed on a processor, implements the data subscription method described in any embodiment of the first aspect.
Compared with the prior art, the method has the following beneficial effects:
the data subscription method provided by the application monitors whether each source data theme corresponding to the source data equipment is updated; obtaining incremental data corresponding to each source data theme; performing data processing of a preset type on the incremental data to obtain service data corresponding to service data topics, wherein the data processing of the preset type comprises integration, decomposition and conversion, and each service data topic is associated with at least one source data topic; and sending the service data to the corresponding user end equipment according to the service data acquisition request sent by each user end equipment and the preset subscription relationship between the service data theme and each user end equipment. Incremental data corresponding to the source data theme are processed into service data which can be received by the user side equipment through the proxy subscription equipment, so that service coupling between the data source and the user side is eliminated, and the butt joint cost of the data source and the user side is reduced.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required to be used in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention. Like components are numbered similarly in the various figures.
Fig. 1 is a schematic flowchart of a data subscription method according to an embodiment of the present application;
fig. 2 is a block diagram of a data subscription device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present invention, are only intended to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic flowchart of a data subscription method provided in an embodiment of the present application. The data subscription method is applied to a proxy subscription device, wherein the proxy subscription device is connected with a source data device and at least one user end device, and the data subscription method comprises the following steps:
step S101, monitoring whether each source data theme corresponding to the source data equipment is updated.
The source data theme refers to various data themes provided by a producer, namely source data equipment, and data corresponding to the source data theme is source data. For example, in the area of merchandise supply and marketing, the source data topics may be: a supplier topic, a commodity topic, a customer topic, and a warehouse topic. The commodity theme can include various source data for recording the purchasing condition of supermarket commodities, the selling condition of the commodities and the storage condition of the commodities, the client theme includes but is not limited to various source data related to the commodities purchased by the client, and the warehouse theme can include various source data such as the storage condition of the commodities in the warehouse and the management condition of the warehouse.
In specific implementation, whether each source data theme corresponding to the source data device is updated or not may be monitored continuously or at certain preset time intervals. The preset time can be customized according to the actual use requirement of the user and the specific application scene, and is not further limited here.
And step S102, obtaining incremental data corresponding to each source data theme.
If it is monitored that the topic address broadcasted by the source data device for publishing the source data topic generates new incremental data, the source data topic is updated. At this time, the source data obtaining request may be sent to the source data device to receive the source data returned by the source data device according to the source data obtaining request. The source data device may also be set in advance to: and if the incremental data are generated, the incremental data are directly sent to the proxy subscription equipment, and the proxy subscription equipment is not required to send a corresponding request to the source data.
Step S103, performing data processing of a preset type on the incremental data to obtain business data corresponding to business data topics, wherein the data processing of the preset type comprises integration, decomposition and conversion, and each business data topic is associated with at least one source data topic.
The service data theme is a theme which is provided by an agent, namely the agent subscription device, to the user terminal device for subscription, and the data corresponding to the service data theme is service data.
In the source data topic, the source data device publishes all the generated source data to the source data topic, so that there is a large amount of data that cannot be directly used by the user end device or is not required by the user end device in the source data received by the proxy subscription device. The agent subscription device processes the source data topics which can be subscribed by the user terminal device according to services, scenes and the like, and then sends service data topics which are suitable for service understanding and can be directly subjected to subsequent processing to the user terminal device. The user end device can directly subscribe interested business data topics from the proxy subscription device according to business needs. The following further describes the data processing procedures of different preset types respectively:
1. the step of integrating the data processing of the preset type, and performing the data processing of the preset type on the incremental data to obtain the business data corresponding to the business data theme comprises the following steps:
if the business data theme is associated with at least two source data themes, combining the first metadata corresponding to each source data theme to obtain second metadata corresponding to the business data theme;
the first metadata is used for indicating a storage area of source data corresponding to a source data theme, and all source data corresponding to the second metadata are service data corresponding to the service data theme.
Specifically, each business data topic is associated with at least one source data topic, that is, the association relationship between the business data and the source data topic may be any one of one-to-one, one-to-many, and many-to-one. If the business data theme is associated with at least two source data themes, the association relationship between the business data theme and the source data theme is one-to-many.
Metadata, also called intermediate data or relay data, is data for describing data, and mainly describes information of data attributes, such as functions of indicating storage locations, history data, resource lookup, file recording, and the like. If a plurality of source data themes need to be integrated into one service data theme, the source data corresponding to the second metadata can be sent to the user end equipment by the proxy subscription equipment in a mode of combining the first metadata corresponding to the source data themes into the second metadata, and meanwhile, the change of storage addresses or storage spaces for storing the source data is reduced.
2. The step of converting the data processing of the preset type, and performing the data processing of the preset type on the incremental data to obtain the business data corresponding to the business data theme comprises the following steps:
and according to a preset first mapping relation between the first field and the second field, converting the first field in the incremental data into the corresponding second field through field mapping to obtain the business data corresponding to the business data theme.
The structure and format of the source data sent by the source data device to the proxy subscription device may not be consistent with the structure and format of the data that can be received by the user end device. Therefore, the source data needs to be converted into service data that can be received by the customer premise equipment according to a certain corresponding relationship.
Specifically, a data field in the source data may be defined as a first field, and a data field in the service data that can be received by the customer premise equipment may be defined as a second field. According to a first mapping relation between a first field and a second field for presetting settings, incremental data corresponding to a source data theme are converted into business data through field mapping. The first mapping relationship may be customized according to the actual use requirement of the user and the specific application scenario, and is not specifically limited herein.
3. If one source data theme can be converted into a plurality of service data themes, that is, the incidence relation between the source data theme and the service data theme is one-to-many, the source data of the original source data theme can be decomposed into data of the plurality of service data themes according to the screening rule and the field mapping.
Step S104, according to the business data acquisition request sent by each customer premise equipment and the preset subscription relationship between the business data theme and each customer premise equipment, the business data is sent to the corresponding customer premise equipment.
In specific implementation, the creating step of the preset subscription relationship includes:
receiving a subscription request sent by user end equipment, wherein the subscription request comprises a service data theme needing subscription and an equipment identifier corresponding to the user end equipment;
and creating the preset subscription relationship according to the subscription request, wherein the preset subscription relationship comprises a second mapping relationship between the equipment identifier and the service data topic needing to be subscribed.
By establishing a second mapping relation between the service data theme and the device identifiers of different user end devices, the service data corresponding to the service data theme can be sent to the corresponding user end devices, so that the user end devices subscribe the service data theme and obtain the corresponding service data based on the service data theme. The device identifier may be a set of strings used to characterize the uniqueness of the client device, including but not limited to the device number and I P address.
The method comprises the following steps of sending the service data to the corresponding customer premise equipment according to a service data acquisition request sent by each customer premise equipment and a preset subscription relationship between the service data theme and each customer premise equipment, wherein the steps comprise:
judging whether the user side equipment corresponding to the business data theme is inspection-free equipment or not;
if the user end equipment corresponding to the business data theme is not the inspection-free equipment, verifying a business data acquisition request sent by the user end equipment, wherein the business data acquisition request comprises an equipment identifier and a request timestamp corresponding to the business data acquisition request;
and if the verification is successful, the business data corresponding to the business data theme is sent to the user side equipment corresponding to the equipment identification.
After step S103, it may be determined whether the customer premise equipment corresponding to the service data topic is a non-inspection device. If the customer premise equipment corresponding to the business data theme is the non-inspection equipment, or the customer premise equipment corresponding to the business data theme is not the non-inspection equipment but the inspection is successful, the business data can be sent to the customer premise equipment according to the second mapping relation.
Specifically, a non-inspection device list may be preset, where device identifiers corresponding to all non-inspection devices are stored in the non-inspection device list. And indexing based on the inspection-free equipment list, and judging whether the equipment identification in the second mapping relation corresponding to the service data theme exists in the inspection-free equipment list or not. If the user end equipment corresponding to the business data theme is the inspection-free equipment, the user end equipment corresponding to the business data theme is not the inspection-free equipment.
The preset subscription relationship comprises a subscription authorization time interval, and the step of verifying the service data acquisition request sent by the user end equipment comprises the following steps:
if the equipment identification in the service data acquisition request is the same as the equipment identification in the preset subscription relationship, judging whether the request timestamp is in the subscription authorization time interval;
if the request timestamp is within the subscription authorization time interval, judging that the verification is successful;
and if the request timestamp is not in the subscription authorization time interval, judging that the verification fails.
Specifically, when the preset subscription relationship is created, a subscription authorization time interval may be added to the subscription request sent by the user end device. The subscription authorization time interval refers to an effective time period for the user end device to authorize the proxy subscription device to perform proxy subscription, and may also be a time interval for the proxy subscription device to specify the time interval for sending the processed service data to the user end device according to a pre-established contract or a contract. Within this time interval, the proxy subscribing device may perform a proxy process of "obtaining incremental data and sending the processed incremental data to the customer premise equipment".
After the service data acquisition request sent by the user end device, it may be determined whether the device identifier in the service data acquisition request is the same as the device identifier in the preset subscription relationship. If the request time stamps are the same, judging whether the request time stamps are in the subscription authorization time interval, if the request time stamps are in the subscription authorization time interval, judging that the verification is successful, and if the request time stamps are not in the subscription authorization time interval, judging that the verification is failed. And if the verification is successful, the business data corresponding to the business data theme is sent to the user end equipment. The request timestamp refers to a time corresponding to the service data acquisition request sent by the user end device to the proxy subscription device, and the accuracy of the request timestamp may be customized according to the actual use requirement of the user or a specific application scenario, for example, a second, a minute, or an hour, and is not further limited herein.
According to the data subscription method, the incremental data corresponding to the source data theme are obtained through the proxy subscription device, the incremental data are subjected to data processing of the preset type, the service data which can be directly used by the user side device are obtained, the service coupling between the data source and the user side is eliminated, and the butt joint cost of the data source and the user side is reduced. In addition, the service data corresponding to the service data theme can be sent to the user end equipment after the verification is successful by checking the preset subscription relationship between each user end equipment and the service data theme and the service data acquisition request sent by the user end equipment, so that the service data is prevented from being sent to the user end equipment which is not in the authorized subscription time by mistake, the safety of service data transmission is improved, the invalid occupation of a data transmission channel between the proxy subscription equipment and the user end equipment is reduced, and the resource utilization rate is improved.
Corresponding to the above method embodiment, referring to fig. 2, the present invention further provides a data subscription apparatus 200 applied to a proxy subscription device, where the proxy subscription device connects a source data device and at least one user end device, and the data subscription apparatus 200 includes:
a monitoring module 201, configured to monitor whether each source data theme corresponding to the source data device is updated;
an obtaining module 202, configured to obtain incremental data corresponding to each source data topic;
the processing module 203 is configured to perform data processing of a preset type on the incremental data to obtain service data corresponding to a service data topic, where the data processing of the preset type includes integration, decomposition, and transformation, and each service data topic is associated with at least one source data topic;
the sending module 204 is configured to send the service data to the corresponding customer premise equipment according to the service data acquisition request sent by each customer premise equipment and the preset subscription relationship between the service data topic and each customer premise equipment.
When the specific market is implemented, the preset type of data processing is integration, and the processing module 203 is specifically applied to:
if a business data theme is associated with at least two source data themes, combining first metadata corresponding to each source data theme to obtain second metadata corresponding to the business data theme;
the first metadata is used for indicating a storage area of source data corresponding to a source data theme, and all source data corresponding to the second metadata are service data corresponding to the service data theme.
In addition, a proxy subscription device is provided, which includes a processor and a memory, the memory stores a computer program, and the computer program realizes the data subscription method when executed on the processor.
Furthermore, a computer-readable storage medium is provided, in which a computer program is stored, which, when executed on a processor, implements the above-mentioned data subscription method.
For specific implementation processes of the data subscription device, the proxy subscription device, and the computer-readable storage medium provided in the present application, reference may be made to the specific implementation processes of the data subscription method provided in the foregoing embodiments, and details are not repeated here.
According to the data subscription device, the proxy subscription equipment and the computer readable storage medium, incremental data corresponding to a source data theme are obtained through the proxy subscription equipment, preset type data processing is carried out on the incremental data, service data which can be directly used by user side equipment are obtained, service coupling between a data source and a user side is eliminated, and butt joint cost of the data source and the user side is reduced. In addition, the service data corresponding to the service data theme can be sent to the user end equipment after the verification is successful by checking the preset subscription relationship between each user end equipment and the service data theme and the service data acquisition request sent by the user end equipment, so that the service data is prevented from being sent to the user end equipment which is not in the authorized subscription time by mistake, the safety of service data transmission is improved, the invalid occupation of a data transmission channel between the proxy subscription equipment and the user end equipment is reduced, and the resource utilization rate is improved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (10)

1. A data subscription method is applied to a proxy subscription device, wherein the proxy subscription device is connected with a source data device and at least one user end device, and the data subscription method comprises the following steps:
monitoring whether each source data theme corresponding to the source data equipment is updated or not;
obtaining incremental data corresponding to each source data theme;
performing data processing of a preset type on the incremental data to obtain business data corresponding to business data topics, wherein the data processing of the preset type comprises integration, decomposition and conversion, and each business data topic is associated with at least one source data topic;
and sending the service data to corresponding user side equipment according to a service data acquisition request sent by each user side equipment and a preset subscription relation between the service data theme and each user side equipment.
2. The data subscription method according to claim 1, wherein the preset type of data processing is integration, and the step of performing preset type of data processing on the incremental data to obtain the service data corresponding to the service data topic comprises:
if a business data theme is associated with at least two source data themes, combining first metadata corresponding to each source data theme to obtain second metadata corresponding to the business data theme;
the first metadata is used for indicating a storage area of source data corresponding to a source data theme, and all source data corresponding to the second metadata are service data corresponding to the service data theme.
3. The data subscription method according to claim 1, wherein the step of converting the data processing of the preset type, and performing the data processing of the preset type on the incremental data to obtain the service data corresponding to the service data topic comprises:
and according to a preset first mapping relation between the first field and the second field, converting the first field in the incremental data into the corresponding second field through field mapping to obtain the business data corresponding to the business data theme.
4. The data subscription method according to claim 1, wherein the step of creating the preset subscription relationship includes:
receiving a subscription request sent by user end equipment, wherein the subscription request comprises a service data theme needing subscription and an equipment identifier corresponding to the user end equipment;
and creating the preset subscription relationship according to the subscription request, wherein the preset subscription relationship comprises a second mapping relationship between the equipment identifier and the service data topic needing to be subscribed.
5. The data subscription method according to claim 4, wherein the step of sending the service data to the corresponding customer premise equipment according to the service data acquisition request sent by each customer premise equipment and the preset subscription relationship between the service data topic and each customer premise equipment comprises:
judging whether the user side equipment corresponding to the business data theme is inspection-free equipment or not;
if the user end equipment corresponding to the business data theme is not the inspection-free equipment, verifying a business data acquisition request sent by the user end equipment, wherein the business data acquisition request comprises an equipment identifier and a request timestamp corresponding to the business data acquisition request;
and if the verification is successful, the business data corresponding to the business data theme is sent to the user side equipment corresponding to the equipment identification.
6. The data subscription method according to claim 5, wherein the preset subscription relationship includes a subscription authorization time interval, and the step of checking the service data acquisition request sent by the customer premise equipment includes:
if the equipment identifier in the service data acquisition request is the same as the equipment identifier in the preset subscription relationship, judging whether the request timestamp is in the subscription authorization time interval;
if the request timestamp is within the subscription authorization time interval, judging that the verification is successful;
and if the request timestamp is not in the subscription authorization time interval, judging that the verification fails.
7. A data subscription apparatus, applied to a proxy subscription device, where the proxy subscription device connects a source data device and at least one user end device, the data subscription apparatus comprising:
the monitoring module is used for monitoring whether each source data theme corresponding to the source data equipment is updated or not;
the acquisition module is used for acquiring incremental data corresponding to each source data theme;
the processing module is used for performing data processing of a preset type on the incremental data to obtain business data corresponding to business data topics, wherein the data processing of the preset type comprises integration, decomposition and conversion, and each business data topic is associated with at least one source data topic;
and the sending module is used for sending the service data to the corresponding customer premise equipment according to the service data acquisition request sent by each customer premise equipment and the preset subscription relationship between the service data theme and each customer premise equipment.
8. The data subscription device according to claim 7, wherein the preset type of data processing is integration, and the processing module is specifically applied to:
if a business data theme is associated with at least two source data themes, combining first metadata corresponding to each source data theme to obtain second metadata corresponding to the business data theme;
the first metadata is used for indicating a storage area of source data corresponding to a source data theme, and all source data corresponding to the second metadata are service data corresponding to the service data theme.
9. A proxy subscription device, comprising a processor and a memory, the memory storing a computer program that, when executed on the processor, implements the data subscription method of any of claims 1 to 6.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed on a processor, implements the data subscription method of any one of claims 1 to 6.
CN202210381940.4A 2022-04-12 2022-04-12 Data subscription method and device and proxy subscription equipment Withdrawn CN114676153A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210381940.4A CN114676153A (en) 2022-04-12 2022-04-12 Data subscription method and device and proxy subscription equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210381940.4A CN114676153A (en) 2022-04-12 2022-04-12 Data subscription method and device and proxy subscription equipment

Publications (1)

Publication Number Publication Date
CN114676153A true CN114676153A (en) 2022-06-28

Family

ID=82078133

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210381940.4A Withdrawn CN114676153A (en) 2022-04-12 2022-04-12 Data subscription method and device and proxy subscription equipment

Country Status (1)

Country Link
CN (1) CN114676153A (en)

Similar Documents

Publication Publication Date Title
CN108734028B (en) Data management method based on block chain, block chain link point and storage medium
CN108737132B (en) Alarm information processing method and device
CN103024090B (en) Method and system for identifying user terminal
AU2009252121B2 (en) Method and apparatus for managing tokens for digital rights management
CN110912808B (en) Message subscription method, device, system, equipment terminal and readable storage medium
CN110958161B (en) Block chain link point monitoring method and device and storage medium
KR20100127215A (en) Multiple-level message filtering
CN110838971B (en) Message sending method and device, electronic equipment and storage medium
CN110311855B (en) User message processing method and device, electronic equipment and storage medium
CN111784318A (en) Data processing method and device, electronic equipment and storage medium
CN111159269B (en) Data processing method, device and system
CN113726642A (en) Problematic part processing method and system
CN111008209B (en) Data reconciliation method, device and system, storage medium and electronic device
CN115525449B (en) Micro-service data transmission system, method and storage medium
CN111399749B (en) Data processing system and method
CN114676153A (en) Data subscription method and device and proxy subscription equipment
EP2690560A2 (en) Method of benchmarking the behaviour of a replacement information system with the old system
CN111291127B (en) Data synchronization method, device, server and storage medium
CN114663089A (en) Data processing method and device, electronic equipment and storage medium
CN112367540B (en) Method and device for monitoring live broadcast stream pushing number on line
CN110856124B (en) Message state determination method and device, computing equipment and storage medium
CN112437146B (en) Equipment state synchronization method, device and system
CN114416560A (en) Program crash analysis aggregation method and system
CN110472977B (en) Transaction record generation method of blockchain and related equipment
CN116562954A (en) User channel attribution identification method, device, storage medium and program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20220628