CN110650196B - Business processing system, method, electronic device and storage medium - Google Patents

Business processing system, method, electronic device and storage medium Download PDF

Info

Publication number
CN110650196B
CN110650196B CN201910909500.XA CN201910909500A CN110650196B CN 110650196 B CN110650196 B CN 110650196B CN 201910909500 A CN201910909500 A CN 201910909500A CN 110650196 B CN110650196 B CN 110650196B
Authority
CN
China
Prior art keywords
service
negative
data
cache
module
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
CN201910909500.XA
Other languages
Chinese (zh)
Other versions
CN110650196A (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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201910909500.XA priority Critical patent/CN110650196B/en
Publication of CN110650196A publication Critical patent/CN110650196A/en
Application granted granted Critical
Publication of CN110650196B publication Critical patent/CN110650196B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure relates to a service processing system, a service processing method, electronic equipment and a storage medium, and belongs to the technical field of internet. The system comprises: the system comprises a data storage module, a data discovery module and a rule data module, wherein the data storage module stores negative marks of negative operations corresponding to services, and the rule data module stores rule data corresponding to the negative marks; the data discovery module is configured to receive the service identifier, and if it is determined that the target service indicated by the service identifier has a negative sign, the data discovery module acquires the target negative sign of the target service from the data storage module according to the service identifier; and the data discovery module is also configured to acquire the target negative-direction marked rule data from the rule data module and return the target negative-direction marked rule data to the service party sending the service identifier, so that the service party executes the negative operation indicated by the target negative-direction mark on the target service according to the received rule data. The embodiment of the disclosure improves the processing efficiency of the service.

Description

Business processing system, method, electronic device and storage medium
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a service processing system, a service processing method, an electronic device, and a storage medium.
Background
With the rapid development of internet technology and the continuous improvement of user demands, the current content sharing platform becomes the first choice for mass entertainment and leisure. The content sharing platform supports users to share and watch multimedia resources including short videos.
For a content sharing platform, negative operations on services cannot be avoided. The negative operation refers to an operation representing a negative action performed on the service, such as user account blocking, user account deletion, video hot-up failure, video failure to be displayed in a search result, and the like. In addition, with the increase of the traffic and the increasing of the traffic scenes, the demand of negative operation is accumulated continuously. In the face of continuous expansion of services, the problem of processing efficiency needs to be considered, for example, the problem of low processing efficiency caused by repeated development when a new service is added needs to be overcome. In another expression, how to perform negative-direction processing on the service to improve the processing efficiency of the service becomes a problem to be solved by those skilled in the art.
Disclosure of Invention
The present disclosure provides a service processing system, a service processing method, an electronic device, and a storage medium, which can improve service processing efficiency and achieve a better effect. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a service processing system, the system including: the system comprises a data storage module, a data discovery module and a rule data module, wherein a negative sign of a negative operation corresponding to a service is stored in the data storage module, and a rule data corresponding to the negative sign is stored in the rule data module, and the negative operation refers to the operation of performing a negative action on the service;
the data discovery module is configured to receive a service identifier, and if it is determined that a target service indicated by the service identifier has a negative sign, obtain a target negative sign of the target service from the data storage module according to the service identifier;
the data discovery module is further configured to obtain the target negatively marked rule data from the rule data module, and return the target negatively marked rule data to the service party that sent the service identifier, so that the service party performs the negative operation indicated by the target negatively marked rule on the target service according to the received rule data.
In a possible implementation manner, the data storage module includes a filtering cache and a data cache, and a negative-going flag of a negative-going operation corresponding to a service is stored in the data cache;
the data discovery module is further configured to, after receiving the service identifier, determine that a negative sign exists in a target service indicated by the service identifier if it is determined that the service identifier is stored in a first cache of the filtering cache, where a service identifier set is stored in the first cache, and a negative sign exists in a service indicated by each service identifier in the service identifier set.
In a possible implementation manner, the data discovery module is further configured to, after determining that the service identifier is not stored in the first cache, determine that a negative flag exists in a target service indicated by the service identifier if the second cache of the filtering cache detects that the service identifier is located in the service identifier set.
In a possible implementation manner, the data discovery module is further configured to, after determining that the service identifier is not stored in the first cache, if the second cache of the filtering cache detects that the service identifier is not located in the service identifier set, return a prompt message to the service party, where the prompt message is used to prompt that the target service has no negative operation.
In one possible implementation, the system further includes: a rule data management module;
the rule data management module is configured to acquire first rule data of a specified negative sign in the data storage module, and replace second rule data of the specified negative sign currently stored in the rule data module with the first rule data.
In one possible implementation, the system further includes: the data returns to the source module;
the data source returning module is configured to acquire original service data of the service configured by the service party;
the data source returning module is further configured to store the negative marker data extracted from the original service data to the data storage module, and store the rule data extracted from the original service data to the rule data module.
According to a second aspect of the embodiments of the present disclosure, there is provided a service processing method, including:
receiving a service identifier;
if it is determined that a negative sign exists in the target service indicated by the service identifier, acquiring the target negative sign of the target service from negative signs of negative operations corresponding to the stored service according to the service identifier, wherein the negative operations refer to operations representing negative actions performed on the service;
acquiring the rule data of the target negative marker from the stored rule data corresponding to the negative marker;
and returning the rule data of the target negative direction mark to the service party sending the service identifier so that the service party executes the negative direction operation indicated by the target negative direction mark on the target service according to the received rule data.
In one possible implementation, the method further includes:
after receiving the service identifier, if it is determined that the service identifier is stored in a first cache of a filtering cache, it is determined that a negative sign exists for a target service indicated by the service identifier, a service identifier set is stored in the first cache, and a negative sign exists for a service indicated by each service identifier in the service identifier set.
In one possible implementation, the method further includes:
after determining that the service identifier is not stored in the first cache, if the second cache of the filtering cache detects that the service identifier is located in the service identifier set, determining that a negative sign exists in the target service indicated by the service identifier.
In one possible implementation, the method further includes:
after determining that the service identifier is not stored in the first cache, if the second cache of the filtering cache detects that the service identifier is not located in the service identifier set, returning a prompt message to the service party, where the prompt message is used to prompt that the target service has no negative operation.
In one possible implementation, the method further includes:
and acquiring stored first rule data of the specified negative mark, and replacing currently stored second rule data of the specified negative mark with the first rule data.
In one possible implementation, the method further includes:
acquiring original service data of a service configured by the service party;
and respectively storing the negative marking data and the regular data extracted from the original service data. .
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the traffic processing method according to the second aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the business processing method according to the second aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product, wherein instructions of the computer program product, when executed by a processor of an electronic device, enable the electronic device to perform the business processing method according to the second aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
in the embodiment of the present disclosure, the service processing system is responsible for configuring negative operations of the service. That is, embodiments of the present disclosure form a configuration for negative operation at the system level. The business processing system based on the configuration only needs to perform corresponding configuration of the negative operation of the business in the data storage module and the rule data module when business expansion is performed. Correspondingly, when the service party performs service processing, only the service processing system needs to be accessed, and after receiving the service identifier of the service party, the data discovery module of the service processing system can detect whether the target service indicated by the service identifier has a negative sign; if the target service has the negative mark, the negative mark corresponding to the service identifier is obtained from the data storage module, the rule data of the target service is obtained from the rule data module according to the negative mark, and then the rule data is returned to the service party, so that the service party executes the negative operation indicated by the negative mark on the target service according to the received rule data.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a block diagram illustrating a business processing system in accordance with an exemplary embodiment.
FIG. 2 is a block diagram illustrating another business processing system in accordance with an exemplary embodiment.
Fig. 3 is a flow chart illustrating a method of traffic processing according to an example embodiment.
FIG. 4 is a schematic diagram illustrating a negative traffic handling flow in accordance with an exemplary embodiment.
FIG. 5 is a schematic diagram illustrating another negative traffic processing flow in accordance with an illustrative embodiment.
FIG. 6 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings 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 disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the disclosure, as detailed in the appended claims.
The user information to which the present disclosure relates may be information authorized by the user or sufficiently authorized by each party.
Before explaining the embodiments of the present disclosure in detail, some terms related to the embodiments of the present disclosure are explained.
Negative direction: to indicate negative, or negative, among other bad meanings.
And (3) negative operation: in the disclosed embodiment, the negative operation may also be referred to as a negative process or a negative strategy.
Wherein, the negative operation refers to the operation representing the negative action performed on the service. In another expression, a negative-going operation refers to bad processing of a service, i.e., the negative-going operation belongs to processing on a negative-going level of the service.
As an example, user account blocking, user account deletion, video work deletion, video hot-up failure, video failure to be shown in search results, and the like all pertain to negative operations performed on the service.
Negative system: in the embodiment of the present disclosure, the negative-direction system is responsible for performing unified configuration on various negative-direction operations of the service. That is, a uniform configuration of the various negative operations is formed at the system level.
In detail, the negative system can help the service party configure various negative operations and the rule data corresponding to the negative operations. As mentioned above, negative operations correspond to a bad or negative level of processing performed on the traffic, and the regular data reflects the specific degree of processing on the bad or negative level. In short, the rule data indicates how much negative operation is performed on the traffic.
As an example, taking a negative operation of a service as user account barring as an example, the rule data corresponding to the negative operation may be: permanent containment, containment for 1 month, containment for 10 days, etc., are used to indicate the extent of containment.
In addition, the negative system is a configurable system, so the method can be suitable for continuous expansion of services, namely new services, new service scenes, new functions and the like can be well supported, repeated development is not needed for similar negative operations, for example, the negative operations are developed once every time one negative operation is not needed to be added, the cost is saved, and the transverse and longitudinal expansion of the services becomes possible. Namely, when a new service is added, the service party directly knows that the negative system performs negative operation and corresponding rule data configuration according to service requirements, and in the subsequent use process, the service party can directly obtain corresponding configuration information from the negative system without data storage by the service party, and all the configuration information is handed to the negative system for processing, so that the service expansibility is enhanced.
For example, taking the user account block for 10 days as an example, the service party may register a negative-direction flag for the negative-direction operation of "user account block" on the negative-direction system, and configure rule data of "block for 10 days" for the negative-direction flag. Subsequently, when the service party accesses the negative system to inquire the user account, the negative system informs the service party that the user account is forbidden for 10 days, that is, the information configured by the service party at that time is returned to the service party, so that the service party performs related service processing according to the information returned by the negative system. Additionally, the service party may frequently initiate access to the negative system, such as asking for configuration information of a certain user account, e.g. whether to log off or whether to delete it. In addition, in the embodiment of the disclosure, the configured information in the negative direction system can be changed at any time. In summary, the negative-direction system enables the negative-direction operation to be more widely applied at the system level, so that the negative-direction suppressing processing on the service is more quickly realized.
Negative direction labeling: in the disclosed embodiments, the negative-going flag is used to uniquely flag a negative-going operation. Wherein one negative-going flag corresponds to one negative-going operation. That is, the service side and the negative system will have a unique ID, which is the negative label, pre-defined for each negative operation. For example, number 18 indicates user account deletion, and number 19 indicates user account logout.
The following describes an implementation environment related to a service processing method provided by the embodiment of the present disclosure.
The service processing method provided by the embodiment of the present disclosure is applied to the service processing system shown in fig. 1, where the service processing system runs on an electronic device with computing capability, where the service processing system is also referred to as a negative direction system, and the electronic device may be represented as a server, which is not specifically limited in this embodiment of the present disclosure.
Referring to fig. 1, the service processing system includes: a data storage module 101, a data discovery module 102, and a rule data module 103. The data storage module 101 stores a negative sign of a negative operation corresponding to the service, and the rule data module 103 stores rule data corresponding to the negative sign.
In the process of service processing, the data discovery module 102 is responsible for receiving a service identifier (service ID) sent by a service party, and if it is determined that a negative sign exists in a target service indicated by the service ID, the negative sign of the target service is obtained from the data storage module 101 according to the service ID. Then, the rule data of the target negative sign in the rule data module 103 returns the rule data of the target negative sign to the service party sending the service ID, so that the service party performs the negative operation indicated by the target negative sign on the target service according to the received rule data.
In one possible implementation, as shown in fig. 2, the data storage module 101 includes a filtering cache 1011 and a data cache 1012, and the data cache 1012 stores a negative-going flag of a negative-going operation corresponding to a service.
The service processing system also comprises: a rule data management module 104 and a data back-to-source module 105. The rule data management module 104 is responsible for dynamically modifying the rule data stored in the rule data module 103. The data source returning module 105 is responsible for data source returning, and in detail, obtains original service data of a service configured by a service party, stores negative-direction marking data extracted from the original service data in the data storage module 101, and stores rule data extracted from the original service data in the rule data module 103. The original service data is also original meta data.
To sum up, the service processing logic of the embodiment of the present disclosure includes two layers of concepts, where the first layer is to determine whether the service has a negative operation corresponding to a negative system configuration, and the second layer is to determine what the rule data configured for the negative operation is after determining that the service has the negative operation configuration.
It should be noted that, in the embodiment of the present disclosure, the service is generally a user-oriented or user-oriented work, such as a user account and a video work, which is not specifically limited in the embodiment of the present disclosure. Taking the user account as an example, after the service party initiates access to the negative system, the negative system first informs the service party that the user account has no corresponding negative operation at all, such as user account blocking or user account deletion; and then, after determining that the user account number corresponds to the negative operation, the negative system acquires specific rule data of the negative operation to the service party. Alternatively, the negative-going system can inform the business party whether the video work or the user account corresponds to a negative-going token, and what rule data the negative-going token specifically corresponds to after determining that the negative-going token corresponds to.
The following embodiments explain a service processing method and a service processing system provided by the embodiments of the present disclosure in detail.
Fig. 3 is a flowchart illustrating a business process method, as applied to a business process system, as shown in fig. 1, according to an exemplary embodiment, including the following steps.
In step 301, a service identification is received.
In step 302, if it is determined that the target service indicated by the service identifier has a negative sign, a target negative sign of the target service is obtained from negative signs of negative operations corresponding to the stored service according to the service identifier, where a negative operation refers to an operation performed on the service to indicate a negative action.
In step 303, the rule data of the target negative marker is obtained from the stored rule data corresponding to the negative marker.
In step 304, the rule data of the target negative sign is returned to the service party sending the service identifier, so that the service party performs the negative operation indicated by the target negative sign on the target service according to the received rule data.
The method provided by the embodiment of the disclosure is realized based on a service processing system, and the service processing system is responsible for configuring negative operation of a service. That is, embodiments of the present disclosure form a configuration for negative operation at the system level. The business processing system based on the configuration only needs to perform corresponding configuration of the negative operation of the business in the data storage module and the rule data module when business expansion is performed. Correspondingly, when the service party performs service processing, only the service processing system needs to be accessed, and after receiving the service identifier of the service party, the data discovery module of the service processing system can detect whether the target service indicated by the service identifier has a negative sign; if the target service has the negative mark, the negative mark corresponding to the service identifier is obtained from the data storage module, the rule data of the target service is obtained from the rule data module according to the negative mark, and then the rule data is returned to the service party, so that the service party executes the negative operation indicated by the negative mark on the target service according to the received rule data.
In a possible implementation manner, the data storage module includes a filtering cache and a data cache, and a negative-going flag of a negative-going operation corresponding to a service is stored in the data cache;
the data discovery module is further configured to, after receiving the service identifier, if it is determined that the service identifier is stored in the first cache of the filtering cache, determine that a negative sign exists for a target service indicated by the service identifier, where a service identifier set is stored in the first cache, and a negative sign exists for each service indicated by each service identifier in the service identifier set.
In a possible implementation manner, the data discovery module is further configured to, after determining that the service identifier is not stored in the first cache, determine that a negative flag exists in a target service indicated by the service identifier if the second cache of the filtering cache detects that the service identifier is located in the service identifier set.
In a possible implementation manner, the data discovery module is further configured to, after determining that the service identifier is not stored in the first cache, if the second cache of the filtering cache detects that the service identifier is not located in the service identifier set, return a prompt message to the service party, where the prompt message is used to prompt that the target service has no negative operation.
In one possible implementation, the system further includes: a rule data management module;
the rule data management module is configured to acquire first rule data of a specified negative sign in the data storage module, and replace second rule data of the specified negative sign currently stored in the rule data module with the first rule data.
In one possible implementation, the system further includes: the data returns to the source module;
the data source returning module is configured to acquire original service data of the service configured by the service party;
the data source returning module is further configured to store the negative marker data extracted from the original service data to the data storage module, and store the rule data extracted from the original service data to the rule data module.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
A service processing system provided by the embodiment of the present disclosure is described in detail below with reference to fig. 1 and fig. 2.
The traffic handling system, also referred to as negative going system, see fig. 1, comprises: a data storage module 101, a data discovery module 102, and a rule data module 103. In one possible implementation, the system further includes a rule data management module 104 and a data back-to-source module 105. The data storage module 101, the data discovery module 102, the rule data module 103, the rule data management module 104, and the data source module 105 will be described below.
Data storage module
In the disclosed embodiment, the data storage module 101 includes a filter cache 1011 and a data cache 1012.
The filtering cache 1011 includes two filtering caches, namely a first cache 1011-1 and a second cache 1011-2, in detail, so that the data storage module 101 is also called a three-level cache system. That is, the data storage module 101 includes a first buffer 1011-1, a second buffer 1011-2 and a data buffer 1012.
The data cache 1012 stores negative signs of negative operations corresponding to services, that is, the data cache 1012 stores sign codes of negative operations configured for different services by the service party. In one possible implementation, the data cache 1012 stores a correspondence between a service ID and a negative-going token, where a negative-going operation has a unique negative-going token. This signature code is also referred to herein as a negative signature. In addition, for one service, multiple negative direction marks can be corresponded, that is, multiple negative direction operations can be configured for one service.
Taking the negative-going flag data stored in the data cache 1012 as unique ID: [1,2,7] as an example, the negative-going flag data indicates that 3 negative-going flags exist in a certain service (service ID is unique ID), and are respectively 1,2, and 7, where the negative-going flags 1,2, and 7 respectively correspond to different negative-going operations, and what service meaning is specifically identified by 1,2, and 7 respectively may be defined and set by a service party, which is not specifically limited in the embodiment of the present disclosure.
It should be noted that, in the embodiment of the present disclosure, the first buffer 1011-1 and the second buffer 1011-2 are both filtering buffers, and the filtering buffers mainly function to greatly reduce direct access to negative-going flag data.
The first cache 1011-1 is responsible for determining whether a negative-going flag of the service exists, and the second cache 1011-2 is responsible for determining whether a negative-going flag exists again on the basis of the first cache 1011-1. In one possible implementation, the second cache 1011-2 is typically a bloom filter, and the embodiments of the present disclosure may greatly reduce the bad situation of cache breakdown and speed up the return rate of negative-going flag data through a two-level filtering cache design. Among them, bloom filters are important tools for determining whether an element is present in a given set, i.e., a bloom filter has a great use to quickly determine whether an element is present in a given set.
Cache breakdown, simply the system handles a large number of non-existent data queries. The general process of normal cache flow is that data query starts from cache query, if a key does not exist or the key is expired, the database is queried, and the queried object is placed in cache. If the database query object is empty, the database query object is not put into the cache. If the system receives a large number of nonexistent keys, the cache is similar to a dummy, a large number of data query requests are led to the database, the database cannot bear the pressure, and the system is down.
Data discovery module
In this embodiment of the present disclosure, after receiving a service identifier (i.e., a service ID), if it is determined that a negative sign exists in a target service indicated by the service identifier, the data discovery module 102 obtains the target negative sign of the target service from the data storage module 101 according to the service identifier. As an example, since the data cache 1012 is responsible for storing the negative-going tokens of the negative-going operations corresponding to the traffic, accessing the data cache 1012 obtains the target negative-going token of the target traffic from the data cache 1012 according to the traffic identifier. Wherein, the negative direction mark obtained can be one or more.
Then, the data discovery module 102 obtains the rule data of the target negative sign from the rule data module 103, and returns the rule data of the target negative sign to the service party that sent the service identifier, so that the service party executes the negative operation indicated by the target negative sign on the target service according to the received rule data.
In a possible implementation manner, in conjunction with fig. 4, the above-mentioned flow process performed by the data discovery module 102 may be subdivided into the following four steps, which are respectively:
step 1, a service ID passes through a first cache 1011-1, and whether a negative sign exists in the service indicated by the service ID is judged; if the negative direction mark exists, executing the following step 3; if no negative sign is present, the following step 2 is performed.
For this step, the data discovery module 102 is configured to, after receiving the service ID, if it is determined that the service ID is stored in the first cache 1011-1 of the filtering cache 1011, determine that a negative flag exists in the target service indicated by the service ID, where a service identifier set is stored in the first cache 1011-1, and a negative flag exists in each service indicated by the service identifier in the service identifier set; that is, if the service ID of a certain service is located in the service identifier set, it is determined that the corresponding service has a negative sign, and the step of accessing the data cache is executed.
Step 2, the service ID passes through a second cache 1011-2, and whether a negative sign exists in the service indicated by the service ID is judged; if a negative going flag is present, the following step 3 is performed.
For this step, the data discovery module 102 is further configured to, after determining that the service ID is not stored in the first cache 1011-1, determine that the target service indicated by the service ID has a negative flag if the second cache 1011-2 of the filtering cache 1011 detects that the service ID is located in the service identifier set.
As described in step 1, if it is determined that the target service indicated by the service ID does not have a negative flag through the first cache 1011-1, the second cache 1011-2 continues to detect whether the target service indicated by the service ID has a negative flag. If it is determined that the service indicated by the service ID has a negative flag through the second cache 1011-2, the data cache 1011-2 is directly accessed, that is, the following step 3 is performed.
In the disclosed embodiment, the second cache 1011-2 is typically a bloom filter. That is, the service ID passes through the second buffer 1011-2, and in detail, it is determined whether the service ID can pass through the bloom filter.
The bloom filter is a detection service for reverse reasoning, and if the bloom filter gives that a certain element does not exist in a given set, the element does not exist in the given set. In accordance with the disclosed embodiment, if the bloom filter gives a service ID with no negative flag, the service ID is true without negative flag. In another expression, if the bloom filter indicates that a service ID does not exist in the service ID set, the service ID does not exist in the service ID set.
In one possible implementation, a set of service identifiers with negative flags may be stored in the bloom filter. That is, the bloom filter may record the service IDs of all services for which negative flags exist. As an example, to save space efficiency, the set of service identities may be compactly represented by a bit array. Correspondingly, if the bloom filter determines that the service ID of a certain service is located in the service identifier set, the data discovery module 102 determines that the service indicated by the service ID has a negative sign, and then performs a step of accessing the data cache.
That is, the basic principle of the bloom filter is: when an element is added to a set, the element is mapped to K points in a bit array by K hash functions, setting them to 1. When the element is searched, whether the element exists in the set is known only by judging whether the points are all 1 or not; if any of the points is 0, the detected element must not exist; if both are 1, the detected element is likely to be present.
In a possible implementation manner, if the second cache 1011-2 detects that the target service indicated by the service ID does not have a negative-going flag, after determining that the service ID is not stored in the first cache 1011-1, if the second cache 1011-2 of the filtering cache 1011 detects that the service ID is not located in the service ID set, the target service is directly returned without any negative-going operation. Alternatively, the data discovery module 102 is further responsible for returning a prompt message to the service party if it is determined that the target service does not have the negative sign, where the prompt message is used to prompt the target service to have no negative operation.
And step 3, accessing the data cache 1011-2, and acquiring the negative mark corresponding to the service ID from the data cache 1011-2.
As shown in fig. 4, if it is determined that the target service indicated by the service ID has a negative sign, the data discovery module 102 accesses the underlying data cache 1012, obtains the target negative sign of the target service from the data cache 1012 according to the service ID, and proceeds to step 4 below.
And step 4, acquiring the rule data of the target negative sign from the rule data module 103, and returning the rule data to the service party sending the service ID, so that the service party can execute service processing according to the rule data.
That is, this step is used to obtain the rule data of the negative operation through the negative marker, and return the rule data of the target negative marker to the service party sending the service identifier, so that the service party executes the negative operation indicated by the target negative marker on the target service according to the received rule data. For example, if the negative operation for a certain video work and the corresponding rule data limit the number of playing times of the video work to 2, the service party will limit the number of playing times of the video work after receiving the limited number of playing times of the video work for 2 times, and control the video work to be played only for 2 times.
Rule data module&Rule data management module
In the disclosed embodiment, the rule data module 103 is configured to store rule data corresponding to a negative-going flag that operates in the negative-going direction. Put another way, the rule data module 103 is mainly responsible for maintaining and managing the role and proportion (also referred to as a threshold) of the negative flag in the service scenario, for example, { (1: { (risk): 50% } indicates that the risk value of the negative flag 1 is 50%.
Taking the negative-going flag 18 of the negative-going operation deleted by the user account as an example, the rule data possibly configured for the negative-going operation in the rule data module 103 is "delete 10 days", that is, the rule data gives the effect and proportion of the negative-going flag 18 in the scene of the user account deletion, that is, gives a specific delete value of 10 days. That is, the service side makes a service scene determination by hitting the negative-going operation and acquiring a rule threshold included in the rule data corresponding to the negative-going flag of the negative-going operation, thereby executing the service processing.
For example, taking a negative operation as an example to limit the playing frequency of a video, assuming that the rule data of the negative operation is played for 2 times, after the business side acquires the rule data of which the playing frequency of the video is only 2 times from the negative system, the business side controls the playing frequency of the video, and the video is not played after being played for 2 times.
In addition, as shown in fig. 5, the rule data management system 104 in the embodiment of the present disclosure may also dynamically configure the rule data. In detail, the rule data management module 104 is configured to acquire first rule data (new rule data) specifying a negative sign in the data storage module 101, and replace second rule data (old rule data) specifying a negative sign currently stored in the rule data module 103 with the first rule data. Wherein a designated negative-going indicia generally refers herein to any one of the negative-going indicia stored in the data storage module 101.
That is, based on the rule data management system 104, the rule data stored in the rule data module 103 can be dynamically modified at any time, for example, a rule threshold in the rule data corresponding to a negative-direction flag of a certain negative-direction operation is modified, so that not only dynamic modification can be achieved, but also no service is perceived. For example, assuming that the current rule data module 103 stores a rule that the user account is prohibited for 10 days, the rule data management system 104 may modify the rule threshold of 10 days to 1 month or 1 year, and so on.
Data back source module
In the embodiment of the present disclosure, the negative direction system relates to a third-level cache and a first-level rule data module, and data stored in the third-level cache and the first-level rule data module belong to hot backup, so as to avoid that these backup data are lost along with some abnormal conditions of the system, thereby causing irreparable loss to the service, the negative direction system provided in the embodiment of the present disclosure further includes a data back-to-source module 105.
Referring to fig. 5, the data back source of the embodiment of the present disclosure is divided into two branches, where one branch is back source rule data, such as original service data of a service configured by a service provider, which is scanned periodically, and the rule data is extracted from the back source rule data, and the extracted rule data is backed up in the rule data module 103; the other branch is back-source negative-direction marking data, such as original service data of a service configured by a service party, is scanned regularly, the negative-direction marking data is extracted from the original service data, and the extracted negative-direction marking data is backed up in a third-level cache. That is, in the embodiment of the present disclosure, the data source-back module 105 is configured to obtain original service data of a service configured by a service party, store negative-direction flag data extracted from the original service data in the data storage module 101, and store rule data extracted from the original service data in the rule data module 103.
The service processing system provided by the embodiment of the disclosure has at least the following beneficial effects:
in the embodiment of the present disclosure, the negative-direction system is responsible for performing unified configuration on various negative-direction operations of the service. That is, embodiments of the present disclosure form a unified configuration for various negative operations at the system level. The negative system comprises a data storage module, a data discovery module and a rule data module, wherein the data storage module is further subdivided into a filtering cache and a data cache, a negative mark of a negative operation corresponding to a service is stored in the data cache, and rule data corresponding to the negative mark is stored in the rule data module.
When business expansion is carried out, the negative system based on the configuration only needs to carry out corresponding configuration of negative operation of the business in a data storage module and a regular data module. Correspondingly, when the service side processes the service, only the negative direction system needs to be accessed, and after the data discovery module of the negative direction system receives the service identifier of the service side, the data discovery module detects whether the target service indicated by the service identifier has a negative direction mark; if the target service has the negative mark, the negative mark corresponding to the service identifier is obtained from the data storage module, the rule data of the target service is obtained from the rule data module according to the negative mark, and then the rule data is returned to the service party, so that the service party executes the negative operation indicated by the negative mark on the target service according to the received rule data.
In another expression mode, because the negative direction system is a configurable system, the system can well support new services, new service scenes, new functions and the like, and similar negative direction operations do not need to be repeatedly developed, for example, the negative direction operations are not required to be newly added each time, so that the cost is saved, and the transverse and longitudinal expansion of the services becomes possible. Namely, the negative system provided based on the embodiment of the present disclosure can perform transversal and longitudinal service expansion well, and when the service needs more negative operations, repeated development is not needed, thereby greatly reducing the cost of service maintenance, and realizing the negative operations of restricting the service types and complexity under the condition of reducing the cost as much as possible.
In addition, when a new service is added, the service party directly knows that the negative system performs negative operation and corresponding rule data configuration according to service requirements, and in the subsequent use process, the service party can directly obtain corresponding configuration information from the negative system without data storage of the service party and all the configuration information is handed to the negative system for processing. That is, based on the negative direction system provided by the embodiment of the present disclosure, even under the situation of a great number of service scenes, agile development can be achieved, and a great amount of manpower is not required to be invested to perform system maintenance.
In addition, based on the negative system provided by the embodiment of the disclosure, negative pressure based on numerical statistics is possible, that is, the negative system can not only be in a non-digital service, but also can process digital services such as "limit one video to be played only for 2 times", "limit video to appear only for 3 days on a ranking list, and leave the shelf after 3 days", and a service party can implement the negative system only by performing corresponding rule threshold configuration.
In addition, in the embodiment of the present disclosure, the negative system further includes a rule data management module, which can change configured information at any time. In addition, the negative system comprises a data source returning module which can return the data, thereby avoiding the irreparable loss of the service caused by the loss of the data along with some abnormal conditions of the system.
To sum up, the negative direction system provided by the embodiment of the present disclosure can adapt to continuous expansion of services, so that negative direction operations can be more widely applied at a system level, and negative direction suppress processing on services can be more quickly implemented. In addition, the system can also enable the service to be excellent in performance in the aspects of horizontal and longitudinal expansion and system maintenance, and is convenient for developing related services more agilely. In addition, the negative system provided by the embodiment of the disclosure can be separated from the service, the service can completely self-define the negative logic of the service, the negative operation of the newly added service is very convenient, and the dynamic configuration of the data management module is regulated, so that the service development and the system online are not required in the process of switching data, and the expansion of the service in the horizontal and deep fields is greatly improved.
In another embodiment, as shown in fig. 1 and fig. 2, an embodiment of the present disclosure provides a service processing system, including: a data storage module 101, a data discovery module 102 and a rule data module 103;
the data storage module 101 stores a negative sign of a negative operation corresponding to a service, and the rule data module 103 stores rule data corresponding to the negative sign, where the negative operation is an operation representing a negative action performed on the service;
the data discovery module 102 is configured to receive a service identifier, and if it is determined that a target service indicated by the service identifier has a negative sign, obtain a target negative sign of the target service from the data storage module 101 according to the service identifier;
the data discovery module 102 is further configured to obtain the target negatively marked rule data from the rule data module 103, and return the target negatively marked rule data to the service party that sent the service identifier, so that the service party performs the negative operation indicated by the target negatively marked rule on the target service according to the received rule data.
The service processing system provided by the embodiment of the disclosure is responsible for uniformly configuring various negative direction marks of a service. That is, embodiments of the present disclosure form a configuration for negative operation at the system level. The business processing system based on the configuration only needs to perform corresponding configuration of the negative operation of the business in the data storage module and the rule data module when business expansion is performed. Correspondingly, when the service party performs service processing, only the service processing system needs to be accessed, and after receiving the service identifier of the service party, the data discovery module of the service processing system can detect whether the target service indicated by the service identifier has a negative sign; if the target service has the negative mark, the negative mark corresponding to the service identifier is obtained from the data storage module, the rule data of the target service is obtained from the rule data module according to the negative mark, and then the rule data is returned to the service party, so that the service party executes the negative operation indicated by the negative mark on the target service according to the received rule data.
In a possible implementation manner, the data storage module 101 includes a filtering cache 1011 and a data cache 1012, where a negative-going flag of a negative-going operation corresponding to a service is stored in the data cache 1012;
the data discovery module 102 is further configured to, after receiving the service identifier, if it is determined that the service identifier is stored in the first cache 1011-1 of the filtering cache 1011, determine that a negative flag exists in the target service indicated by the service identifier, where a service identifier set is stored in the first cache 1011-1, and a negative flag exists in each service indicated by the service identifier in the service identifier set.
In a possible implementation manner, the data discovery module 102 is further configured to, after determining that the service identifier is not stored in the first cache 1011-1, determine that a negative flag exists in the target service indicated by the service identifier if the second cache 1011-2 of the filtering cache 1011 detects that the service identifier is located in the service identifier set.
In a possible implementation manner, the data discovery module 102 is further configured to, after determining that the service identifier is not stored in the first cache 1011-1, if the second cache 1011-2 of the filtering cache 1011 detects that the service identifier is not located in the service identifier set, return a prompt message to the service party, where the prompt message is used to prompt that the target service has no negative operation.
In one possible implementation, the system further includes: a rule data management module 104;
the rule data management module 104 is configured to acquire first rule data of a specified negative sign in the data storage module 101, and replace second rule data of the specified negative sign currently stored in the rule data module 103 with the first rule data.
In one possible implementation, the system further includes: data back to the source module 105;
a data source-back module 105 configured to obtain original service data of the service configured by the service party;
the data back-to-source module 105 is further configured to store the negative-going flag data extracted from the original business data to the data storage module 101, and store the rule data extracted from the original business data to the rule data module 103.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
The electronic device 600 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 601 and one or more memories 602, where at least one instruction is stored in the memory 602, and is loaded and executed by the processor 601 to implement the service processing method provided by each method embodiment. Of course, the electronic device may further have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the electronic device may further include other components for implementing the functions of the device, which is not described herein again.
In an exemplary embodiment, a computer-readable storage medium, such as a memory, including instructions executable by a processor in an electronic device to perform the business processing method in the above embodiments is also provided. For example, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1. A transaction system, the system comprising: the system comprises a data storage module, a data discovery module and a rule data module, wherein a negative sign of a negative operation corresponding to a service is stored in the data storage module, and a rule data corresponding to the negative sign is stored in the rule data module, and the negative operation refers to the operation of performing a negative action on the service;
the data discovery module is configured to receive a service identifier, and if it is determined that a target service indicated by the service identifier has a negative sign, obtain a target negative sign of the target service from the data storage module according to the service identifier;
the data discovery module is further configured to obtain the target negatively marked regular data from the regular data module, and return the target negatively marked regular data to the service party sending the service identifier, so that the service party performs the negative operation indicated by the target negatively marked regular data on the target service according to the received regular data; wherein the negative-going indicia of the negative-going operation and the rule data are configured by the business process system.
2. The service processing system according to claim 1, wherein the data storage module comprises a filtering cache and a data cache, and the data cache stores a negative-going flag of a negative-going operation corresponding to a service;
the data discovery module is further configured to, after receiving the service identifier, if it is determined that the service identifier is stored in the first cache of the filtering cache, determine that a negative sign exists for a target service indicated by the service identifier, where a service identifier set is stored in the first cache, and a negative sign exists for each service indicated by each service identifier in the service identifier set.
3. The traffic processing system of claim 2, wherein the data discovery module is further configured to, after determining that the traffic identifier is not stored in the first cache, determine that a negative flag exists for the target traffic indicated by the traffic identifier if the second cache of the filtering cache detects that the traffic identifier is located in the set of traffic identifiers.
4. The service processing system of claim 2, wherein the data discovery module is further configured to, after determining that the service identifier is not stored in the first cache, return a prompt message to the service party if the second cache of the filter cache detects that the service identifier is not located in the service identifier set, where the prompt message is used to prompt the target service not to have a negative operation.
5. A transaction system according to any one of claims 1 to 4, further comprising: a rule data management module;
the rule data management module is configured to acquire first rule data of a specified negative sign in the data storage module, and replace second rule data of the specified negative sign currently stored in the rule data module with the first rule data.
6. A transaction system according to any one of claims 1 to 4, further comprising: the data returns to the source module;
the data source returning module is configured to acquire original service data of the service configured by the service party;
the data source returning module is further configured to store the negative marker data extracted from the original service data to the data storage module, and store the rule data extracted from the original service data to the rule data module.
7. A service processing method is applied to a service processing system, and the method comprises the following steps:
receiving a service identifier;
if it is determined that the target service indicated by the service identifier has a negative sign, acquiring the target negative sign of the target service from negative signs of negative operations corresponding to the stored service according to the service identifier, wherein the negative operations refer to operations representing negative actions performed on the service;
acquiring the rule data of the target negative marker from the stored rule data corresponding to the negative marker; wherein the negative-going indicia of the negative-going operation and the rule data are configured by the business party through the business processing system;
and returning the rule data of the target negative sign to the service party sending the service identifier so that the service party executes the negative operation indicated by the target negative sign on the target service according to the received rule data.
8. The traffic processing method according to claim 7, wherein the method further comprises:
after receiving the service identifier, if it is determined that the service identifier is stored in a first cache of a filtering cache, it is determined that a negative sign exists for a target service indicated by the service identifier, a service identifier set is stored in the first cache, and a negative sign exists for a service indicated by each service identifier in the service identifier set.
9. The traffic processing method according to claim 8, wherein the method further comprises:
after determining that the service identifier is not stored in the first cache, if the second cache of the filtering cache detects that the service identifier is located in the service identifier set, determining that a negative sign exists in the target service indicated by the service identifier.
10. The traffic processing method according to claim 8, wherein the method further comprises:
after determining that the service identifier is not stored in the first cache, if the second cache of the filtering cache detects that the service identifier is not located in the service identifier set, returning a prompt message to the service party, where the prompt message is used to prompt that the target service has no negative operation.
11. A traffic processing method according to any of claims 7 to 10, characterized in that the method further comprises:
and acquiring stored first rule data of the specified negative mark, and replacing currently stored second rule data of the specified negative mark with the first rule data.
12. A traffic processing method according to any of claims 7 to 10, characterized in that the method further comprises:
acquiring original service data of a service configured by the service party;
and respectively storing the negative marking data and the regular data extracted from the original service data.
13. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the traffic processing method of any of claims 7 to 12.
14. A storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a business process method of any one of claims 7 to 12.
CN201910909500.XA 2019-09-25 2019-09-25 Business processing system, method, electronic device and storage medium Active CN110650196B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910909500.XA CN110650196B (en) 2019-09-25 2019-09-25 Business processing system, method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910909500.XA CN110650196B (en) 2019-09-25 2019-09-25 Business processing system, method, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN110650196A CN110650196A (en) 2020-01-03
CN110650196B true CN110650196B (en) 2022-05-24

Family

ID=68992600

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910909500.XA Active CN110650196B (en) 2019-09-25 2019-09-25 Business processing system, method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN110650196B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546767A (en) * 2012-07-16 2014-01-29 航天信息股份有限公司 Content protection method and system of multimedia service
CN105515830A (en) * 2015-11-26 2016-04-20 广州酷狗计算机科技有限公司 User management method and device
CN105872582A (en) * 2016-06-07 2016-08-17 武汉斗鱼网络科技有限公司 Live commenting saving method and device for live video
CN106028151A (en) * 2016-05-25 2016-10-12 武汉斗鱼网络科技有限公司 Live broadcast website user authority control method and device
CN110139152A (en) * 2019-05-20 2019-08-16 北京字节跳动网络技术有限公司 Prohibit speech method, apparatus, electronic equipment and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546767A (en) * 2012-07-16 2014-01-29 航天信息股份有限公司 Content protection method and system of multimedia service
CN105515830A (en) * 2015-11-26 2016-04-20 广州酷狗计算机科技有限公司 User management method and device
CN106028151A (en) * 2016-05-25 2016-10-12 武汉斗鱼网络科技有限公司 Live broadcast website user authority control method and device
CN105872582A (en) * 2016-06-07 2016-08-17 武汉斗鱼网络科技有限公司 Live commenting saving method and device for live video
CN110139152A (en) * 2019-05-20 2019-08-16 北京字节跳动网络技术有限公司 Prohibit speech method, apparatus, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN110650196A (en) 2020-01-03

Similar Documents

Publication Publication Date Title
US20150143065A1 (en) Data Processing Method and Apparatus, and Shared Storage Device
CN104794123A (en) Method and device for establishing NoSQL database index for semi-structured data
KR20190020105A (en) Method and device for distributing streaming data
CN106599292B (en) Method and system for storing real-time video data and image data
CN104794228A (en) Search result providing method and device
CN111930768B (en) Incremental data acquisition method, incremental data transmission method, incremental data acquisition device, incremental data transmission device and computer storage medium
CN107040576A (en) Information-pushing method and device, communication system
CN105893607A (en) Page data management method, device and data server
CN109918369B (en) Data storage method and device
CN106570060B (en) Random extraction method and device for data in information flow
CN109614411B (en) Data storage method, device and storage medium
CN112241396B (en) Spark-based method and system for merging small files of Delta
CN102724301B (en) Cloud database system and method and equipment for reading and writing cloud data
CN116756253B (en) Data storage and query methods, devices, equipment and media of relational database
CN111382180B (en) Data clearing method and device for local cache
CN110650196B (en) Business processing system, method, electronic device and storage medium
CN102819570B (en) A kind of data access method, Apparatus and system
CN113411364B (en) Resource acquisition method and device and server
CN114385657A (en) Data storage method, device and storage medium
CN104933066A (en) Data processing method and system
CN109739883B (en) Method and device for improving data query performance and electronic equipment
CN114363002A (en) Method and device for generating network attack relation graph
CN116028572A (en) Communication service data processing method, device and computer storage medium
CN112269837A (en) Data processing method and device
CN111143582A (en) Multimedia resource recommendation method and device for updating associative words in real time through double indexes

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