CN113434552B - Data request processing method and device, storage medium and electronic device - Google Patents

Data request processing method and device, storage medium and electronic device Download PDF

Info

Publication number
CN113434552B
CN113434552B CN202110723381.6A CN202110723381A CN113434552B CN 113434552 B CN113434552 B CN 113434552B CN 202110723381 A CN202110723381 A CN 202110723381A CN 113434552 B CN113434552 B CN 113434552B
Authority
CN
China
Prior art keywords
data
tag
information
request
rule
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.)
Active
Application number
CN202110723381.6A
Other languages
Chinese (zh)
Other versions
CN113434552A (en
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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110723381.6A priority Critical patent/CN113434552B/en
Publication of CN113434552A publication Critical patent/CN113434552A/en
Application granted granted Critical
Publication of CN113434552B publication Critical patent/CN113434552B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a data request processing method and device, a storage medium and an electronic device, comprising the following steps: receiving a data request, wherein the data request carries dynamic rules, user mark information and first tag information; analyzing the first tag information to obtain second tag information; acquiring first data based on the second tag information and the user mark information; analyzing the dynamic rule to obtain a tag matching rule; and determining whether the first data is legal or not based on the tag matching rule, and generating preset information. Firstly, acquiring first data based on second tag information generated after the first tag information is analyzed and user mark information carried in a data request, and finally determining whether the first data is legal or not based on a tag matching rule generated by analyzing a dynamic rule. By adopting the technical scheme, the problem of low efficiency of responding to the data request in the related technology is solved, and the efficiency of responding to the data request is effectively improved.

Description

Data request processing method and device, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and apparatus for processing a data request, a storage medium, and an electronic device.
Background
Along with the improvement of the attention of enterprises to the user service capability, the intelligent network enterprise commonly constructs a customer portrait system, and terminal equipment can provide differentiated accurate services for customers by acquiring required customer labels.
In the prior art, the portrait labels of users are mainly stored in a centralized way through an MPP database, and rule data are directly transmitted outwards by utilizing the analysis capability of the MPP database on mass data. The continuous increase of the number of terminal devices brings further requirements to low delay of service response, and the mode of directly penetrating out data through data service by using MPP database for centralized storage cannot meet the existing business requirements, so that development of a new customer portrait spot check rule is needed.
Disclosure of Invention
The embodiment of the invention provides a data request processing method and device, a storage medium and an electronic device, which are used for at least solving the problems of low data request response efficiency and the like in the related technology.
According to an embodiment of the present invention, there is provided a method for processing a data request, including: receiving a data request, wherein the data request carries dynamic rules, user mark information and first tag information; analyzing the first tag information to obtain second tag information; acquiring first data based on the second tag information and the user mark information; analyzing the dynamic rule to obtain a tag matching rule; and determining whether the first data is legal or not based on the tag matching rule, and generating preset information.
In one exemplary embodiment, parsing the dynamic rule to obtain the tag matching rule includes: and calling a rule engine service to analyze the dynamic rule to acquire the tag matching rule.
In an exemplary embodiment, determining whether the first data is legal based on the tag matching rule, and generating preset information includes: generating first preset information under the condition that the first data are legal; and generating second preset information under the condition that the first data is determined to be illegal.
In an exemplary embodiment, parsing the first tag information to obtain second tag information includes: and calling a tag query service to analyze the first tag information to acquire second tag information.
In one exemplary embodiment, acquiring the first data based on the second tag information and the user flag information includes: invoking the tag query service based on the second tag information, the tag query service invoking a data query service through a first interface; the data query service accesses a database based on the second tag information and the user identification information to obtain the first data.
In an exemplary embodiment, after acquiring the first data based on the second tag information and the user flag information, before parsing the dynamic rule to acquire a tag matching rule, the method further includes: after the first data is returned to the data query service, the data query service returns the first data to the tag query service; the dynamic rule and the first data are sent to the rules engine service.
In an exemplary embodiment, before receiving the data request, the method further comprises: acquiring an authentication request; and determining whether the authentication request is legal or not, and returning an authentication certificate under the condition that the authentication request is legal.
In an exemplary embodiment, before parsing the first tag information to obtain second tag information, the method further includes: acquiring a verification request; and determining whether the verification request is legal or not, responding to the verification request under the condition that the verification request is legal, and refusing to respond to the verification request under the condition that the verification request is illegal.
According to another embodiment of the present invention, there is also provided a processing apparatus for a data request, including: the receiving module is used for receiving a data request, wherein the data request carries dynamic rules, user mark information and first tag information; the query module is used for querying the first data according to the second tag information and the user mark information; the determining module is used for determining whether the first data are legal or not and generating preset information.
In an exemplary embodiment, the processing apparatus further includes: an authentication module for determining whether the data request is legal; and the data storage module is used for storing a user data set, wherein the user data set comprises the first data.
According to a further aspect of embodiments of the present invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the above-described data request processing method when run.
According to still another aspect of the embodiments of the present invention, there is further provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the above-mentioned data request processing method through the computer program.
In the embodiment of the invention, a data request is received, wherein the data request carries dynamic rules, user mark information and first tag information; analyzing the first tag information to obtain second tag information; acquiring first data based on the second tag information and the user mark information; analyzing the dynamic rule to obtain a tag matching rule; and determining whether the first data is legal or not based on the tag matching rule, and generating preset information. Firstly, acquiring first data based on second tag information generated after the first tag information is analyzed and user mark information carried in a data request, and finally determining whether the first data is legal or not based on a tag matching rule generated by analyzing a dynamic rule. By adopting the technical scheme, the problem of low efficiency of responding to the data request in the related technology is solved, the efficiency of responding to the data request is effectively improved, and the capability of processing the data request with high concurrence is greatly improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
fig. 1 is a hardware block diagram of a computer terminal of a data request processing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a method of processing a data request according to an embodiment of the invention;
FIG. 3 is a flow chart of a method of processing a data request according to an embodiment of the invention;
FIG. 4 is a timing diagram of a method of processing a data request according to an embodiment of the invention;
fig. 5 is a block diagram of a data request processing apparatus according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The method embodiments provided by the embodiments of the present application may be performed in a computer terminal, or a similar computing device. Taking a computer terminal as an example, fig. 1 is a block diagram of a hardware structure of a computer terminal according to a data request processing method according to an embodiment of the present invention. As shown in fig. 1, the computer terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, and in one exemplary embodiment, may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the configuration shown in fig. 1 is merely illustrative and is not intended to limit the configuration of the computer terminal described above. For example, a computer terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than the equivalent functions shown in FIG. 1 or more than the functions shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a method for processing a data request in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104, thereby performing various functional applications and data processing, that is, implementing the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the computer terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
In this embodiment, a method for processing a data request is provided and applied to the computer terminal, and fig. 2 is a schematic diagram of a method for processing a data request according to an embodiment of the present invention, including the following steps:
step S102, a data request is received, wherein the data request carries dynamic rules, user mark information and first tag information;
step S104, analyzing the first tag information to obtain second tag information;
step S106, acquiring first data based on the second tag information and the user mark information;
step S106, analyzing the dynamic rule to obtain a tag matching rule;
step S108, whether the first data is legal or not is determined based on the tag matching rule, and preset information is generated.
In the above data request processing method, a data request is received, where the data request carries a dynamic rule, user mark information and first tag information; analyzing the first tag information to obtain second tag information; acquiring first data based on the second tag information and the user mark information; analyzing the dynamic rule to obtain a tag matching rule; and determining whether the first data is legal or not based on the tag matching rule, and generating preset information. Firstly, acquiring first data based on second tag information generated after the first tag information is analyzed and user mark information carried in a data request, and finally determining whether the first data is legal or not based on a tag matching rule generated by analyzing a dynamic rule. By adopting the technical scheme, the problem of low efficiency of responding to the data request in the related technology is solved, the efficiency of responding to the data request is effectively improved, and the capability of processing the data request with high concurrence is greatly improved.
In step 102, the data request is sent by a terminal, which may be an APP end of an intelligent device or other intelligent network devices, where the intelligent network devices include, but are not limited to, a router, a smart phone, a smart television, and other devices. The data request carries dynamic rules, user mark information and first label information, wherein the dynamic rules are used for representing a method for judging the validity of the second data, the user mark information is mark information only generated at a current terminal, and the first label information is a user label set generated by the terminal.
In step 104, resolving the first tag information to obtain the second tag information may be understood as resolving the first tag information, where the first tag information is resolved to generate the second tag information, and the first tag information is a user tag set generated by the terminal, and the second tag information is a user tag set existing in a digital form.
In step S106, parsing the dynamic rule to obtain the tag matching rule may be understood as parsing the dynamic rule, and generating the tag matching rule after parsing the dynamic rule.
In step S108, determining whether the first data is legal based on the tag matching rule, and generating the preset information may be understood as matching the first data with the tag matching rule, if the matching is successful, legal, generating corresponding preset information, and if the matching is unsuccessful, illegal, generating corresponding preset information.
In one exemplary embodiment, parsing the dynamic rule to obtain a tag matching rule includes: and calling a rule engine service to analyze the dynamic rule to obtain the tag matching rule.
Specifically, the rule engine service is invoked to analyze the dynamic rule, and the tag matching rule is generated after the dynamic rule is analyzed, wherein the response of the data request is quicker and more flexible by introducing the lightweight rule engine, and the time delay is not increased significantly.
In one exemplary embodiment, determining whether the first data is legal based on the tag matching rule, and generating the preset information includes: generating first preset information under the condition that the first data are legal; and generating second preset information under the condition that the first data is determined to be illegal.
That is, the first data is matched with the tag matching rule, if the first data is matched with the tag matching rule, the first data is determined to be legal, and if the first data is not matched with the tag matching rule, the first data is determined to be illegal. Further, in the case that the first data is determined to be legal, first preset information is generated, the first preset information may be preset to be "yes", in the case that the first data is determined to be illegal, second preset information is generated, and the first preset information may be preset to be "no". The first preset information and the second preset information are both sent to the terminal, and the terminal determines whether the user tag is accurate or not and provides accurate service according to the first preset information and the second preset information.
In one exemplary embodiment, parsing the first tag information to obtain the second tag information includes: and calling a tag query service to analyze the first tag information to obtain second tag information.
In other words, the tag query service parses the first tag information, and generates the second tag information after the first tag information is parsed.
In one exemplary embodiment, acquiring the first data based on the second tag information and the user flag information includes: calling a tag query service based on the second tag information, and calling a data query service through a first interface by the tag query service; the data query service accesses the database based on the second tag information and the user identification information to obtain the first data.
Further, the tag query service calls the data query service through the dubbo interface to route the bottom layer DB, the data query service calls the bottom layer DB interface to access the database and obtain first data, wherein the database comprises the first data, the first data is a designated tag set of a designated user existing in a value form, and the database is searched according to second tag information and user mark information to obtain the first data.
In an exemplary embodiment, after acquiring the first data based on the second tag information and the user flag information, before parsing the dynamic rule to acquire the tag matching rule, the method further includes: after the first data is returned to the data query service, the data query service returns the first data to the tag query service; the dynamic rules and the first data are sent to a rules engine service.
In other words, the processing method of the data request firstly acquires the first data according to the second tag information and the user mark information, then returns the acquired first data to the data query service, returns the first data to the tag query service by the data query service, sends the dynamic rule and the first data to the rule engine service, and the rule engine service analyzes the dynamic rule to acquire the tag matching rule.
In one exemplary embodiment, prior to receiving the data request, the method further comprises: acquiring an authentication request; and determining whether the authentication request is legal or not, and returning an authentication certificate under the condition that the authentication request is legal.
Further, firstly, the terminal initiates an authentication request through an http rest interface and requests an authentication certificate, wherein the authentication service checks the authentication request, and under the condition that the authentication request passes the check, the authentication request is determined to be legal.
In an exemplary embodiment, before parsing the first tag information to obtain the second tag information, the method further includes: acquiring a verification request; determining whether the verification request is legal, responding to the verification request under the condition that the verification request is legal, and rejecting to respond to the verification request under the condition that the verification request is illegal.
Specifically, firstly, under the condition that the authentication request is legal, an authentication credential is returned, then the tag inquiry service initiates a verification request, the authentication service acquires the verification request and determines whether the verification request is legal, under the condition that the verification request is legal, the authentication request is responded, a first verification result is generated and returned to the tag inquiry service, under the condition that the verification request is legal, the response verification request is refused, a second verification result is generated and returned to the tag inquiry service, and finally, the tag inquiry service analyzes the first tag information to generate the second tag information only when the first verification result is received.
In order to better understand the process of the data request processing method, the implementation method flow of the data request processing is described below in conjunction with the optional embodiment, but the implementation method flow is not limited to the technical solution of the embodiment of the present invention.
In this embodiment, a method for processing a data request is provided, and fig. 3 is a flowchart of a method for processing a data request according to an embodiment of the present invention, as shown in fig. 3, where the flowchart includes the following steps:
step 301: acquiring an authentication request, and determining whether the authentication request is legal;
that is, the terminal initiates an authentication request, the authentication service determines whether the authentication request is legal, and returns an authentication voucher in case the authentication request is legal, wherein the terminal is an intelligent network device or an APP. The arrangement ensures that the data request to be responded is legal, and avoids the safety problems such as data leakage and the like.
Step 302: receiving a data request, wherein the data request carries dynamic rules, first tag information and user mark information;
the data request is generated by the terminal, and the dynamic rule, the first tag information and the user mark information are generated by the terminal.
Step 303: acquiring a verification request and returning a verification result;
step 304: calling a tag query service to analyze the first tag information;
further, the tag query service is invoked to parse the first tag information to generate second tag information.
Step 305: the tag query service invokes the data query service;
step 306: the data query service accesses the database to acquire first data;
step 307: returning the first data to the data query service, returning the first data to the tag query service by the data query service, and sending the dynamic rule and the first data to the rule engine service;
step 308: the rule engine analyzes the dynamic rule to obtain a tag matching rule;
step 309: and determining the validity of the first data according to the tag matching rule, and generating preset information.
Under the condition that the first data is determined to be legal, first preset information is generated, and under the condition that the first data is determined to be illegal, second preset information is generated.
Further, the steps are all completed in the cloud brain server.
In the data request processing method, whether the data request is legal or not is firstly verified, namely, whether the data is legal or not is avoided by responding to the authentication request and the verification request, then a database is accessed through the tag query service, the data query service and related information, the first data is acquired and returned to the data query service and the tag query service, finally the tag query service calls a rule engine according to the first data and carrying dynamic rules, the rule engine analyzes the dynamic rules to generate tag matching rules, whether the first data is legal or not is determined according to the tag matching rules, and preset information is generated and sent to the terminal. By adopting the technical scheme, the problem of low efficiency of responding to the data request in the related technology is solved, the efficiency of responding to the data request is effectively improved, and the capability of processing the data request with high concurrence is greatly improved.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the various embodiments of the present invention.
The embodiment of the invention also provides a processing device of the data request, which comprises: the receiving module is used for receiving a data request, wherein the data request carries dynamic rules, user mark information and first tag information; the query module is used for querying the first data according to the second tag information and the user mark information; the determining module is used for determining whether the first data are legal or not and generating preset information.
As shown in fig. 4, in an exemplary embodiment, an intelligent network device or APP initiates a data request as a terminal, and obtains a tag result returned by a rule engine, where the tag result is preset information, the tag list is first tag information, the tag data is first data, the tag rule is a tag matching rule, and in addition, hbase is a preset database for storing the first data.
FIG. 5 is a block diagram of a data request processing apparatus according to an embodiment of the present invention; as shown in fig. 5, includes:
a receiving module 42, configured to receive a data request, where the data request carries a dynamic rule, user flag information, and first tag information;
a query module 44 for querying the first data according to the second tag information and the user flag information;
a determining module 46, configured to determine whether the first data is legal, and generate preset information;
an authentication module 48 for determining whether the data request is legitimate;
the data storage module 50 is configured to store a user data set, where the user data set includes first data.
The data storage module 50 may be a different kind of database, and the user data set is collected by the server in advance and stored in the database.
Receiving a data request by the device, wherein the data request carries a dynamic rule, user mark information and first tag information; analyzing the first tag information to obtain second tag information; acquiring first data based on the second tag information and the user mark information; analyzing the dynamic rule to obtain a tag matching rule; and determining whether the first data is legal or not based on the tag matching rule, and generating preset information. Firstly, acquiring first data based on second tag information generated after the first tag information is analyzed and user mark information carried in a data request, and finally determining whether the first data is legal or not based on a tag matching rule generated by analyzing a dynamic rule. By adopting the technical scheme, the problem of low efficiency of responding to the data request in the related technology is solved, the efficiency of responding to the data request is effectively improved, and the capability of processing the data request with high concurrence is greatly improved.
In an exemplary embodiment, the processing apparatus further includes: the authentication module is used for determining whether the data request is legal or not; and the data storage module is used for storing a user data set, wherein the user data set comprises first data.
An embodiment of the invention also provides a storage medium including a stored program, wherein the program performs the method of any one of the above when running.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store program code for performing the steps of:
s1, receiving a data request, wherein the data request carries dynamic rules, user mark information and first tag information;
s2, analyzing the first tag information to obtain second tag information;
s3, acquiring first data based on the second tag information and the user mark information;
s4, analyzing the dynamic rule to obtain a tag matching rule;
s5, determining whether the first data are legal or not based on the tag matching rule, and generating preset information.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, receiving a data request, wherein the data request carries dynamic rules, user mark information and first tag information;
s2, analyzing the first tag information to obtain second tag information;
s3, acquiring first data based on the second tag information and the user mark information;
s4, analyzing the dynamic rule to obtain a tag matching rule;
s5, determining whether the first data are legal or not based on the tag matching rule, and generating preset information.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
For example, the APP sends an authentication request to an authentication service, the authentication service determines whether the authentication request is legal, and returns an authentication credential if the authentication request is determined to be legal; receiving a data request, wherein the data request carries dynamic rules, user mark information and first tag information (for example, the first tag information comprises a 'high-value crowd' tag generated by a terminal), calling a tag query service, initiating a verification request by the tag query service, determining whether the verification request is legal by an authentication service and sending a verification result to the tag query service; the tag query service analyzes the first tag information (such as a tag of 'high-value crowd' generated by a terminal), generates second tag information (such as a tag of 'high-value crowd' in a digital form), invokes the data query service through the dubbo interface, and invokes the bottom DB interface to access a database to acquire second data (such as a tag of 'high-value crowd' in a digital form), wherein the second data is a tag set of a specific user in the digital form; the second data is returned to the data query service, the data query service returns the second data to the tag query service, the tag query is carried with the dynamic rule access rule engine service according to the second data, the rule engine service analyzes the dynamic rule and generates a tag matching rule, whether the second data is legal or not is determined according to the tag matching rule, whether the first data is legal or not is determined according to the tag matching rule, and the generation of preset information can be understood as matching the first data with the tag matching rule, if the matching is successful, the corresponding preset information is legal, if the matching is unsuccessful, the corresponding preset information is illegal, and the corresponding preset information is generated. And generating first preset information and returning to the APP under the condition that the second data are determined to be legal, and generating the first preset information and returning to the APP under the condition that the second data are determined to be illegal.
In another embodiment, the smart television sends an authentication request to an authentication service, the authentication service determines whether the authentication request is legal, and returns an authentication credential if the authentication request is determined to be legal; receiving a data request, wherein the data request carries dynamic rules, user mark information and first tag information (for example, the first tag information comprises a 'high-value crowd' tag generated by a terminal), calling a tag query service, initiating a verification request by the tag query service, determining whether the verification request is legal by an authentication service and sending a verification result to the tag query service; the tag query service analyzes the first tag information (such as a tag of 'high-value crowd' generated by a terminal), generates second tag information (such as a tag of 'high-value crowd' in a digital form), invokes the data query service through the dubbo interface, and invokes the bottom DB interface to access a database to acquire second data (such as a tag of 'high-value crowd' in a digital form), wherein the second data is a tag set of a specific user in the digital form; the second data is returned to the data query service, the data query service returns the second data to the tag query service, the tag query is carried with the dynamic rule access rule engine service according to the second data, the rule engine service analyzes the dynamic rule and generates a tag matching rule, whether the second data is legal or not is determined according to the tag matching rule, whether the first data is legal or not is determined according to the tag matching rule, and the generation of preset information can be understood as matching the first data with the tag matching rule, if the matching is successful, the corresponding preset information is generated, if the matching is unsuccessful, the corresponding preset information is not legal, and the corresponding preset information is generated. And under the condition that the second data is determined to be legal, generating first preset information, returning to the intelligent television, and under the condition that the second data is determined to be illegal, generating the first preset information, and returning to the intelligent television. The smart tv receives the preset information and provides the clients with a precise service (such as recommending luxury goods matching with "high-value crowd") according to the preset information.
In another embodiment, the intelligent sound box sends an authentication request to an authentication service, the authentication service determines whether the authentication request is legal, and returns an authentication certificate under the condition that the authentication request is legal; receiving a data request, wherein the data request carries dynamic rules, user mark information and first tag information, calling a tag query service, initiating a verification request by the tag query service, determining whether the verification request is legal by an authentication service, and sending a verification result to the tag query service; the tag query service analyzes the first tag information to generate second tag information, and invokes the data query service through the dubbo interface, wherein the data query service invokes the bottom DB interface to access the database to obtain second data, and the second data is a tag set of a specific user in a numerical form; the second data is returned to the data query service, the data query service returns the second data to the tag query service, the tag query is carried with the dynamic rule access rule engine service according to the second data, the rule engine service analyzes the dynamic rule and generates a tag matching rule, whether the second data is legal or not is determined according to the tag matching rule, whether the first data is legal or not is determined according to the tag matching rule, and the generation of preset information can be understood as matching the first data with the tag matching rule, if the matching is successful, the corresponding preset information is legal, if the matching is unsuccessful, the corresponding preset information is illegal, and the corresponding preset information is generated. And under the condition that the second data is determined to be legal, generating first preset information, returning to the intelligent sound box, and under the condition that the second data is determined to be illegal, generating the first preset information, and returning to the intelligent sound box. The intelligent sound box receives the preset information and provides accurate service for clients according to the preset information.
Along with the gradual development of the Internet of things, intelligent network device manufacturers pay more attention to the use behaviors of clients, the manufacturers acquire the client behavior data by acquiring ecological multi-source data, and an omnibearing client portrait is constructed in a cloud brain and is supported by the client portrait to carry out differentiated services. The processing method of the data request can meet the high concurrency and low time delay access requirements of the terminal equipment through improving the existing capability. According to the processing method of the data request, the original data flow is switched in the cloud brain service, and the increasingly huge terminal access request can be better processed by means of the filtering effect generated by the rule engine, so that terminal equipment is helped, required user portraits are quickly and accurately acquired, the terminal is supported to provide high-efficiency and accurate customer service, furthermore, the logic of data query and rule matching is stripped by the processing method of the data request, high-efficiency and light-weight service capability is generated, and the rule spot check of the intelligent equipment to the customer portraits is supported, wherein the light-weight can be understood to be higher in efficiency of responding to the data request.
According to the processing method of the data request, through the service transformation of the data query, the data request of the high-concurrency query of the terminal equipment and the internet of things equipment is supported, and a lightweight rule engine is introduced, so that the client portrait spot check capability is more flexible without remarkably increasing time delay, wherein the client portrait spot check can be understood as searching a specific label of a specific user and judging validity. Furthermore, the processing method of the data request generates decoupling effect on the data query and tag matching service by setting the tag query service, the data query service and the rule engine, so that the portrait spot check service has better expansibility, and provides a foundation for the containerization transformation of the service.
In an exemplary embodiment, the method for processing the data request can also be used in intelligent home appliances. The intellectualization of home appliances has become a trend in the development of home appliances, and with the increasing proliferation of intelligent network devices, intelligent network devices have placed higher demands on the ability to provide efficient and accurate services to users. The processing method of the data request is used for transmitting data of the user or the equipment portrait in the spot check scene by introducing a light rule engine mode, greatly reduces the time delay of the existing service and supports the requirement of higher concurrent data requests, accords with the design concept of high cohesion and low coupling of API objects by stripping the logic of data query and rule matching, improves the reusability of the decomposed objects and lays a foundation for subsequent containerization transformation and service management.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. A method for processing a data request, comprising:
receiving a data request, wherein the data request carries dynamic rules, user mark information and first tag information;
analyzing the first tag information to obtain second tag information;
acquiring first data based on the second tag information and the user mark information;
analyzing the dynamic rule to obtain a tag matching rule;
determining whether the first data is legal or not based on the tag matching rule, and generating preset information;
wherein parsing the dynamic rule to obtain the tag matching rule includes: calling a rule engine service to analyze the dynamic rule to acquire the tag matching rule;
the parsing the first tag information to obtain second tag information includes: calling a tag query service to analyze the first tag information to obtain second tag information;
wherein obtaining the first data based on the second tag information and the user flag information includes: invoking the tag query service based on the second tag information, the tag query service invoking a data query service through a first interface; the data query service accesses a database based on the second tag information and the user identification information to obtain the first data.
2. The method of claim 1, wherein determining whether the first data is legitimate based on the tag matching rule, and generating preset information comprises:
generating first preset information under the condition that the first data are legal;
and generating second preset information under the condition that the first data is determined to be illegal.
3. The method of claim 1, wherein after obtaining the first data based on the second tag information and the user flag information, before parsing the dynamic rule to obtain a tag matching rule, the method further comprises:
after the first data is returned to the data query service, the data query service returns the first data to the tag query service;
the dynamic rule and the first data are sent to the rules engine service.
4. A method of processing a data request according to claim 3, wherein prior to receiving the data request, the method further comprises:
acquiring an authentication request;
and determining whether the authentication request is legal or not, and returning an authentication certificate under the condition that the authentication request is legal.
5. The method of claim 4, wherein before parsing the first tag information to obtain second tag information, the method further comprises:
acquiring a verification request;
and determining whether the verification request is legal or not, responding to the verification request under the condition that the verification request is legal, and refusing to respond to the verification request under the condition that the verification request is illegal.
6. A data request processing apparatus, comprising:
the receiving module is used for receiving a data request, wherein the data request carries dynamic rules, user mark information and first tag information;
the query module is used for analyzing the first tag information to obtain second tag information;
the query module is used for querying the first data according to the second tag information and the user mark information;
the determining module is used for analyzing the dynamic rule to obtain a tag matching rule; determining whether the first data is legal or not based on the tag matching rule, and generating preset information;
the determining module is further configured to invoke a rule engine service to parse the dynamic rule to obtain the tag matching rule;
the query module is further used for calling a tag query service to analyze the first tag information so as to acquire second tag information;
the query module is further configured to invoke the tag query service based on the second tag information, where the tag query service invokes a data query service through a first interface; the data query service accesses a database based on the second tag information and the user identification information to obtain the first data.
7. The processing device of claim 6, wherein the processing device further comprises:
an authentication module for determining whether the data request is legal;
and the data storage module is used for storing a user data set, wherein the user data set comprises the first data.
8. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run performs the method of any of the preceding claims 1 to 5.
9. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 5 by means of the computer program.
CN202110723381.6A 2021-06-28 2021-06-28 Data request processing method and device, storage medium and electronic device Active CN113434552B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110723381.6A CN113434552B (en) 2021-06-28 2021-06-28 Data request processing method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110723381.6A CN113434552B (en) 2021-06-28 2021-06-28 Data request processing method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113434552A CN113434552A (en) 2021-09-24
CN113434552B true CN113434552B (en) 2023-07-21

Family

ID=77757472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110723381.6A Active CN113434552B (en) 2021-06-28 2021-06-28 Data request processing method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113434552B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1478347A (en) * 2000-11-28 2004-02-25 ˹ά�ּ������޹�˾ Secure file transfer method and system
US7136932B1 (en) * 1999-03-22 2006-11-14 Eric Schneider Fictitious domain name method, product, and apparatus
CN107016587A (en) * 2016-01-28 2017-08-04 苏宁云商集团股份有限公司 A kind of pushing personalized pages method and device
CN107172088A (en) * 2017-06-30 2017-09-15 江西博瑞彤芸科技有限公司 A kind of data processing method
CN108632284A (en) * 2018-05-10 2018-10-09 网易(杭州)网络有限公司 User data authorization method, medium, device and computing device based on block chain
CN108780459A (en) * 2017-12-29 2018-11-09 深圳市大疆创新科技有限公司 Unmanned aerial vehicle (UAV) control method and apparatus
CN109524070A (en) * 2018-11-12 2019-03-26 北京懿医云科技有限公司 Data processing method and device, electronic equipment, storage medium
CN110727929A (en) * 2019-10-12 2020-01-24 北京明略软件系统有限公司 AOP-based line-level authority control method, device and client
CN111092910A (en) * 2019-12-30 2020-05-01 深信服科技股份有限公司 Database security access method, device, equipment, system and readable storage medium
CN111179139A (en) * 2019-11-27 2020-05-19 腾讯云计算(北京)有限责任公司 Internet + supervision data processing method and device
CN112231568A (en) * 2020-10-22 2021-01-15 携程计算机技术(上海)有限公司 Hotel label automatic configuration method and device, electronic equipment and storage medium
CN112788033A (en) * 2021-01-13 2021-05-11 京东方科技集团股份有限公司 Authentication method and authentication system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11461785B2 (en) * 2008-07-10 2022-10-04 Ron M. Redlich System and method to identify, classify and monetize information as an intangible asset and a production model based thereon
KR102064386B1 (en) * 2013-03-11 2020-01-10 삼성전자 주식회사 Charging control method and apparatus using data volume information

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7136932B1 (en) * 1999-03-22 2006-11-14 Eric Schneider Fictitious domain name method, product, and apparatus
CN1478347A (en) * 2000-11-28 2004-02-25 ˹ά�ּ������޹�˾ Secure file transfer method and system
CN107016587A (en) * 2016-01-28 2017-08-04 苏宁云商集团股份有限公司 A kind of pushing personalized pages method and device
CN107172088A (en) * 2017-06-30 2017-09-15 江西博瑞彤芸科技有限公司 A kind of data processing method
CN108780459A (en) * 2017-12-29 2018-11-09 深圳市大疆创新科技有限公司 Unmanned aerial vehicle (UAV) control method and apparatus
CN108632284A (en) * 2018-05-10 2018-10-09 网易(杭州)网络有限公司 User data authorization method, medium, device and computing device based on block chain
CN109524070A (en) * 2018-11-12 2019-03-26 北京懿医云科技有限公司 Data processing method and device, electronic equipment, storage medium
CN110727929A (en) * 2019-10-12 2020-01-24 北京明略软件系统有限公司 AOP-based line-level authority control method, device and client
CN111179139A (en) * 2019-11-27 2020-05-19 腾讯云计算(北京)有限责任公司 Internet + supervision data processing method and device
CN111092910A (en) * 2019-12-30 2020-05-01 深信服科技股份有限公司 Database security access method, device, equipment, system and readable storage medium
CN112231568A (en) * 2020-10-22 2021-01-15 携程计算机技术(上海)有限公司 Hotel label automatic configuration method and device, electronic equipment and storage medium
CN112788033A (en) * 2021-01-13 2021-05-11 京东方科技集团股份有限公司 Authentication method and authentication system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Enforcing Obligations within Relational Database Management Systems";Pietro Colombo 等;《IEEE TRANSACTIONS ON DEPENDABLE AND SECURE COMPUTING》;第318-331页 *
"关联规则聚类更新的大数据文件请求流分析";谭海中 等;《计算机工程与设计》;第2971-2976页 *

Also Published As

Publication number Publication date
CN113434552A (en) 2021-09-24

Similar Documents

Publication Publication Date Title
KR101543221B1 (en) - Method Apparatus and System for Providing Muti User-Multi Service
CN101478396B (en) Uni-directional cross-domain identity verification based on low correlation of private cipher key and application thereof
CN111294798B (en) Data interaction method, device, terminal equipment and medium
CN104021141B (en) Method, device and system for data processing and cloud service
CN108429739B (en) Method, system and terminal equipment for identifying honeypots
CN113672896A (en) Interface authority verification method, system, electronic device and storage medium
CN107368334B (en) Business plug-in interaction system and method
CN113037888A (en) Method and device for accelerating configuration of domain name, storage medium and electronic equipment
KR20130022533A (en) System and method for automatically installing applications
CN109558710B (en) User login method, device, system and storage medium
CN114827239A (en) Bidirectional session holding method and device based on 8583 protocol
CN112738019B (en) Method and device for displaying device information, storage medium and electronic device
CN112637221B (en) Equipment control method and device
CN113434552B (en) Data request processing method and device, storage medium and electronic device
CN109525613B (en) Request processing system and method
CN102780680A (en) Method and system for backcasting data of SNS (Social Network Site) platform
CN108737350B (en) Information processing method and client
CN111159509B (en) Data processing method and related product
CN112350982B (en) Resource authentication method and device
US20130046837A1 (en) Method and Arrangement for Registering a User
CN103795748A (en) Method for downloading mobile internet website content information
CN113055254B (en) Address configuration method, device, access server and storage medium
CN113867976A (en) Calling method and device of application program interface, storage medium and electronic device
US8359383B2 (en) Ubiquitous service framework system for supporting service in multiple domain and method thereof
US20160234685A1 (en) Methods and Devices for Processing Identification Information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant