[go: up one dir, main page]

CN113434552A - 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
CN113434552A
CN113434552A CN202110723381.6A CN202110723381A CN113434552A CN 113434552 A CN113434552 A CN 113434552A CN 202110723381 A CN202110723381 A CN 202110723381A CN 113434552 A CN113434552 A CN 113434552A
Authority
CN
China
Prior art keywords
data
information
tag
request
legal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110723381.6A
Other languages
Chinese (zh)
Other versions
CN113434552B (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

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; 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

本发明公开了一种数据请求的处理方法和装置、存储介质及电子装置,包括:接收数据请求,其中,所述数据请求携带有动态规则、用户标志信息、第一标签信息;对所述第一标签信息进行解析以获取第二标签信息;基于所述第二标签信息和所述用户标志信息获取第一数据;对所述动态规则进行解析以获取标签匹配规则;基于所述标签匹配规则确定所述第一数据是否合法,并生成预设信息。即首先通过基于解析第一标签信息后产生的第二标签信息和数据请求中携带的用户标志信息获取第一数据,最后基于解析动态规则所产生的标签匹配规则来确定第一数据是否合法。采用上述技术方案,解决了相关技术中响应数据请求的效率低的问题,有效地提高了响应数据请求的效率。

Figure 202110723381

The invention discloses a data request processing method and device, a storage medium and an electronic device, comprising: receiving a data request, wherein the data request carries dynamic rules, user identification information, and first label information; Parsing tag information to obtain second tag information; acquiring first data based on the second tag information and the user identification information; parsing the dynamic rules to acquire tag matching rules; determining based on the tag matching rules Whether the first data is legal or not, and generate preset information. That is, firstly obtain the first data based on the second label information generated after parsing the first label information and the user identification information carried in the data request, and finally determine whether the first data is legal based on the label matching rules generated by parsing the dynamic rules. The above technical solution solves the problem of low efficiency in responding to data requests in the related art, and effectively improves the efficiency in responding to data requests.

Figure 202110723381

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 an apparatus for processing a data request, a storage medium, and an electronic apparatus.
Background
With the improvement of the attention of enterprises to user service capacity, the intelligent network device enterprises generally construct a client portrait system, and terminal equipment can provide differentiated accurate service for clients by acquiring required client tags.
In the prior art, portrait labels of users are mainly stored in a centralized manner through an MPP database, and regular data are directly exported to the outside by utilizing the analysis capability of the MPP database on mass data. The continuous increase of the number of terminal devices puts forward a further requirement on low delay of service response, and the existing business requirements cannot be met by using the MPP database for centralized storage and directly outputting data through data service, so that a new customer portrait spot check rule needs to be developed urgently.
Disclosure of Invention
Embodiments of the present invention provide a data request processing method and apparatus, a storage medium, and an electronic apparatus, so as to at least solve the problems of low efficiency of responding to a data request and the like in the related art.
According to an embodiment of the present invention, a method for processing a data request is provided, including: receiving a data request, wherein the data request carries a dynamic rule, user identification information and first label information; analyzing the first label information to obtain second label information; acquiring first data based on the second tag information and the user identification information; analyzing the dynamic rule to obtain a tag matching rule; and determining whether the first data is legal or not based on the label matching rule, and generating preset information.
In one exemplary embodiment, parsing the dynamic rule to obtain the tag matching rule comprises: 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 is determined to be 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 label inquiry service to analyze the first label information so as to obtain second label information.
In one exemplary embodiment, the acquiring the first data based on the second tag information and the user identification information includes: calling the tag query service based on the second tag information, wherein the tag query service calls a data query service through a first interface; the data query service accesses a database to obtain the first data based on the second tag information and the user identification information.
In an exemplary embodiment, 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 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; sending the dynamic rule and the first data to the rule engine service.
In one 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 voucher under the condition of determining 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 data request processing apparatus, including: the receiving module is used for receiving a data request, wherein the data request carries a dynamic rule, user mark information and first label information; the query module is used for querying the first data according to the second label information and the user mark information; and the determining module is used for determining whether the first data is legal or not and generating preset information.
In one exemplary embodiment, the processing apparatus further comprises: the authentication module is used for determining whether the data request is legal or not; a data storage module to store a user data set, the user data set including the first data.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the above processing method of the data request when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for processing the data request through the computer program.
In the embodiment of the invention, a data request is received, wherein the data request carries a dynamic rule, user mark information and first label information; analyzing the first label information to obtain second label information; acquiring first data based on the second tag information and the user identification 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. First data is obtained based on second tag information generated after the first tag information is analyzed and user mark information carried in a data request, and finally whether the first data is legal or not is determined based on a tag matching rule generated by analyzing a dynamic rule. By adopting the technical scheme, the problem of low data request response efficiency in the related technology is solved, the data request response efficiency is effectively improved, and the capability of processing high-concurrency data requests 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 embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration 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 diagram 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 to make the technical solutions of the present invention better understood, 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. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or 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 provided by the embodiment of the application can be executed in a computer terminal, a computer terminal or a similar operation device. Taking the example of being operated on a computer terminal, fig. 1 is a hardware structure block diagram of a computer terminal of 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 shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and in an exemplary embodiment, may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the computer terminal. For example, the computer terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration with equivalent functionality to that shown in FIG. 1 or with more functionality than that shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the data request processing method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The 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 located remotely from the processor 102, which may be connected to a computer terminal over 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 device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a method for processing a data request is provided, which is 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, and includes the following steps:
step S102, receiving a data request, wherein the data request carries a dynamic rule, user mark information and first label information;
step S104, analyzing the first label information to obtain second label information;
step S106, acquiring first data based on the second label information and the user mark information;
step S106, analyzing the dynamic rule to obtain a tag matching rule;
and S108, determining whether the first data is legal or not based on the label matching rule, and generating preset information.
In the data request processing method, a data request is received, wherein the data request carries a dynamic rule, user identification information and first tag information; analyzing the first label information to obtain second label information; acquiring first data based on the second tag information and the user identification 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. First data is obtained based on second tag information generated after the first tag information is analyzed and user mark information carried in a data request, and finally whether the first data is legal or not is determined based on a tag matching rule generated by analyzing a dynamic rule. By adopting the technical scheme, the problem of low data request response efficiency in the related technology is solved, the data request response efficiency is effectively improved, and the capability of processing high-concurrency data requests is greatly improved.
In step 102, a data request is sent by a terminal, where the terminal may be an APP terminal of an intelligent device or other intelligent network appliances, and the intelligent network appliances include, but are not limited to, a router, a smart phone, a smart television, and other appliances. The data request carries a dynamic rule, user identification information and first label information, wherein the dynamic rule is used for representing a method for judging the validity of the second data, the user identification information is identification information only generated at a current terminal, and the first label information is a user label set generated by the terminal.
In step 104, the step of analyzing the first tag information to obtain the second tag information may be understood as analyzing the first tag information, and the first tag information is analyzed to generate the second tag information, where 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 the tag matching rule is generated after the dynamic rule is parsed.
In step S108, whether the first data is legal is determined based on the tag matching rule, and generating the preset information may be understood as matching the first data with the tag matching rule, where if matching is successful, the first data is legal, and the corresponding preset information is generated, and if matching is unsuccessful, the first data is illegal, and the corresponding preset information is generated.
In one exemplary embodiment, parsing the dynamic rule to obtain the tag matching rule includes: and invoking a rule engine service to analyze the dynamic rule to obtain a tag matching rule.
Specifically, the rule engine service is called to analyze the dynamic rule, and the label 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 remarkably increased.
In one exemplary embodiment, determining whether the first data is legitimate based on the tag matching rule, and generating the preset information includes: generating first preset information under the condition that the first data is determined to be 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 a case where it is determined that the first data is legitimate, first preset information may be preset to "yes", and in a case where it is determined that the first data is not legitimate, second preset information may be generated, and the first preset information may be preset to "no". The first preset information and the second preset information are both sent to the terminal, and the terminal determines whether the user label 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 label inquiry service to analyze the first label information so as to obtain second label information.
In other words, the tag query service parses the first tag information, and the first tag information is parsed to generate the second tag information.
In one exemplary embodiment, the acquiring the first data based on the second tag information and the user identification information includes: calling a tag query service based on the second tag information, wherein the tag query service calls a data query service through a first interface; the data query service accesses a database to obtain the first data based on the second tag information and the user identification information.
Further, the label query service calls a data query service through the dubbo interface to route the bottom layer DB, the data query service calls a bottom layer DB interface to access the database and obtain first data, the database comprises the first data, the first data is a specified label set of a specified user existing in a value form, and the database retrieves the first data according to the second label information and the user mark information.
In an exemplary embodiment, after the first data is obtained based on the second tag information and the user flag information, before the dynamic rule is parsed to obtain 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 rule and the first data are sent to a rule engine service.
In other words, the data request processing method firstly obtains first data according to the second tag information and the user mark information, then returns the obtained first data to the data query service, the data query service returns the first data to the tag query service, and sends the dynamic rule and the first data to the rule engine service, and the rule engine service analyzes the dynamic rule to obtain the tag matching rule.
In one 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 voucher under the condition of determining that the authentication request is legal.
Further, the terminal initiates an authentication request and requests an authentication voucher through an http rest interface, wherein the authentication request is verified by the authentication service, and the authentication request is determined to be legal under the condition that the verification is passed.
In an exemplary embodiment, before parsing the first tag information to obtain the second tag information, the method further includes: acquiring a verification request; and determining whether the verification request is legal, 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.
Specifically, the method includes the steps that firstly, under the condition that an authentication request is determined to be legal, an authentication certificate is returned, then a tag inquiry service initiates a verification request, the authentication service acquires the verification request and determines whether the verification request is legal or not, under the condition that the verification request is determined to be legal, the verification request is responded, a first verification result is generated and returned to the tag inquiry service, under the condition that the verification request is determined to be legal, the verification request is refused to be responded, a second verification result is generated and returned to the tag inquiry service, and finally, the tag inquiry service analyzes first tag information to generate 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 following describes an implementation method flow of the data request processing with reference to an optional embodiment, but the technical solution of the embodiment of the present invention is not limited thereto.
In the present 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, the flowchart includes the following steps:
step 301: acquiring an authentication request, and determining whether the authentication request is legal or not;
that is, the terminal initiates an authentication request, the authentication service determines whether the authentication request is legal, and returns an authentication voucher under the condition that the authentication request is legal, wherein the terminal is an intelligent network device or an APP. The data request to be responded is guaranteed to be legal by the arrangement, and the safety problems of data leakage and the like are avoided.
Step 302: receiving a data request, wherein the data request carries a dynamic rule, first tag information and user mark information;
it should be noted that the data request is generated by the terminal, and the dynamic rule, the first tag information, and the user identification information are generated by the terminal.
Step 303: obtaining 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 calls a data query service;
step 306: a data query service accesses a database to obtain 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 legality of the first data according to the tag matching rule, and generating preset information.
And generating first preset information under the condition that the first data is determined to be legal, and generating second preset information under the condition that the first data is determined to be illegal.
Further, the steps are all completed in the cloud brain server.
According to the data request processing method, whether the data request is legal or not is verified firstly, namely, the data request is responded to the authentication request and the verification request, the condition that data are leaked or illegally logged is avoided, then the database is accessed through the tag query service, the data query service and relevant information, the first data are obtained 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 are legal or not is determined according to the tag matching rules, and preset information is generated and sent to a terminal. By adopting the technical scheme, the problem of low data request response efficiency in the related technology is solved, the data request response efficiency is effectively improved, and the capability of processing high-concurrency data requests is greatly improved.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
An embodiment of the present invention further provides a processing apparatus for a data request, where the processing apparatus includes: the receiving module is used for receiving a data request, wherein the data request carries a dynamic rule, user mark information and first label information; the query module is used for querying the first data according to the second label information and the user mark information; and the determining module is used for determining whether the first data is legal or not and generating preset information.
As shown in fig. 4, in an exemplary embodiment, an intelligent network device or APP as a terminal initiates a data request and obtains a tag result returned by a rule engine, where the tag result is preset information, a tag list is first tag information, tag data is first data, a tag rule is a tag matching rule, and Hbase is a preset database for storing the first data.
FIG. 5 is a block diagram of an apparatus for processing a data request 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 identifier information, and first tag information;
a query module 44, configured to query the first data according to the second tag information and the user identification 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;
a data storage module 50 for storing a user data set, the user data set comprising first data.
The data storage module 50 may be different kinds of databases, and the user data sets are collected by the server in advance and stored in the database.
Receiving a data request through the device, wherein the data request carries a dynamic rule, user identifier information and first label information; analyzing the first label information to obtain second label information; acquiring first data based on the second tag information and the user identification 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. First data is obtained based on second tag information generated after the first tag information is analyzed and user mark information carried in a data request, and finally whether the first data is legal or not is determined based on a tag matching rule generated by analyzing a dynamic rule. By adopting the technical scheme, the problem of low data request response efficiency in the related technology is solved, the data request response efficiency is effectively improved, and the capability of processing high-concurrency data requests is greatly improved.
In one exemplary embodiment, the processing apparatus further comprises: the authentication module is used for determining whether the data request is legal or not; the data storage module is used for storing a user data set, and the user data set comprises first data.
Embodiments of the invention also provide a storage medium comprising a stored program, wherein the program performs any of the above methods when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, receiving a data request, wherein the data request carries a dynamic rule, user identification information and first label information;
s2, analyzing the first label information to obtain second label information;
s3, acquiring first data based on the second label information and the user mark information;
s4, analyzing the dynamic rule to obtain a label matching rule;
and S5, determining whether the first data is legal based on the label matching rule, and generating preset information.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, receiving a data request, wherein the data request carries a dynamic rule, user identification information and first label information;
s2, analyzing the first label information to obtain second label information;
s3, acquiring first data based on the second label information and the user mark information;
s4, analyzing the dynamic rule to obtain a label matching rule;
and S5, determining whether the first data is legal based on the label matching rule, and generating preset information.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. 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 voucher under the condition that the authentication request is legal; receiving a data request, wherein the data request carries a dynamic rule, user identification information and first tag information (for example, the first tag information comprises a tag of a high-value crowd generated by a terminal), calling a tag query service, the tag query service initiates a verification request, and an authentication service determines whether the verification request is legal and sends a verification result to the tag query service; the tag query service analyzes the first tag information (such as a tag 'high-value crowd' generated by a terminal), generates second tag information (such as a tag 'high-value crowd' in a digital form), and calls a data query service through a dubbo interface, wherein the data query service calls an underlying DB interface to access a database to obtain second data (such as a tag 'high-value crowd' in a numerical form), and the second data is a tag set of a specific user in the numerical form; and returning the second data to a data query service, returning the second data to a tag query service by the data query service, accessing a rule engine service according to the second data and carrying a dynamic rule by the tag query service, analyzing the dynamic rule by the rule engine service and generating a tag matching rule, determining whether the second data is legal according to the tag matching rule, determining whether the first data is legal according to the tag matching rule, generating preset information, wherein the generation of the preset information can be understood as matching the first data with the tag matching rule, if the matching is successful, the preset information is legal, and 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 and returning the first preset information to the APP.
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 voucher under the condition that the authentication request is legal; receiving a data request, wherein the data request carries a dynamic rule, user identification information and first tag information (for example, the first tag information comprises a tag of a high-value crowd generated by a terminal), calling a tag query service, the tag query service initiates a verification request, and an authentication service determines whether the verification request is legal and sends a verification result to the tag query service; the tag query service analyzes the first tag information (such as a tag 'high-value crowd' generated by a terminal), generates second tag information (such as a tag 'high-value crowd' in a digital form), and calls a data query service through a dubbo interface, wherein the data query service calls an underlying DB interface to access a database to obtain second data (such as a tag 'high-value crowd' in a numerical form), and the second data is a tag set of a specific user in the numerical form; and returning the second data to a data query service, returning the second data to a tag query service by the data query service, accessing a rule engine service according to the second data and carrying a dynamic rule by the tag query service, analyzing the dynamic rule by the rule engine service to generate a tag matching rule, determining whether the second data is legal according to the tag matching rule, determining whether the first data is legal according to the tag matching rule, generating preset information, wherein the generation of the preset information can be understood as matching the first data with the tag matching rule, if the matching is successful, the preset information is legal, and 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 and returning the first preset information to the intelligent television, and under the condition that the second data is determined to be illegal, generating the first preset information and returning the first preset information to the intelligent television. The intelligent television receives the preset information and provides precise services (such as luxury goods matched with 'high-value people') for the client according to the preset information.
In another embodiment, the smart speaker sends an authentication request to an authentication service, the authentication service determines whether the authentication request is legal, and returns an authentication voucher under the condition that the authentication request is legal; receiving a data request, wherein the data request carries a dynamic rule, user identification information and first tag information, calling a tag inquiry service, the tag inquiry service initiates a verification request, and an authentication service determines whether the verification request is legal and sends a verification result to the tag inquiry service; the tag query service analyzes the first tag information to generate second tag information, and calls a data query service through a dubbo interface, the data query service calls a bottom DB interface to access a database to obtain second data, and the second data is a tag set of a specific user in a numerical form; and returning the second data to a data query service, returning the second data to a tag query service by the data query service, accessing a rule engine service according to the second data and carrying a dynamic rule by the tag query service, analyzing the dynamic rule by the rule engine service and generating a tag matching rule, determining whether the second data is legal according to the tag matching rule, determining whether the first data is legal according to the tag matching rule, generating preset information, wherein the generation of the preset information can be understood as matching the first data with the tag matching rule, if the matching is successful, the preset information is legal, and 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 and returning the first preset information 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 the first preset information to the intelligent sound box. And the intelligent sound box receives the preset information and provides accurate service for the client according to the preset information.
Along with the gradual development of the internet of things, the use behaviors of customers are concerned by manufacturers of intelligent network devices, the manufacturers acquire the behavior data of the customers by acquiring ecological multi-source data, construct all-around customer figures in the cloud, and support multiple channels by means of the customer figures to perform differentiated services. The data request processing method can meet the access requirements of high concurrency and low time delay of the terminal equipment by improving the existing capability. The data request processing method switches the original data flow in the cloud brain service, and can better process increasingly huge terminal access requests by means of the filtering effect generated by the rule engine, so that the terminal equipment is helped, needed user portraits are obtained quickly and accurately, efficient and accurate customer service is provided for the support terminal, furthermore, the data request processing method further peels off the logic of data query and rule matching, efficient and light-weight service capability is generated, and the rule check of the intelligent equipment on the customer portraits is supported, wherein the light weight can be understood as higher efficiency of responding to the data request.
According to the data request processing method, through service transformation of data query, high-concurrency query data requests of terminal equipment and internet of things equipment are supported, and a lightweight rule engine is introduced, so that the client portrait spot-checking capability is more flexible without obvious increase of time delay, and the client portrait spot-checking can be understood as searching for a specific label of a specific user and judging the validity. Furthermore, the data request processing method has a 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 query service has higher expansibility, and a basis is provided for containerization transformation of the service.
In an exemplary embodiment, the processing method of the data request may also be used in an intelligent appliance. The intellectualization of home appliances has become a trend of home appliance development, and with the continuous growth of intelligent network device devices, the intelligent network device puts higher requirements on the capability of providing efficient and accurate services for users. The processing method of the data request is used for transmitting data of the user or the equipment portrait in the checking scene by introducing a light rule engine mode, so that the time delay of the existing service is greatly reduced, the requirement of higher concurrent data requests is supported, the logic of data query and rule matching is stripped, the design concept of high cohesion and low coupling of an API (application program interface) object is met, the reusability of the decomposed object is improved, and a foundation is laid 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, and various modifications and changes will occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A method for processing a data request, comprising:
receiving a data request, wherein the data request carries a dynamic rule, user identification information and first label information;
analyzing the first label information to obtain second label information;
acquiring first data based on the second tag information and the user identification information;
analyzing the dynamic rule to obtain a tag matching rule;
and determining whether the first data is legal or not based on the label matching rule, and generating preset information.
2. The method of claim 1, wherein parsing the dynamic rule to obtain the tag matching rule comprises:
and calling a rule engine service to analyze the dynamic rule to acquire the tag matching rule.
3. The method of claim 2, wherein determining whether the first data is legal based on the tag matching rule and generating preset information comprises:
generating first preset information under the condition that the first data is determined to be legal;
and generating second preset information under the condition that the first data is determined to be illegal.
4. The method of claim 3, wherein parsing the first tag information to obtain second tag information comprises:
and calling a label inquiry service to analyze the first label information so as to obtain second label information.
5. The method of claim 4, wherein obtaining first data based on the second tag information and the user identification information comprises:
calling the tag query service based on the second tag information, wherein the tag query service calls a data query service through a first interface;
the data query service accesses a database to obtain the first data based on the second tag information and the user identification information.
6. The method of claim 5, wherein after obtaining the first data based on the second tag information and the user flag information, and 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;
sending the dynamic rule and the first data to the rule engine service.
7. The method of claim 6, wherein 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 voucher under the condition of determining that the authentication request is legal.
8. The method of claim 7, 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.
9. An apparatus for processing a data request, comprising:
the receiving module is used for receiving a data request, wherein the data request carries a dynamic rule, user mark information and first label information;
the query module is used for querying the first data according to the second label information and the user mark information; and the determining module is used for determining whether the first data is legal or not and generating preset information.
10. The processing apparatus according to claim 9, characterized in that the processing apparatus further comprises: the authentication module is used for determining whether the data request is legal or not;
a data storage module to store a user data set, the user data set including the first data.
11. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the method of any one of claims 1 to 8.
12. 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 of any of claims 1 to 8 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 true CN113434552A (en) 2021-09-24
CN113434552B 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 (14)

* 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
US20100010968A1 (en) * 2008-07-10 2010-01-14 Redlich Ron M System and method to identify, classify and monetize information as an intangible asset and a production model based thereon
US20140254481A1 (en) * 2013-03-11 2014-09-11 Samsung Electronics Co., Ltd. Method and apparatus for controlling charging by using volume information of data
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 深圳市大疆创新科技有限公司 UAV control method and device
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

Patent Citations (14)

* 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
US20100010968A1 (en) * 2008-07-10 2010-01-14 Redlich Ron M System and method to identify, classify and monetize information as an intangible asset and a production model based thereon
US20140254481A1 (en) * 2013-03-11 2014-09-11 Samsung Electronics Co., Ltd. Method and apparatus for controlling charging by using volume information of data
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 深圳市大疆创新科技有限公司 UAV control method and device
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
PIETRO COLOMBO 等: ""Enforcing Obligations within Relational Database Management Systems"", 《IEEE TRANSACTIONS ON DEPENDABLE AND SECURE COMPUTING》, pages 318 - 331 *
谭海中 等: ""关联规则聚类更新的大数据文件请求流分析"", 《计算机工程与设计》, pages 2971 - 2976 *

Also Published As

Publication number Publication date
CN113434552B (en) 2023-07-21

Similar Documents

Publication Publication Date Title
US12225374B2 (en) Method and apparatus for managing bundles of smart secure platform
CN101478396B (en) Uni-directional cross-domain identity verification based on low correlation of private cipher key and application thereof
CN113672896A (en) Interface authority verification method, system, electronic device and storage medium
CN115442423A (en) Method for discovering services provided by a network repository function
CN109995876B (en) File transmission method, device, system and computer storage medium
CN104021141B (en) Method, device and system for data processing and cloud service
CN106713004B (en) Router adaptation method and system
CN109558710B (en) User login method, device, system and storage medium
CN113037888A (en) Method and device for accelerating configuration of domain name, storage medium and electronic equipment
CN112235124A (en) Method and device for configuring pico-cell, storage medium and electronic device
CN113867976A (en) Calling method and device of application program interface, storage medium and electronic device
CN105791349A (en) Data analysis method, device and system, terminal and server
CN113014626B (en) Data service management method and device, storage medium and electronic device
CN112637221B (en) Equipment control method and device
CN112787858B (en) Data model parameter configuration method, device, electronic device and storage medium
CN113434552A (en) Data request processing method and device, storage medium and electronic device
CN112800440A (en) Dynamic watermark adding processing method and device
CN114258007A (en) SIM card management method, device and computer storage medium
CN102780680A (en) Method and system for backcasting data of SNS (Social Network Site) platform
CN108737350B (en) Information processing method and client
CN106912118B (en) A method, device and system for creating a service number
WO2023088011A1 (en) Method and apparatus for transmitting interaction information, and storage medium and electronic apparatus
CN107846300B (en) Method and device for providing service interface
CN114912937B (en) A method for generating an advertisement tracking identifier and related equipment
US8359383B2 (en) Ubiquitous service framework system for supporting service in multiple domain and method thereof

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