CN110719330A - Regulation and control method, device and related equipment - Google Patents

Regulation and control method, device and related equipment Download PDF

Info

Publication number
CN110719330A
CN110719330A CN201910961572.9A CN201910961572A CN110719330A CN 110719330 A CN110719330 A CN 110719330A CN 201910961572 A CN201910961572 A CN 201910961572A CN 110719330 A CN110719330 A CN 110719330A
Authority
CN
China
Prior art keywords
regulation
control
request data
requester
strategy
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.)
Pending
Application number
CN201910961572.9A
Other languages
Chinese (zh)
Inventor
吴睿
王希
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Rajax Network Technology Co Ltd
Original Assignee
Rajax Network 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 Rajax Network Technology Co Ltd filed Critical Rajax Network Technology Co Ltd
Priority to CN201910961572.9A priority Critical patent/CN110719330A/en
Publication of CN110719330A publication Critical patent/CN110719330A/en
Pending legal-status Critical Current

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/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention provides a regulation and control method, a regulation and control device and related equipment, wherein the method comprises the following steps: acquiring regulation and control request data of each requester asynchronously transmitted by a regulation and control request server in a message form of a message queue, wherein one regulation and control request data is used as a message in the message queue and is used for indicating at least one regulation and control strategy of one requester, and one regulation and control strategy records one regulation and control object and a corresponding regulation and control target of the requester; and executing the regulation and control request data so as to regulate and control objects of the requester to be matched with corresponding regulation and control targets according to the regulation and control strategy of the requester indicated by the regulation and control request data. According to the embodiment of the invention, the regulation request stage and the regulation processing stage can be decoupled through the message queue, so that the regulation reliability and the regulation efficiency can be improved.

Description

Regulation and control method, device and related equipment
Technical Field
The embodiment of the invention relates to the technical field of data processing, in particular to a regulation and control method, a regulation and control device and related equipment.
Background
With the development of the online internet platform, more and more object providers are introduced into the online internet platform, and the object providers can provide services for users through the online internet platform; for the purposes of service adjustment and the like, an object provider often has a requirement for adjusting and controlling an adjustment and control object of the object provider, at this time, the object provider serves as a requester requesting adjustment and control, and the online internet platform needs to adjust and control the adjustment and control object of the requester based on the adjustment and control requirement, so that the requester provides service or closes service based on the adjusted and control object.
The problems encountered with current regulation are: when the number of requesters with regulation and control requirements increases, there is a bottleneck in the reliability and efficiency of regulating and controlling the regulation and control objects of the requesters.
Disclosure of Invention
In view of this, embodiments of the present invention provide a regulation method, a regulation device, and related apparatuses, so as to improve regulation reliability and regulation efficiency when regulating a regulation object of a requester.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
a method of regulation, comprising:
acquiring regulation request data of each requester asynchronously transmitted by a regulation request server in a message form of a message queue; the system comprises a message queue, a regulation request data and a regulation target, wherein the regulation request data is used as a message in the message queue and is used for indicating at least one regulation strategy of one requester, and one regulation strategy records a regulation object and a corresponding regulation target of the requester;
and executing the regulation and control request data so as to regulate and control objects of the requester to be matched with corresponding regulation and control targets according to the regulation and control strategy of the requester indicated by the regulation and control request data.
Optionally, the executing the regulatory request data to adjust the regulatory object of the requester to match with the corresponding regulatory target according to the regulatory policy of the requester indicated by the regulatory request data includes:
combining the regulation strategies of the same requester in the regulation request data to obtain a regulation strategy group of each requester; wherein, a regulation strategy group comprises a plurality of regulation strategies of a request party;
and executing the regulation strategy group of each requester so as to respectively regulate the multiple regulation objects of each requester to be matched with the corresponding regulation targets.
Optionally, the regulation and control method further comprises:
and acquiring the regulation and control request data with the state of non-execution at fixed time, and executing the regulation and control request data with the state of non-execution.
The embodiment of the invention also provides a regulation and control method, which comprises the following steps:
generating regulation and control request data of each requester; wherein, a regulation and control request data at least indicates a regulation and control strategy of one requester, and a regulation and control strategy records a regulation and control object and a corresponding regulation and control target of the requester;
storing the regulation and control request data of each requester in a message queue;
and transmitting the regulation and control request data in the message queue to a regulation and control processing server in a message form asynchronously so as to regulate and control the processing server to execute the regulation and control request data.
Optionally, the regulation and control method further comprises:
acquiring an execution success notification message of the regulation and control request data;
updating the state of the regulation and control request data from non-execution to successful execution in the database; the message queue is stored in the database.
An embodiment of the present invention further provides a control device, including:
the data acquisition module is used for acquiring the regulation request data of each requester asynchronously transmitted by the regulation request server in the form of the message queue; the system comprises a message queue, a regulation request data and a regulation target, wherein the regulation request data is used as a message in the message queue and is used for indicating at least one regulation strategy of one requester, and one regulation strategy records a regulation object and a corresponding regulation target of the requester;
and the execution module is used for executing the regulation and control request data so as to regulate and control objects of the requester to be matched with corresponding regulation and control targets according to the regulation and control strategies of the requester indicated by the regulation and control request data.
The embodiment of the invention also provides a regulation and control processing server, which comprises at least one memory and at least one processor; the memory stores a program that the processor invokes, the program being operable to:
acquiring regulation request data of each requester asynchronously transmitted by a regulation request server in a message form of a message queue; the system comprises a message queue, a regulation request data and a regulation target, wherein the regulation request data is used as a message in the message queue and is used for indicating at least one regulation strategy of one requester, and one regulation strategy records a regulation object and a corresponding regulation target of the requester;
and executing the regulation and control request data so as to regulate and control objects of the requester to be matched with corresponding regulation and control targets according to the regulation and control strategy of the requester indicated by the regulation and control request data.
An embodiment of the present invention further provides a control device, including:
the data generation module is used for generating regulation and control request data of each requester; wherein, a regulation and control request data at least indicates a regulation and control strategy of one requester, and a regulation and control strategy records a regulation and control object and a corresponding regulation and control target of the requester;
the queue storage module is used for storing the regulation and control request data of each requester into a message queue;
and the asynchronous transmission module is used for asynchronously transmitting the regulation and control request data in the message queue to the regulation and control processing server in a message form so as to regulate and control the processing server to execute the regulation and control request data.
The embodiment of the invention also provides a regulation request server, which comprises at least one memory and at least one processor; the memory stores a program that the processor invokes, the program being operable to:
generating regulation and control request data of each requester; wherein, a regulation and control request data at least indicates a regulation and control strategy of one requester, and a regulation and control strategy records a regulation and control object and a corresponding regulation and control target of the requester;
storing the regulation and control request data of each requester in a message queue;
and transmitting the regulation and control request data in the message queue to a regulation and control processing server in a message form asynchronously so as to regulate and control the processing server to execute the regulation and control request data.
The embodiment of the invention also provides a storage medium, and the storage medium stores a program for executing the regulation and control method.
In the regulation and control method provided by the embodiment of the invention, the regulation and control request data is stored between the regulation and control request server and the regulation and control processing server by using the message queue, and one regulation and control request data is used as a message in the message queue and used for indicating at least one regulation and control strategy of a requester.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a schematic diagram of an exemplary conventional regulatory system;
fig. 2 is a block diagram of a regulation system according to an embodiment of the present invention;
FIG. 3 is a flow chart of a regulation method according to an embodiment of the present invention;
FIG. 4 is an exemplary diagram of a regulation strategy;
FIG. 5 is an exemplary diagram of throttling request data;
FIG. 6 is a flow chart of executing regulatory request data;
FIG. 7 is an exemplary diagram of a combined regulation strategy;
FIG. 8 is another flow chart of a regulation method according to an embodiment of the present invention;
FIG. 9 is a flowchart of a method for regulating according to an embodiment of the present invention;
FIG. 10 is a diagram illustrating an exemplary application of an embodiment of the present invention;
FIG. 11 is a block diagram of a conditioning device provided in an embodiment of the present invention;
FIG. 12 is another block diagram of a control device according to an embodiment of the present invention;
FIG. 13 is a further block diagram of a conditioning device according to an embodiment of the present invention;
FIG. 14 is another block diagram of a control device provided in accordance with an embodiment of the present invention;
FIG. 15 is a hardware block diagram of a regulation processing server;
FIG. 16 is yet another block diagram of a conditioning device provided in accordance with an embodiment of the present invention;
FIG. 17 is yet another block diagram of a conditioning device provided in accordance with an embodiment of the present invention;
fig. 18 is another block diagram of a control device according to an embodiment of the present invention.
Detailed Description
The regulation is mainly divided into two stages: a regulation request phase is mainly executed by a regulation request server 10, a regulation processing phase is mainly executed by a regulation processing server 20, and the regulation request server 10 and the regulation processing server 20 communicate through an interface; specifically, in the regulation request phase, the regulation request server 10 requests to regulate the regulation object of the requester, the regulation request server 10 may generate the regulation policy of the requester for the regulation object of the requester, and transmit the regulation policy of the requester to the regulation processing server 20 through the interface one by one, and in the regulation request processing phase, the regulation processing server 20 sequentially executes the regulation policy of the requester transmitted through the interface one by one, thereby realizing the regulation of the regulation object of the requester.
The regulation and control strategy of the transfer requester between the regulation and control request server 10 and the regulation and control processing server 20 via the interface may have the following problems: when the regulation and control request amount per unit time (i.e. the number of requesters to be regulated and controlled per unit time) is large, the time consumption of the interface is increased, the interface is overtime, and even the whole regulation and control service is dragged down, so that unpredictable loss is caused, and the reliability of the regulation and control mode is low; meanwhile, the regulation and control strategy of the requester is to process one by one according to the transmission of the interfaces, the regulation and control processing is slow, and the regulation and control efficiency is low.
Based on this, the embodiment of the invention considers that the regulation and control request and the regulation and control processing stage are decoupled through the message queue so as to improve the regulation and control reliability and the regulation and control efficiency. 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.
Fig. 2 is a block diagram of a regulation and control system provided in the embodiment of the present invention, including: a regulation request server 10, a regulation processing server 20 and a database 30;
the regulation request server 10 is a generator of the regulation request, and when the regulation object of the requester needs to be regulated, the regulation request server 10 may generate regulation request data respectively for each regulation policy of each requester, and store the regulation request data into the message queue of the database 30, and the regulation request data in the database 30 may be asynchronously transferred to the regulation processing server 20 in the message form of the message queue;
the regulation and control processing server 20 is a processing party of the regulation and control request, and acquires and executes the regulation and control request data by monitoring the message of the message queue, thereby realizing the regulation and control of the regulation and control object of the requesting party.
It should be noted that the regulation request server 10 and the regulation processing server 20 belong to upstream and downstream services of the regulation system, and each may be implemented by a single server or a server group consisting of a plurality of servers.
As an alternative implementation, based on the regulation and control system shown in fig. 2, fig. 3 shows an alternative flow of the regulation and control method provided in the embodiment of the present invention, and as shown in fig. 3, the flow may include:
step S10, the regulation request server generates regulation request data of each request party; wherein, a regulation and control request data at least indicates a regulation and control strategy of a requesting party, and a regulation and control strategy records a regulation and control object and a corresponding regulation and control target.
In the embodiment of the invention, aiming at a plurality of regulation and control objects, the regulation and control strategies of each regulation and control object can be respectively generated, wherein one regulation and control strategy records one regulation and control object and the regulation and control target corresponding to the regulation and control object; for example, as shown in fig. 4, an example composition of a regulation strategy may be at least: a regulation object and a regulation target; the control target may be regarded as an information result after the control of the control object, and optionally, the control target may be represented in a numerical form, for example, the control target is a control value.
Optionally, the requester may be an object provider of an online internet platform, and the object provider may provide a plurality of objects for the user through the internet platform, for example, in a scenario of online takeout, e-commerce, and the like, the requester may be a merchant, and the merchant may provide a plurality of goods (the goods are an optional form of the objects) for the user.
Taking two regulation and control objects and a scene as an online takeout scene as an example, an example of the regulation and control strategy may be described as follows, assuming that the two regulation and control objects are respectively an order taking distance and a distribution fee, a regulation and control strategy may be generated for the order taking distance, and a regulation and control target of the order taking distance is recorded by the generated regulation and control strategy, and a form of the regulation and control strategy is, for example, "the order taking distance, the regulation and control target", and further, taking the regulation and control target of the order taking distance as 1000 meters (that is, a regulation and control value of the order taking distance is 1000 meters), a further form of the regulation and control strategy is, for example, "the order taking distance, the: 1000 "; meanwhile, a regulation and control strategy is generated according to the distribution fee, and a regulation and control target of the distribution fee is recorded by the generated regulation and control strategy, wherein the regulation and control strategy is in a form of 'distribution fee, regulation and control target'.
It is understood that the control strategy mainly includes control objects and control targets, and based on different control objects and/or different control targets, the generated control strategies may be considered to be different, for example, the generated control strategies are different for different control objects, the control targets are different for the same control object, and the generated control strategies are different, of course, the generated control strategies are different for different control objects and different control targets.
When the regulation and control request server requests to regulate and control the regulation and control object of the requesting party, the regulation and control request server can select the regulation and control strategy used by each requesting party, and at least one regulation and control strategy of one requesting party is combined into one regulation and control request data, so that the regulation and control request data of each requesting party is generated. In optional implementation, the regulation request server may generate regulation policies corresponding to the regulation objects, so as to select a regulation policy used by each requester from the generated regulation policies, and at least one regulation policy of one requester is composed into one regulation request data;
optionally, in an optional specific implementation of the regulation and control request server in generating the regulation and control strategy corresponding to each regulation and control object, the regulation and control request server may define at least one corresponding regulation and control target for each regulation and control object, and each regulation and control object and one corresponding regulation and control target constitute one regulation and control strategy corresponding to one regulation and control object; therefore, in the optional specific implementation of selecting the regulation and control strategy used by each requester from the generated regulation and control strategies, the regulation and control request server can select the regulation and control strategy matched with the corresponding subscription information for each requester from the generated regulation and control strategies according to the subscription information corresponding to each requester; it can be understood that the regulatory targets required by the requester for each regulatory object may be carried in the subscription information, and the subscription information may be considered as the subscription information when the requester resides on the online internet platform.
It should be noted that the control policies selected for different requesters may be the same or different, for example, when regulating the delivery time of different requesters, the control policies of different requesters may be the same or different (for example, in the control policies of different requesters, the control targets corresponding to the delivery costs may be the same or different), but it should be noted that the control request data indicates the control policies and also indicates the requesters, and therefore, the control request data of different requesters may be considered to be different no matter whether the control policies selected by different requesters are the same or not;
in an optional implementation, the requesters can be distinguished by requester identifications (such as requester IDs), and in the embodiment of the present invention, a requester ID and a regulation policy can be combined into a regulation request data, so as to generate regulation request data of each requester; for example, as shown in FIG. 5, an example composition of the throttling request data may be at least: requester ID and regulation strategy; optionally, further, taking the description of the regulation request data as "regulating the order-receiving distance of the requester ID551538545 to 1000 meters", examples of the regulation request data include: "requester ID: 551538545, regulatory strategy: (grafting distance, control value: 1000) ".
And step S11, the regulation request server stores the regulation request data of each requester in the message queue of the database.
For example, referring to fig. 3, after the regulation request data of each requester is generated, one regulation request data may be used as one message in a message queue, and the regulation request data of each requester may be organized in a queue form in the message queue in the database by using one regulation request data as one message, so that the regulation request data of each requester may be stored in the message queue of the database.
Optionally, the message queue used in the embodiment of the present invention may be implemented based on an AMQP (Advanced message queuing Protocol), and supports distributed cluster deployment, queue mirroring, Web panel management, automatic service registration, no size limitation of a message body, strong stacking capability, and the like; of course, the message queue implemented based on AMQP is only an optional form of the message queue in the embodiment of the present invention, and the embodiment of the present invention is not limited to the form of the message queue used.
And step S12, the regulation request server asynchronously transmits the regulation request data in the message queue to the regulation processing server in a message form.
Correspondingly, the regulation and control processing server can acquire the regulation and control request data of each requester, which is asynchronously transmitted in the form of messages of the message queue. It should be noted that the asynchronous transfer described in the embodiment of the present invention means that after the regulation request server transfers a regulation request data to the regulation processing server, a regulation accepted message can be automatically generated without waiting for the regulation processing server to return the regulation accepted message, so that the next regulation request data can be transferred at any time.
And step S13, the regulation and control processing server executes the regulation and control request data so as to regulate and control objects of the requester to be matched with corresponding regulation and control targets according to the regulation and control strategies of the requester indicated by the regulation and control request data.
After the regulation and control processing server acquires the asynchronously transmitted regulation and control request data, the regulation and control request data can be executed, so that the regulation and control object of the requester is adjusted to be matched with the corresponding regulation and control target through the regulation and control strategy of the requester indicated by the regulation and control request data, and the regulation and control object of the requester is regulated and controlled. For example, a regulation request data of the requester is "requester ID: 551538545, regulatory strategy: (order-receiving distance, regulation value: 1000) "for example, the regulation and control processing server may execute the regulation and control request data, so as to adjust the order-receiving distance of the requester of ID551538545 to 1000 meters according to the regulation and control policy indicated by the regulation and control request data.
According to the regulation and control method provided by the embodiment of the invention, the regulation and control request data of each requester can be generated by the regulation and control request server, and one regulation and control request data at least indicates one regulation and control strategy of one requester, so that the regulation and control request server can store the regulation and control request data of each requester into the message queue, and further asynchronously transmit the regulation and control request data in the message queue to the regulation and control processing server in a message form; and the regulation and control processing server can execute the regulation and control request data after acquiring the regulation and control request data, so that the regulation and control object of the requester is regulated to be matched with the corresponding regulation and control target according to the regulation and control strategy of the requester indicated by the regulation and control request data, and the regulation and control object of the requester is regulated and controlled.
Therefore, in the regulation and control method provided by the embodiment of the present invention, the regulation and control request server and the regulation and control processing server do not transmit the regulation and control policy through the interface any more, but the regulation and control request server generates the regulation and control request data for each regulation and control policy of each requester, stores the regulation and control request data in the message queue, and asynchronously transmits the regulation and control request data to the regulation and control processing server in the message form of the message queue.
Optionally, after the regulation and control processing server obtains the asynchronously transferred regulation and control request data, because one regulation and control request data indicates one regulation and control policy of one requester, and one requester may have multiple regulation and control policies, one requester may have multiple regulation and control request data, based on which, the regulation and control processing server may group the obtained regulation and control request data according to the requester dimensions, thereby combining the regulation and control policies of the same requester in the obtained regulation and control request data to obtain the regulation and control policy groups of each requester, and then the regulation and control processing server may execute the regulation and control policies in the regulation and control policy groups of each requester, so as to regulate and control the regulation and control object of the requester.
As an alternative implementation, an alternative implementation of step S13 in the method of fig. 3 can be as shown in fig. 6, including:
step S20, the regulation and control processing server combines the regulation and control strategies of the same request party in the acquired regulation and control request data to obtain a regulation and control strategy group of each request party; wherein, a regulation strategy group comprises a plurality of regulation strategies of a requesting party.
After the regulation and control processing server obtains the regulation and control request data which is asynchronously transmitted in a message form, the regulation and control policies of the same requester in the obtained regulation and control request data can be combined, so that the regulation and control policy groups of each requester are obtained, and the regulation and control policy group of one requester can comprise a plurality of regulation and control policies of the requester.
For example, as shown in fig. 7, taking the regulation request data including the requester ID and the regulation policy as an example, the embodiment of the present invention may combine the regulation policies of the same requester ID in the regulation request data, and as shown in fig. 7, if the requester IDs of the regulation request data 1 and 3 are both the requester ID1, the regulation policies 11 and 31 in the regulation request data 1 and 3 may be combined to obtain the regulation policy group of the requester ID1, and the requester IDs of the regulation request data 2 and 4 are both the requester ID2, the regulation request data 21 and 41 may be combined to obtain the regulation policy group of the requester ID 2;
in a further example, if the regulatory request data 1 is: "requester ID: 551538545, regulatory strategy: (pickup distance, regulation value: 1000) ", and the regulation request data 2 is: "requester ID: 551538547, regulatory strategy: (delivery fee, regulation value: 2) ", and the regulation request data 3 is: "requester ID: 551538545, regulatory strategy: (delivery fee, regulation value: 2) ", and the regulation request data 4 is: "requester ID: 551538547, regulatory strategy: (pickup distance, regulation value: 1500) ", the regulation strategy group of the requester ID551538545 is, after the combination of the regulation strategies of the same requester: "requester ID: 551538545, regulatory strategy: { (pickup distance, regulation value: 1000), (delivery fee, regulation value: 2) } ", the regulation policy group for requester ID551538547 is: "requester ID: 551538547, regulatory strategy: { (pickup distance, control value: 1500), (delivery fee, control value: 2) } ".
The regulation and control strategy groups of all the requesters are obtained, and the regulation and control treatment can be carried out subsequently by taking the regulation and control strategy groups of the requesters as units, so that the regulation and control speed is improved, the regulation and control strategies of the same requesters are ensured to be omitted, and the regulation and control can be realized.
Step S21, the regulation and control processing server executes the regulation and control policy group of each request party to adjust the multiple regulation and control objects of the request party to match with the corresponding regulation and control targets, respectively.
Aiming at the combined regulation and control strategy group of each requester, the regulation and control processing server can regulate and control the regulation and control object of the requester according to a plurality of regulation and control strategies of the requester indicated by the regulation and control strategy group of each requester; for example, a regulation policy group of a requester is "requester ID: 551538545, regulatory strategy: { (the pick-up distance, the regulation value: 1000), (the delivery fee, the regulation value: 2) } "is taken as an example, the regulation and control processing server may regulate and control the pick-up distance and the delivery fee for the requester of the requester ID551538545 according to each regulation and control policy indicated by the regulation and control policy group of the requester, so as to adjust the pick-up distance of the requester of the ID551538545 to 1000 meters and the delivery fee to 2 yuan.
Optionally, further, after the regulation and control processing server executes any regulation and control request data, the regulation and control processing server may feed back an execution success notification message of the regulation and control request data to the regulation and control request server; in an alternative implementation, the regulation and control request server may send the execution success notification message in a message form of a message queue, and one execution success notification message may correspond to one message in the message queue.
Because the regulation request data generated by the regulation request server indicates a regulation strategy of a requesting party, in order to avoid the phenomena that the regulation request data in the message queue have conflict or the regulation request data in the message queue does not contain the regulation strategy and the like, the embodiment of the invention can further provide a mechanism for filtering the generated regulation request data by the regulation request server, so as to store the filtered regulation request data into the message queue; in an alternative implementation, fig. 8 shows another alternative flow of the regulation and control method provided in the embodiment of the present invention, and as shown in fig. 8, the flow may include:
step S30, the regulation request server generates regulation request data of each request party; wherein, a regulation and control request data at least indicates a regulation and control strategy of a requesting party, and a regulation and control strategy records a regulation and control object and a corresponding regulation and control target.
And step S31, the regulation request server filters the regulation request data of each requester according to a preset second filtering rule.
For the generated regulation and control request data of each requester, the regulation and control request server may filter the generated regulation and control request data of each requester according to a preset second filtering rule, so that the regulation and control request data of each requester retained after filtering may be stored in a message queue.
Optionally, the content of the second filtering rule may be set according to actual conditions, and in one example, the second filtering rule is at least one of the following:
filtering regulatory request data that does not indicate a regulatory policy and/or that does not indicate a requestor; such as filtering regulatory request data that does not contain a regulatory policy and/or a requestor ID;
when the regulation and control of the requester to close service is determined according to the regulation and control strategy of the regulation and control request data of the requester, filtering the regulation and control request data of the requester; for example, taking an online take-out scene as an example, the requesting party may be a merchant, the regulation and control object may be operation information of the merchant, and when the regulation and control request data indicates that the regulation and control policy of the merchant is to close the shop, other regulation and control request data of the merchant may be filtered, that is, when the shop on-off state of the merchant is to close the shop, other operation information of the merchant does not need to be regulated and controlled;
filtering different regulation and control request data of the same regulation and control object aiming at the same requester; that is, for the same requester, the same regulation object of the requester is not allowed to be repeatedly regulated.
Obviously, the content of the filtering rule is only an optional example illustration, and the embodiment of the present invention may also support filtering rules in other content forms, and is not limited to the above description.
And step S32, the regulation request server stores the filtered regulation request data of each requester in a message queue of the database.
And step S33, the regulation request server asynchronously transmits the regulation request data in the message queue to the regulation processing server in a message form.
Step S34, the regulation and control processing server filters the acquired regulation and control request data of each requester according to a preset first filtering rule.
After the regulation and control processing server acquires the asynchronously-transmitted regulation and control request data, the acquired regulation and control request data can be filtered based on a first filtering rule. Optionally, the first filtering rule may be completely or partially identical to the second filtering rule; in one example, the first filtering rule primarily filters regulatory request data that does not indicate a regulatory policy and/or that does not indicate a requestor, such as filtering regulatory request data that does not contain a regulatory policy and/or a requestor ID.
And step S35, the regulation and control processing server executes the filtered regulation and control request data of each requester.
Optionally, for the regulatory request data of each requester filtered by the regulatory processing server, an optional implementation of step S35 may be as shown in fig. 6, and certainly, fig. 6 is only an optional implementation, and the embodiment of the present invention may also support other implementation manners, for example, the regulatory request data is used as an execution unit to execute the regulatory request data in parallel.
In a further implementation, since the message in the message queue may be lost, in order to avoid the situation that the message is lost and there is unexecuted regulation and control request data, the regulation and control processing server may further obtain the unexecuted regulation and control request data from the database at regular time to perform execution processing; optionally, fig. 9 shows another optional flow of the regulation and control method provided in the embodiment of the present invention, and as shown in fig. 9, the flow may include:
step S40, the regulation processing server periodically obtains the unexecuted regulation request data from the database.
Based on the condition that the regulation and control processing server feeds back an execution success notification message of the regulation and control request data to the regulation and control request server after executing any regulation and control request data, the regulation and control request server can update the state of the regulation and control request data in the database based on the received execution success notification message of the regulation and control request data, namely after receiving the execution success notification message of the regulation and control request data, the regulation and control request server can update the state of the regulation and control request data in the database from non-execution to execution success; therefore, the state of the regulation and control request data in the database can indicate whether the regulation and control request data are executed or not, and the regulation and control processing server can obtain the regulation and control request data from the database at regular time, wherein the state of the regulation and control request data is the unexecuted regulation and control request data.
Optionally, the number of the unexecuted regulation request data acquired by the regulation and control processing server at one time may be set according to an actual situation, and the number may be a fixed value or may be dynamically adjusted according to the processing capability of the regulation and control processing server.
Optionally, the regulation and control request server may carry a regulation and control identifier (e.g., a regulation and control ID) corresponding to this regulation and control when requesting regulation and control, and since there is a regional regulation and control possibility, in one regulation and control, one regulation and control identifier may correspond to multiple requester identifiers, that is, the regulation and control objects of multiple requesters are regulated and controlled at one time; based on this, the regulation and control processing server can obtain the regulation and control request data corresponding to the regulation and control identification in the state of non-execution from the database according to the regulation and control identification corresponding to the current regulation and control.
And step S41, the regulation and control processing server executes the acquired regulation and control request data.
Alternatively, the implementation principle of step S41 is similar to that shown in fig. 6, and reference may be made accordingly.
It can be seen that, in further implementation of the embodiment of the present invention, on one hand, the regulation and control processing server may execute the regulation and control request data in real time based on the regulation and control request data asynchronously transmitted in a message form, and on the other hand, to avoid message loss, the regulation and control processing server may also obtain the unexecuted regulation and control request data at regular time, thereby executing the unexecuted regulation and control request data at regular time, and thus ensuring the comprehensiveness of regulation and control of the regulation and control object of the requester.
By applying the regulation and control method provided by the embodiment of the invention, the operation information of the commercial tenant staying in the online take-out platform can be regulated and controlled, and especially under extreme conditions of influencing the distribution efficiency such as severe weather, the operation information of the commercial tenant is regulated and controlled to reduce the distribution pressure; it can be understood that in an outsourcing scene, the distribution personnel is required to send the sold commodities of the merchants to the users, however, under extreme conditions that the distribution efficiency is affected by severe weather and the like, the distribution pressure is high, so that when extreme conditions such as severe weather occur, the operation information of the merchants living in the online outsourcing platform needs to be regulated and controlled to reduce the distribution pressure;
optionally, the operation information of the merchant that can be regulated and controlled in the embodiment of the present invention includes:
remote distribution fee, shunting, closing shops, distribution range, basic distribution fee, dynamic aging, order receiving distance, offline full reduction activity, offline platform subsidy, offline distribution fee preferential activity, odd number ordering by time period limitation and the like;
the distribution range is a plurality of distribution ranges generated when a merchant signs a contract with the online takeout platform and is used for recording the distribution ranges under different distribution capacity conditions, the specific distribution range can be determined by the operation of the online takeout platform based on the capacity of distribution personnel, for example, the distribution timeliness of the distribution personnel is low and the order quantity is increased under severe weather, the capacity is in tension, the operation can regulate and control the distribution range of the merchant according to the capacity tension degree, and the regulation and control mode can be realized by using the method provided by the embodiment of the invention; in one example, the distribution range may be subdivided according to the distribution capacity condition: an idle delivery range, a normal delivery range, a light emergency delivery range, a medium emergency delivery range, a heavy emergency delivery range, an ultra-emergency delivery range;
the dynamic aging is a time constraint generated when each order is placed, for example, the promised delivery time of the order, and the dynamic aging can be used as an aging promised for the user on one hand and can be used as an aging assessment for the rider on the other hand.
In an application example, as shown in fig. 10, the regulation and control method provided in the embodiment of the present invention may include:
generating regulation and control request data of each merchant; as shown in fig. 10, taking the operation information of regulating the distribution range, the basic distribution fee, and the order taking distance of the merchants 1 and 2 as an example, the embodiment of the present invention may generate regulation request data of the distribution range of the merchant 1 (including the merchant ID1 of the merchant 1 and the regulation target of the distribution range), regulation request data of the basic distribution fee (including the merchant ID1 of the merchant 1 and the regulation target of the basic distribution fee), regulation request data of the order taking distance (including the merchant ID1 of the merchant 1 and the regulation target of the order taking distance), regulation request data of the distribution range of the merchant 2, regulation request data of the basic distribution fee, regulation request data of the order taking distance, and the like, respectively;
filtering regulation and control request data of each merchant; as shown in fig. 10, the regulation request data 12 and the regulation request data 14, which are repeated for regulation of the basic distribution fee, in the regulation request data of the merchant 1 may be filtered; the regulation and control request data 21 of the distribution range of the merchant 2 does not have a regulation and control strategy, and can be filtered;
storing the filtered regulation and control request data of the merchant into a message queue of a database; as shown in fig. 10, the filtered regulation and control request data 11 of the distribution range of the merchant 1, the regulation and control request data 13 of the pickup distance, the regulation and control request data 22 of the basic distribution fee of the merchant 2, and the regulation and control request data 23 of the pickup distance may be stored in the message queue of the database as messages in the message queue;
asynchronously transmitting the regulation request data in the message queue in a message form;
the above process may be performed by a regulation request server, and the following process may be performed by a regulation processing server:
combining the regulation strategies of the same merchant in the regulation request data to obtain a regulation strategy group of each merchant; as shown in fig. 10, the regulation and control policies in the regulation and control request data 11 of the distribution range of the merchant 1 and the regulation and control policy in the regulation and control request data 13 of the order taking distance may be combined, so as to obtain a regulation and control policy group of the merchant 1 (including the merchant ID1 of the merchant 1, the regulation and control policy corresponding to the distribution range, and the regulation and control policy corresponding to the order taking distance), and the regulation and control request data 22 of the basic distribution fee of the merchant 2 and the regulation and control policy in the regulation and control request data 23 of the order taking distance may be combined, so as to obtain a regulation and control policy group of the merchant 2;
executing the regulation and control strategies in the regulation and control strategy group of each merchant; the embodiment of the invention can execute the regulation and control strategy in the regulation and control strategy group of the merchant 1, thereby regulating and controlling the distribution range of the merchant 1 based on the regulation and control target of the distribution range of the merchant 1 and regulating and controlling the order taking distance of the merchant 1 based on the regulation and control target of the order taking distance of the merchant 1; and, the regulation and control strategy in the regulation and control strategy group of the merchant 2 is executed, so that the distribution range of the merchant 2 is regulated and controlled based on the regulation and control target of the distribution range of the merchant 2, and the order taking distance of the merchant 2 is regulated and controlled based on the regulation and control target of the order taking distance of the merchant 2.
Optionally, the regulation and control processing server may further obtain the unexecuted regulation and control request data from the database at regular time and execute the regulation and control request data, so as to avoid a situation that the regulation and control request data is missed due to loss of the message transmitted by the message queue.
The regulation and control method provided by the embodiment of the invention can asynchronously transmit the regulation and control request data between the regulation and control request server and the regulation and control processing server through the message of the message queue, so that the regulation and control request stage and the regulation and control processing stage are decoupled through the message queue, the problem caused by transmitting the regulation and control strategy between the regulation and control request server and the regulation and control processing server through an interface is solved, and the regulation and control reliability and the regulation and control efficiency can be improved. Furthermore, the comprehensiveness of regulation and control processing can be further ensured by acquiring unexecuted regulation and control request data at regular time for execution.
While various embodiments of the present invention have been described above, various alternatives described in the various embodiments can be combined and cross-referenced without conflict to extend the variety of possible embodiments that can be considered disclosed and disclosed in connection with the embodiments of the present invention.
The following describes the control device provided in the embodiment of the present invention in terms of controlling a processing server, and the control device described below may be considered as a functional module that is required to implement a control method for controlling a processing server. The contents of the regulation device described below may be referred to in correspondence with the contents of the regulation method described above.
In an alternative implementation, fig. 11 shows an alternative block diagram of a regulation and control device provided in an embodiment of the present invention, and referring to fig. 11, the regulation and control device may include:
a data obtaining module 100, configured to obtain regulation request data of each requester asynchronously transmitted by a regulation request server in a message form of a message queue; the system comprises a message queue, a regulation request data and a regulation target, wherein the regulation request data is used as a message in the message queue and is used for indicating at least one regulation strategy of one requester, and one regulation strategy records a regulation object and a corresponding regulation target of the requester;
an executing module 110, configured to execute the regulation request data, so as to adjust the regulation object of the requester to match a corresponding regulation target according to the regulation policy of the requester indicated by the regulation request data.
Optionally, the executing module 110 is configured to execute the regulatory request data, so as to adjust the regulatory object of the requester to match the corresponding regulatory target according to the regulatory policy of the requester indicated by the regulatory request data, and may specifically include:
combining the regulation strategies of the same requester in the regulation request data to obtain a regulation strategy group of each requester; wherein, a regulation strategy group comprises a plurality of regulation strategies of a request party;
and executing the regulation strategy group of each requester so as to respectively regulate and control a plurality of regulation and control objects of the requester to be matched with corresponding regulation and control targets.
Optionally, the regulation and control request data includes a requester identifier and a regulation and control policy; the executing module 110 is configured to combine the regulation policies of the same requester in the regulation request data to obtain a regulation policy group of each requester, and may specifically include:
determining regulation and control request data of the same requester identification;
and combining the regulation and control strategies in the regulation and control request data with the same requester identifier, and combining the regulation and control strategies with the requester identifier to obtain a regulation and control strategy group of each requester.
Optionally, fig. 12 shows another block diagram of the regulating device provided in the embodiment of the present invention, and in combination with fig. 11 and 12, the regulating device may further include:
the notifying module 120 is configured to, after any regulation request data is executed, feed back an execution success notification message of the regulation request data to the regulation request server, so that the regulation request server updates the state of the regulation request data from unexecuted to successfully executed.
Optionally, the notifying module 120 is configured to, after any regulation and control request data is executed, feed back an execution success notification message of the regulation and control request data to the regulation and control request server, and may specifically include:
and after any regulation and control request data is executed, sending an execution success notification message of the regulation and control request data to the regulation and control request server in a message form of a message queue.
Optionally, fig. 13 shows another block diagram of the regulating device provided in the embodiment of the present invention, and in combination with fig. 12 and 13, the regulating device may further include:
the timing execution module 130 is configured to obtain the regulation request data whose state is unexecuted at a timing, and execute the regulation request data whose state is unexecuted.
Optionally, the timing execution module 130 is configured to obtain the regulation and control request data whose state is unexecuted at a timing, and may specifically include:
determining a regulation and control identifier of the current regulation and control;
acquiring the regulation and control request data which corresponds to the regulation and control identification and is in an unexecuted state from a database at regular time according to the regulation and control identification; the database stores the message queue, one regulation and control identification corresponds to a plurality of requester identifications, and one requester identification indicates one requester.
Optionally, fig. 14 shows another block diagram of the regulating device provided in the embodiment of the present invention, and referring to fig. 11 and 14, the regulating device may further include:
a first filtering module 140, configured to filter, before the execution module 110 executes the regulation request data, the acquired regulation request data of each requester according to a preset first filtering rule; the first filtering rule includes at least: the regulation request data that is not indicative of a regulation policy and/or is not indicative of a requestor is filtered.
The embodiment of the invention also provides a regulation and control processing server, and the regulation and control processing server can be provided with the regulation and control device in a program form so as to execute the regulation and control method for regulating and controlling the angle of the processing server provided by the embodiment of the invention. Alternatively, an optional hardware structure of the regulation and control processing server may be as shown in fig. 15, and includes: at least one processor 01, at least one communication interface 02, at least one memory 03 and at least one communication bus 04;
alternatively, processor 01 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the invention.
The memory 03 may comprise a high-speed RAM memory, and may further include a non-volatile memory (non-volatile memory), such as at least one disk memory.
The memory 03 stores a program, and the processor 01 calls the program stored in the memory 03 to execute the method for adjusting and controlling the angle of the processing server according to the embodiment of the present invention.
The embodiment of the invention also provides a storage medium, and the storage medium can store a program for executing the method for regulating and controlling the angle of the processing server provided by the embodiment of the invention.
Optionally, the program may be specifically configured to:
acquiring regulation request data of each requester asynchronously transmitted by a regulation request server in a message form of a message queue; the system comprises a message queue, a regulation request data and a regulation target, wherein the regulation request data is used as a message in the message queue and is used for indicating at least one regulation strategy of one requester, and one regulation strategy records a regulation object and a corresponding regulation target of the requester;
and executing the regulation and control request data so as to regulate and control objects of the requester to be matched with corresponding regulation and control targets according to the regulation and control strategy of the requester indicated by the regulation and control request data.
The refinement function and the extension function of the program can be described with reference to the corresponding parts previously described.
The following describes the control device provided in the embodiment of the present invention in terms of controlling a request server, and the control device described below may be considered as a functional module that is required to implement a method for controlling a request server. The contents of the regulation device described below may be referred to in correspondence with the contents of the regulation method described above.
In an alternative implementation, fig. 16 shows yet another alternative block diagram of the regulation device provided by the embodiment of the present invention, and referring to fig. 16, the regulation device may include:
the data generation module 200 is configured to generate regulation request data of each requester; wherein, a regulation and control request data at least indicates a regulation and control strategy of one requester, and a regulation and control strategy records a regulation and control object and a corresponding regulation and control target of the requester;
a queue storage module 210, configured to store the regulation request data of each requester in a message queue;
and the asynchronous transfer module 220 is configured to asynchronously transfer the regulation and control request data in the message queue to the regulation and control processing server in a message form, so that the regulation and control processing server executes the regulation and control request data.
Optionally, the data generating module 200 is configured to generate regulation request data of each requester, and may specifically include:
generating a regulation strategy corresponding to each regulation object;
and selecting the regulation and control strategies used by each requester from the generated regulation and control strategies, and at least one regulation and control strategy of one requester is combined into one regulation and control request data.
Optionally, the data generating module 200 is configured to generate a regulation policy corresponding to each of the regulation objects, and may specifically include:
and respectively defining at least one corresponding regulation and control target for each regulation and control object, wherein one regulation and control object and one corresponding regulation and control target form a regulation and control strategy corresponding to the regulation and control object.
Optionally, the data generating module 200 is configured to select, from the generated regulation policies, a regulation policy used by each of the requesters, and may specifically include:
and selecting a regulation and control strategy matched with the corresponding subscription information for each requesting party from the generated regulation and control strategies according to the subscription information corresponding to each requesting party.
Optionally, the queue storage module 210 is configured to store the regulation and control request data of each requester in a message queue, and may specifically include:
a piece of regulation request data is used as a message, and the message is organized in a message queue in a database in a queue mode.
Optionally, fig. 17 shows another block diagram of a regulation and control device provided in an embodiment of the present invention, and as shown in fig. 16 and 17, the regulation and control device may further include:
a status updating module 230, configured to obtain a notification message that execution of the regulation request data is successful; updating the state of the regulation and control request data from non-execution to successful execution in the database; the message queue is stored in the database.
Optionally, fig. 18 shows another block diagram of the regulating device provided in the embodiment of the present invention, and in combination with fig. 16 and 18, the regulating device may further include:
a second filtering module 240, configured to filter, according to a preset second filtering rule, the regulation and control request data of each requester; the second filtering rule includes at least one of:
filtering regulatory request data that does not indicate a regulatory policy and/or that does not indicate a requestor;
when the regulation and control of the requester to close service is determined according to the regulation and control strategy of the regulation and control request data of the requester, filtering the regulation and control request data of the requester;
and filtering different regulation and control request data aiming at the same regulation and control object of the same requester.
The embodiment of the invention also provides a regulation request server, and the regulation request server can be provided with the regulation device in a program form so as to execute the regulation method for regulating the angle of the regulation request server provided by the embodiment of the invention. Optionally, as shown in fig. 15, the hardware structure of the regulation request server may include: at least one processor and at least one memory;
the processor calls the program stored in the memory to execute the method for regulating and controlling the angle of the request server provided by the embodiment of the invention.
The embodiment of the invention also provides a storage medium, and the storage medium can store a program for executing the method for regulating and controlling the angle of the request server provided by the embodiment of the invention.
Optionally, the program may be specifically configured to:
generating regulation and control request data of each requester; wherein, a regulation and control request data at least indicates a regulation and control strategy of one requester, and a regulation and control strategy records a regulation and control object and a corresponding regulation and control target of the requester;
storing the regulation and control request data of each requester in a message queue;
and transmitting the regulation and control request data in the message queue to a regulation and control processing server in a message form asynchronously so as to regulate and control the processing server to execute the regulation and control request data.
Alternatively, the extended function and the detailed function of the program may refer to the descriptions of the respective sections.
Although the embodiments of the present invention have been disclosed, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.
In summary, in a first aspect, an embodiment of the present invention provides a regulation method, including:
acquiring regulation request data of each requester asynchronously transmitted by a regulation request server in a message form of a message queue; the system comprises a message queue, a regulation request data and a regulation target, wherein the regulation request data is used as a message in the message queue and is used for indicating at least one regulation strategy of one requester, and one regulation strategy records a regulation object and a corresponding regulation target of the requester;
and executing the regulation and control request data so as to regulate and control objects of the requester to be matched with corresponding regulation and control targets according to the regulation and control strategy of the requester indicated by the regulation and control request data.
In a second aspect, according to the regulation method of the first aspect, the executing the regulation request data to adjust the regulation object of the requester to match with the corresponding regulation target according to the regulation policy of the requester indicated by the regulation request data includes:
combining the regulation strategies of the same requester in the regulation request data to obtain a regulation strategy group corresponding to each requester; wherein, a regulation strategy group comprises a plurality of regulation strategies of a request party;
and executing the regulation strategy group of each requester so as to respectively regulate the multiple regulation objects of each requester to be matched with the corresponding regulation targets.
In a third aspect, according to the regulation and control method of the second aspect, the regulation and control request data includes a requester identifier and a regulation and control policy; the combining the regulation strategies of the same requester in the regulation request data to obtain the regulation strategy group of each requester comprises:
determining regulation and control request data of the same requester identification;
and combining the regulation and control strategies in the regulation and control request data with the same requester identifier, and combining the regulation and control strategies with the requester identifier to obtain a regulation and control strategy group of each requester.
In a fourth aspect, the method of modulating according to any one of the first to third aspects, the method further comprising:
after any regulation and control request data is executed, feeding back an execution success notification message of the regulation and control request data to the regulation and control request server so that the regulation and control request server updates the state of the regulation and control request data from non-execution to successful execution.
In a fifth aspect, according to the regulation and control method of the fourth aspect, the feeding back, to the regulation and control request server, an execution success notification message of any regulation and control request data after the regulation and control request data is executed includes:
and after any regulation and control request data is executed, sending an execution success notification message of the regulation and control request data to the regulation and control request server in a message form of a message queue.
In a sixth aspect, the method of regulating according to the fourth aspect, the method further comprising:
and acquiring the regulation and control request data with the state of non-execution at fixed time, and executing the regulation and control request data with the state of non-execution.
A seventh aspect provides the control method according to the sixth aspect, wherein the timing acquisition of the control request data whose status is unexecuted includes:
determining a regulation and control identifier of the current regulation and control;
acquiring the regulation and control request data which corresponds to the regulation and control identification and is in an unexecuted state from a database at regular time according to the regulation and control identification; the database stores the message queue, one regulation and control identification corresponds to a plurality of requester identifications, and one requester identification indicates one requester.
In an eighth aspect, according to the regulation method of the first aspect, before executing the regulation request data, the method further comprises:
filtering the acquired regulation and control request data of each requester according to a preset first filtering rule; the first filtering rule includes at least: the regulation request data that is not indicative of a regulation policy and/or is not indicative of a requestor is filtered.
In a ninth aspect, an embodiment of the present invention further provides a regulation method, including:
generating regulation and control request data of each requester; wherein, a regulation and control request data at least indicates a regulation and control strategy of one requester, and a regulation and control strategy records a regulation and control object and a corresponding regulation and control target of the requester;
storing the regulation and control request data of each requester in a message queue;
and transmitting the regulation and control request data in the message queue to a regulation and control processing server in a message form asynchronously so as to regulate and control the processing server to execute the regulation and control request data.
In a tenth aspect, according to the regulation method in the ninth aspect, the generating regulation request data of each requester includes:
generating a regulation strategy corresponding to each regulation object;
and selecting the regulation and control strategies used by each requester from the generated regulation and control strategies, and at least one regulation and control strategy of one requester is combined into one regulation and control request data.
In an eleventh aspect, according to the regulation method in the tenth aspect, the generating a regulation strategy corresponding to each of the regulation objects includes:
defining at least one corresponding regulation and control target for each regulation and control object respectively, wherein one regulation and control object and one corresponding regulation and control target form a regulation and control strategy corresponding to the regulation and control object;
the selecting, from the generated regulatory policies, a regulatory policy to be used by each of the requesters includes:
and selecting a regulation and control strategy matched with the corresponding subscription information for each requesting party from the generated regulation and control strategies according to the subscription information corresponding to each requesting party.
In a twelfth aspect, according to the regulation method in the tenth aspect, the storing regulation request data of each requester in a message queue includes:
a piece of regulation request data is used as a message, and the message is organized in a queue form in a message queue of a database.
In a thirteenth aspect, the method of regulating according to the ninth aspect, further comprising:
acquiring an execution success notification message of the regulation and control request data;
updating the state of the regulation and control request data from non-execution to successful execution in the database; the message queue is stored in the database.
In a fourteenth aspect, according to the method of any one of the ninth to thirteenth aspects, before storing the throttling request data of each of the requesters in a message queue, the method further comprises:
filtering the regulation and control request data of each requester according to a preset second filtering rule; the second filtering rule includes at least one of:
filtering regulatory request data that does not indicate a regulatory policy and/or that does not indicate a requestor;
when the regulation and control of the requester to close service is determined according to the regulation and control strategy of the regulation and control request data of the requester, filtering the regulation and control request data of the requester;
and filtering different regulation and control request data aiming at the same regulation and control object of the same requester.
In a fifteenth aspect, an embodiment of the present invention further provides a regulation and control device, including:
the data acquisition module is used for acquiring the regulation and control request data of each requester asynchronously transmitted by the regulation and control request server in the message form of the message queue; the system comprises a message queue, a regulation request data and a regulation target, wherein the regulation request data is used as a message in the message queue and is used for indicating at least one regulation strategy of one requester, and one regulation strategy records a regulation object and a corresponding regulation target of the requester;
and the execution module is used for executing the regulation and control request data so as to regulate and control objects of the requester to be matched with corresponding regulation and control targets according to the regulation and control strategies of the requester indicated by the regulation and control request data.
In a sixteenth aspect, an embodiment of the present invention further provides a regulation and control processing server, including at least one memory and at least one processor; the memory stores a program that the processor invokes, the program being operable to:
acquiring regulation request data of each requester asynchronously transmitted by a regulation request server in a message form of a message queue; the system comprises a message queue, a regulation request data and a regulation target, wherein the regulation request data is used as a message in the message queue and is used for indicating at least one regulation strategy of one requester, and one regulation strategy records a regulation object and a corresponding regulation target of the requester;
and executing the regulation and control request data so as to regulate and control objects of the requester to be matched with corresponding regulation and control targets according to the regulation and control strategy of the requester indicated by the regulation and control request data.
A seventeenth aspect of the present invention is the regulation processing server according to the sixteenth aspect, in which the program is configured to execute the regulation request data to adjust the regulation object of the requester to match with the corresponding regulation target according to the regulation policy of the requester indicated by the regulation request data, and the program includes:
combining the regulation strategies of the same requester in the regulation request data to obtain a regulation strategy group of each requester; wherein, a regulation strategy group comprises a plurality of regulation strategies of a request party;
and executing the regulation strategy group of each requester so as to respectively regulate the multiple regulation objects of each requester to be matched with the corresponding regulation targets.
Eighteenth, the regulation and control processing server according to the seventeenth, wherein the regulation and control request data includes a requester id and a regulation and control policy; the program is configured to combine the control policies of the same requester in the control request data to obtain a control policy group of each requester, and includes:
determining regulation and control request data of the same requester identification;
and combining the regulation and control strategies in the regulation and control request data with the same requester identifier, and combining the regulation and control strategies with the requester identifier to obtain a regulation and control strategy group of each requester.
A nineteenth aspect, the regulation and control processing server according to any one of the sixteenth to eighteenth aspects, wherein the program is further configured to:
after any regulation and control request data is executed, feeding back an execution success notification message of the regulation and control request data to the regulation and control request server so that the regulation and control request server updates the state of the regulation and control request data from non-execution to successful execution.
A twentieth aspect of the present invention provides the regulation and control processing server according to the nineteenth aspect, wherein the program is configured to, after any regulation and control request data is executed, feed back an execution success notification message of the regulation and control request data to the regulation and control request server, and includes:
and after any regulation and control request data is executed, sending an execution success notification message of the regulation and control request data to the regulation and control request server in a message form of a message queue.
In a twenty-first aspect, the regulation processing server according to the nineteenth aspect, wherein the program is further configured to:
and acquiring the regulation and control request data with the state of non-execution at fixed time, and executing the regulation and control request data with the state of non-execution.
A twenty-second aspect of the regulation processing server according to the twenty-first aspect, wherein the program is configured to periodically acquire regulation request data whose status is unexecuted, and includes:
determining a regulation and control identifier of the current regulation and control;
acquiring the regulation and control request data which corresponds to the regulation and control identification and is in an unexecuted state from a database at regular time according to the regulation and control identification; the database stores the message queue, one regulation and control identification corresponds to a plurality of requester identifications, and one requester identification indicates one requester.
A twenty-third aspect of the regulation processing server according to the sixteenth aspect, wherein before executing the regulation request data, the program is further configured to:
filtering the acquired regulation and control request data of each requester according to a preset first filtering rule; the first filtering rule includes at least: the regulation request data that is not indicative of a regulation policy and/or is not indicative of a requestor is filtered.
In a twenty-fourth aspect, an embodiment of the present invention further provides a control device, including:
the data generation module is used for generating regulation and control request data of each requester; wherein, a regulation and control request data at least indicates a regulation and control strategy of one requester, and a regulation and control strategy records a regulation and control object and a corresponding regulation and control target of the requester;
the queue storage module is used for storing the regulation and control request data of each requester into a message queue;
and the asynchronous transmission module is used for asynchronously transmitting the regulation and control request data in the message queue to the regulation and control processing server in a message form so as to regulate and control the processing server to execute the regulation and control request data.
In a twenty-fifth aspect, an embodiment of the present invention further provides a regulation request server, including at least one memory and at least one processor; the memory stores a program that the processor invokes, the program being operable to:
generating regulation and control request data of each requester; wherein, a regulation and control request data at least indicates a regulation and control strategy of one requester, and a regulation and control strategy records a regulation and control object and a corresponding regulation and control target of the requester;
storing the regulation and control request data of each requester in a message queue;
and transmitting the regulation and control request data in the message queue to a regulation and control processing server in a message form asynchronously so as to regulate and control the processing server to execute the regulation and control request data.
In a twenty-sixth aspect, the regulation request server according to the twenty-fifth aspect, wherein the program is configured to generate regulation request data for each requester, and the program includes:
generating a regulation strategy corresponding to each regulation object;
and selecting the regulation and control strategies used by each requester from the generated regulation and control strategies, and at least one regulation and control strategy of one requester is combined into one regulation and control request data.
A twenty-seventh aspect of the present invention provides the regulation request server of the twenty-sixth aspect, wherein the program is configured to generate the regulation policy corresponding to each of the regulation objects, and includes:
defining at least one corresponding regulation and control target for each regulation and control object respectively, wherein one regulation and control object and one corresponding regulation and control target form a regulation and control strategy corresponding to the regulation and control object;
the program is configured to select a regulation policy used by each of the requesters from the generated regulation policies, and includes:
and selecting a regulation and control strategy matched with the corresponding subscription information for each requesting party from the generated regulation and control strategies according to the subscription information corresponding to each requesting party.
Twenty-eighth aspect of the regulatory request server according to the twenty-sixth aspect, the program for storing regulatory request data of each of the requesters in a message queue of a database, includes:
a piece of regulation request data is used as a message, and the message is organized in a queue form in a message queue of a database.
A twenty-ninth aspect is the regulation request server of the twenty-fifth aspect, wherein the program is further configured to:
acquiring an execution success notification message of the regulation and control request data;
updating the state of the regulation and control request data from non-execution to successful execution in the database; the message queue is stored in the database.
A thirty-third aspect, the regulation request server according to any one of the twenty-fifth to twenty-ninth aspects, wherein the program is further configured to:
filtering the regulation and control request data of each requester according to a preset second filtering rule; the second filtering rule includes at least one of:
filtering regulatory request data that does not indicate a regulatory policy and/or that does not indicate a requestor;
when the condition of regulating and controlling the requester is determined to be a preset first condition according to a regulation and control strategy of regulation and control request data of the requester, filtering the regulation and control request data of the requester;
and filtering different regulation and control request data aiming at the same regulation and control object of the same requester.
In a thirty-first aspect, the embodiments of the present invention further provide a storage medium, where the storage medium stores a program for executing the regulation method described in any one of the first to eighth aspects, or stores a program for executing the regulation method described in any one of the ninth to fourteenth aspects.

Claims (10)

1. A method of regulation, comprising:
acquiring regulation request data of each requester asynchronously transmitted by a regulation request server in a message form of a message queue; the system comprises a message queue, a regulation request data and a regulation target, wherein the regulation request data is used as a message in the message queue and is used for indicating at least one regulation strategy of one requester, and one regulation strategy records a regulation object and a corresponding regulation target of the requester;
and executing the regulation and control request data so as to regulate and control objects of the requester to be matched with corresponding regulation and control targets according to the regulation and control strategy of the requester indicated by the regulation and control request data.
2. The regulation method of claim 1 wherein the executing the regulation request data to regulate the regulatory object of the requestor to match a corresponding regulation objective according to the regulatory policy of the requestor indicated by the regulation request data comprises:
combining the regulation strategies of the same requester in the regulation request data to obtain a regulation strategy group corresponding to each requester; wherein, a regulation strategy group comprises a plurality of regulation strategies of a request party;
and executing the regulation strategy group of each requester so as to respectively regulate the multiple regulation objects of each requester to be matched with the corresponding regulation targets.
3. The method for regulating and controlling according to claim 1, further comprising:
and acquiring the regulation and control request data with the state of non-execution at fixed time, and executing the regulation and control request data with the state of non-execution.
4. A method of regulation, comprising:
generating regulation and control request data of each requester; wherein, a regulation and control request data at least indicates a regulation and control strategy of one requester, and a regulation and control strategy records a regulation and control object and a corresponding regulation and control target of the requester;
storing the regulation and control request data of each requester in a message queue;
and transmitting the regulation and control request data in the message queue to a regulation and control processing server in a message form asynchronously so as to regulate and control the processing server to execute the regulation and control request data.
5. The method for regulating and controlling according to claim 4, further comprising:
acquiring an execution success notification message of the regulation and control request data;
updating the state of the regulation and control request data from non-execution to successful execution in the database; the message queue is stored in the database.
6. A conditioning device, comprising:
the data acquisition module is used for acquiring the regulation and control request data of each requester asynchronously transmitted by the regulation and control request server in the message form of the message queue; the system comprises a message queue, a regulation request data and a regulation target, wherein the regulation request data is used as a message in the message queue and is used for indicating at least one regulation strategy of one requester, and one regulation strategy records a regulation object and a corresponding regulation target of the requester;
and the execution module is used for executing the regulation and control request data so as to regulate and control objects of the requester to be matched with corresponding regulation and control targets according to the regulation and control strategies of the requester indicated by the regulation and control request data.
7. A regulation processing server comprising at least one memory and at least one processor; the memory stores a program that the processor invokes, the program being operable to:
acquiring regulation request data of each requester asynchronously transmitted by a regulation request server in a message form of a message queue; the system comprises a message queue, a regulation request data and a regulation target, wherein the regulation request data is used as a message in the message queue and is used for indicating at least one regulation strategy of one requester, and one regulation strategy records a regulation object and a corresponding regulation target of the requester;
and executing the regulation and control request data so as to regulate and control objects of the requester to be matched with corresponding regulation and control targets according to the regulation and control strategy of the requester indicated by the regulation and control request data.
8. A conditioning device, comprising:
the data generation module is used for generating regulation and control request data of each requester; wherein, a regulation and control request data at least indicates a regulation and control strategy of one requester, and a regulation and control strategy records a regulation and control object and a corresponding regulation and control target of the requester;
the queue storage module is used for storing the regulation and control request data of each requester into a message queue;
and the asynchronous transmission module is used for asynchronously transmitting the regulation and control request data in the message queue to the regulation and control processing server in a message form so as to regulate and control the processing server to execute the regulation and control request data.
9. A regulation request server comprising at least one memory and at least one processor; the memory stores a program that the processor invokes, the program being operable to:
generating regulation and control request data of each requester; wherein, a regulation and control request data at least indicates a regulation and control strategy of one requester, and a regulation and control strategy records a regulation and control object and a corresponding regulation and control target of the requester;
storing the regulation and control request data of each requester in a message queue;
and transmitting the regulation and control request data in the message queue to a regulation and control processing server in a message form asynchronously so as to regulate and control the processing server to execute the regulation and control request data.
10. A storage medium storing a program for executing the regulation method according to any one of claims 1 to 3, or a program for executing the regulation method according to any one of claims 4 to 5.
CN201910961572.9A 2019-10-11 2019-10-11 Regulation and control method, device and related equipment Pending CN110719330A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910961572.9A CN110719330A (en) 2019-10-11 2019-10-11 Regulation and control method, device and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910961572.9A CN110719330A (en) 2019-10-11 2019-10-11 Regulation and control method, device and related equipment

Publications (1)

Publication Number Publication Date
CN110719330A true CN110719330A (en) 2020-01-21

Family

ID=69211425

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910961572.9A Pending CN110719330A (en) 2019-10-11 2019-10-11 Regulation and control method, device and related equipment

Country Status (1)

Country Link
CN (1) CN110719330A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111586171A (en) * 2020-05-07 2020-08-25 广州虎牙信息科技有限公司 Server operation method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130013920A1 (en) * 2011-07-06 2013-01-10 International Business Machines Corporation Dynamic data-protection policies within a request-reply message queuing environment
CN104598639A (en) * 2015-02-11 2015-05-06 北京京东尚科信息技术有限公司 Real-time display method and real-time display system for supplying commodity prices
CN105303417A (en) * 2015-12-07 2016-02-03 北京京东尚科信息技术有限公司 Goods automatic ordering system and method
CN107105064A (en) * 2017-06-02 2017-08-29 上海艾融软件股份有限公司 The method for pushing and system of a kind of Transaction Information
CN110134698A (en) * 2019-04-15 2019-08-16 平安普惠企业管理有限公司 Data managing method and Related product

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130013920A1 (en) * 2011-07-06 2013-01-10 International Business Machines Corporation Dynamic data-protection policies within a request-reply message queuing environment
CN104598639A (en) * 2015-02-11 2015-05-06 北京京东尚科信息技术有限公司 Real-time display method and real-time display system for supplying commodity prices
CN105303417A (en) * 2015-12-07 2016-02-03 北京京东尚科信息技术有限公司 Goods automatic ordering system and method
CN107105064A (en) * 2017-06-02 2017-08-29 上海艾融软件股份有限公司 The method for pushing and system of a kind of Transaction Information
CN110134698A (en) * 2019-04-15 2019-08-16 平安普惠企业管理有限公司 Data managing method and Related product

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111586171A (en) * 2020-05-07 2020-08-25 广州虎牙信息科技有限公司 Server operation method and device, electronic equipment and storage medium
CN111586171B (en) * 2020-05-07 2023-05-30 广州虎牙信息科技有限公司 Server operation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN103176790B (en) Application dissemination method and system
US7552077B1 (en) System and method for coalescing market data at a network device
CN104348647B (en) Multi-source bandwidth scheduling method, apparatus and system
US20110078297A1 (en) Job processing system, method and program
CN109327550A (en) A kind of distribution method of access request, device, storage medium and computer equipment
CN111432247B (en) Traffic scheduling method, traffic scheduling device, server and storage medium
CN113467824B (en) Data processing method, device, equipment and storage medium
CN109194718A (en) A kind of block chain network and its method for scheduling task
CN109658223A (en) Collection case distribution method, device, equipment and medium based on data processing
CN110300130A (en) A kind of resource regulating method, device, electronic equipment and storage medium
CN110191160A (en) A kind of concurrency control method and device
CN103248636B (en) The system and method downloaded offline
CN114501351A (en) Flow control method, flow control equipment and storage medium
US10943299B2 (en) Adjusting and distributing liquidity
CN110719330A (en) Regulation and control method, device and related equipment
CN105824919B (en) A kind of dynamic adjusting method and device of data query operation price
US8489998B2 (en) Method, apparatus and system for coordinated content distribution workflow
JP2001022714A (en) Server computer, load decentralization system, telephone exchange system, and load decentralizing method
CN109413117A (en) Distributed data calculation method, device, server and computer storage medium
CN109688421A (en) Request message processing method, apparatus and system, server, storage medium
CN112633953B (en) Service processing method and system based on block chain
KR20220113901A (en) Providing method for multi-asset portfolio platform and system thereof
CN111160991B (en) PDB advertisement flow optimization method and device, storage medium and electronic equipment
CN113538081B (en) Mall order system and processing method for realizing resource self-adaptive scheduling
CN110941404B (en) Shared printing method and system of laser printer

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200121