CN113298596B - Data processing method, device and equipment - Google Patents

Data processing method, device and equipment Download PDF

Info

Publication number
CN113298596B
CN113298596B CN202010758719.7A CN202010758719A CN113298596B CN 113298596 B CN113298596 B CN 113298596B CN 202010758719 A CN202010758719 A CN 202010758719A CN 113298596 B CN113298596 B CN 113298596B
Authority
CN
China
Prior art keywords
resource
data processing
request
inventory
resources
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010758719.7A
Other languages
Chinese (zh)
Other versions
CN113298596A (en
Inventor
张俊梅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Cloud Computing Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN202010758719.7A priority Critical patent/CN113298596B/en
Publication of CN113298596A publication Critical patent/CN113298596A/en
Application granted granted Critical
Publication of CN113298596B publication Critical patent/CN113298596B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0631Item recommendations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • Marketing (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Theoretical Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention provides a data processing method, a data processing device and data processing equipment. The method comprises the following steps: acquiring a data processing request and a data processing resource corresponding to the data processing request; determining inventory resources and preset water level resources corresponding to the data processing request; and processing the data processing request according to the inventory resource, the preset water level resource and the data processing resource to generate a processing result corresponding to the data processing request. According to the technical scheme, multiple modes of inventory deduction, small water level reservation, rapid refund during inventory breakdown, silence hemostasis of inventory and supply cutoff recommendation are combined through the system, multiple modes of inventory breakdown probability and the like are reduced, meanwhile, rapid hemostasis is achieved when inventory breakdown occurs, the bottom pocket scheme is given, actual requirements of users are met, the purpose of preventing inventory breakdown is achieved, quality and efficiency of data processing are effectively guaranteed, and practicability of the method is improved.

Description

Data processing method, device and equipment
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data processing method, apparatus, and device.
Background
With the continuous development of cloud computing, application scenarios of cloud computing are becoming more and more extensive, wherein cloud computing (cloud computing) means that huge data computing processing tasks are decomposed into countless small tasks through a network "cloud", and then the small tasks are processed and analyzed through a system composed of a plurality of servers, and results are obtained and returned to a user.
In the process of data processing, in order to ensure the per-second query rate (TPS) for ordering by a user and the user experience of quick response, a first server may be structured and layered, and a second server (i.e., a resource side server) may calculate inventory data in real time. Specifically, the first server periodically pulls and consumes the latest inventory data from the resource-side server, so that there is a data delay between the inventory data acquired by the first server and the real inventory present in the resource-side server. When the demand is greater than the inventory amount, the first server is easy to check the inventory of the order, and the resource side server has insufficient resources, so that the inventory scene is broken down, the quality and the efficiency of data processing are reduced, and the good experience of a user is also reduced.
Disclosure of Invention
The embodiment of the invention provides a data processing method, a data processing device and data processing equipment, which are used for solving the problems that when the demand is larger than the stock quantity, the order of a first server is easy to pass the stock verification, and a second server has insufficient resources, so that the stock scene is broken down, the quality and the efficiency of data processing are reduced, and the good experience of a user is also reduced.
In a first aspect, an embodiment of the present invention provides a data processing method, including:
acquiring a data processing request and a data processing resource corresponding to the data processing request;
determining inventory resources and preset water level resources corresponding to the data processing request;
and processing the data processing request according to the inventory resource, the preset water level resource and the data processing resource to generate a processing result corresponding to the data processing request.
In a second aspect, an embodiment of the present invention provides a data processing apparatus, including:
the acquisition module is used for acquiring a data processing request and data processing resources corresponding to the data processing request;
the determining module is used for determining inventory resources and preset water level resources corresponding to the data processing request;
and the processing module is used for processing the data processing request according to the inventory resource, the preset water level resource and the data processing resource so as to generate a processing result corresponding to the data processing request.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a memory, a processor; wherein the memory is configured to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the data processing method of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium for storing a computer program, where the computer program is used to make a computer implement the data processing method in the first aspect when executed.
According to the data processing method, the data processing device and the data processing equipment provided by the embodiment, the inventory resource and the preset water level resource corresponding to the data processing request are determined by obtaining the data processing request and the data processing resource corresponding to the data processing request, and then the data processing request is processed according to the inventory resource, the preset water level resource and the data processing resource, so that stable processing operation on the data processing request based on the obtained inventory resource and the preset water level resource is effectively realized, the probability of inventory breakdown is reduced, the situations that the first server places orders and passes inventory verification and the second server has insufficient resources to break down the inventory can be even avoided, and good experience of a user is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a data processing method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a process of determining inventory resources and preset water level resources corresponding to the data processing request according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a process of determining the inventory resource and the preset water level resource based on the data processing object according to an embodiment of the present invention;
FIG. 4 is a flow chart illustrating another data processing method according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of a process of determining a preset water level resource corresponding to the object identifier according to the multiple concurrent historical requests provided by the embodiment of the present invention;
fig. 6 is a schematic flowchart of a process of determining inventory resources and preset water level resources corresponding to the data processing request according to an embodiment of the present invention;
fig. 7 is a schematic flowchart of acquiring an operating status corresponding to the inventory resource according to an embodiment of the present invention;
FIG. 8 is a flowchart illustrating another data processing method according to an embodiment of the present invention;
FIG. 9 is a flowchart illustrating another data processing method according to an embodiment of the present invention;
fig. 10 is a schematic flowchart of a data processing method according to an embodiment of the present invention;
FIG. 11 is a flow chart illustrating another data processing method according to an embodiment of the present invention;
FIG. 12 is a block diagram of a data processing system according to an embodiment of the present invention;
fig. 13 is an interaction diagram of a data processing method according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention;
fig. 15 is a schematic structural diagram of an electronic device corresponding to the data processing apparatus provided in the embodiment shown in fig. 14.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. 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.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, and "the plural" typically includes at least two, but does not exclude the presence of at least one.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such good or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a commodity or system that includes the element.
In addition, the sequence of steps in each method embodiment described below is only an example and is not strictly limited.
In order to facilitate understanding of the technical solutions of the present application, the following briefly describes the prior art:
with the rapid development of scientific technology, cloud computing is becoming more and more widely applied, wherein cloud computing (cloud computing) means that huge data computing processing tasks are decomposed into countless small tasks through a network "cloud", and then the small tasks are processed and analyzed through a system composed of a plurality of servers, and results are obtained and returned to users.
In the application background of cloud computing, the difference between the inventory computing of the virtual machine and the inventory computing of common commodities in the e-commerce background is larger, and the inventory computing operation of the virtual machine is more complex. In the process of data processing, in order to guarantee the user experience of TPS and quick response for ordering by a user, a first server and a second server (hereinafter referred to as resource side server) may be structured and layered, a resource side server may calculate inventory data in real time, and the first server pulls and consumes the latest inventory data from the resource side server at regular time, so that there is a delay between the inventory data acquired by the first server and the real inventory existing in the resource side server. When the demand is greater than the inventory amount, the situation that the inventory of the first server passes the check of the order, and the resource side has insufficient resources, so that the inventory is broken down is easy to occur, and thus, the quality and the efficiency of data processing are reduced, and the good experience of a user is also reduced.
In order to solve the problem of inventory breakdown, the related art provides a processing method, and specifically, the processing method may include: after the order placing request sent by the user is obtained, inventory pre-deduction operation can be carried out on the resource side server based on the order placing request, and therefore the situation that the corresponding instance of the order placing request cannot be produced due to inventory reasons after the order placing is successful is guaranteed through pre-occupying resources. After the order placing request exceeds a certain time, the order placing request can be determined to be invalid, and corresponding pre-occupied resources are released.
However, the above treatment method has the following drawbacks:
(1) the ordering request is acquired from the first server and sent to the resource side server, and the inventory deduction and the resource pre-occupation are realized through the resource side server, so that the data processing operation is time-consuming and affects the TPS of the ordering operation.
(2) The effective time span of the order placing request is long, and the scenes that the order placing quantity of the user is not limited are not limited, so that more data resources can be pre-occupied, and the data processing cost is increased.
In order to solve the problem that when the demand is greater than the inventory amount, the inventory check of the first server is easy to pass, and the resource side server has insufficient resources, so that the inventory scene is broken down, so that the quality and efficiency of data processing are reduced, and the good experience of a user is also reduced, the embodiments provide a data processing method, a data processing device and data processing equipment. According to the method, the data processing request and the data processing resources corresponding to the data processing request are obtained, the stock resources and the preset water level resources corresponding to the data processing request are determined, the data processing request is processed according to the stock resources, the preset water level resources and the data processing resources, stable processing operation on the data processing request based on the obtained stock resources and the preset water level resources is effectively achieved, accordingly, the probability of stock breakdown is reduced, even the situation that a first server places orders and passes stock verification and a resource side server does not have enough resources to break down the stock can be avoided, and good experience of users is guaranteed.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The features of the embodiments and examples described below may be combined with each other without conflict between the embodiments.
Fig. 1 is a schematic flow chart of a data processing method according to an embodiment of the present invention; referring to fig. 1, the present embodiment provides a data processing method, and the execution subject of the method may be a data processing apparatus, and it is understood that the data processing apparatus may be implemented as software, or a combination of software and hardware. Specifically, the processing method may include:
step S101: and acquiring the data processing request and the data processing resource corresponding to the data processing request.
Step S102: and determining inventory resources and preset water level resources corresponding to the data processing request.
Step S103: and processing the data processing request according to the inventory resource, the preset water level resource and the data processing resource to generate a processing result corresponding to the data processing request.
The following is a detailed description of the above steps:
step S101: and acquiring the data processing request and the data processing resource corresponding to the data processing request.
The data processing request refers to a request that needs to perform a data processing operation, and it can be understood that the data processing operation may be different based on different application scenarios and application requirements, for example: the data processing operation can be a data query operation, a commodity purchase operation (an order placing purchase operation in a virtual machine application scene, an order placing purchase operation in an e-commerce application scene), a data call operation, an order payment operation (an order payment operation in a virtual machine application scene, an order payment operation in an e-commerce application scene), and the like. And the data processing resources corresponding to the data processing request may refer to data resources required for performing the data processing operation corresponding to the data processing request.
For example, in an application scenario of a virtual machine, specifically, the virtual machine may be disposed in a resource-side server, and the resource-side server is in communication connection with the first server, where the virtual machine in the resource-side server is used to store a resource-side actual resource, and the resource-side actual resource is used to implement processing of a production request corresponding to a data processing request. Specifically, when the data processing request is a commodity purchase request of the virtual machine, the data processing resource may refer to a commodity quantity corresponding to the commodity purchase operation, and the resource-side actual resource stored in the virtual machine may be a commodity production quantity/commodity delivery quantity for the commodity delivery operation; alternatively, when the data processing request is an order payment request of the virtual machine, the data processing resource may refer to a fee or the like required for implementing the order payment operation.
In the application scenario of e-commerce, the data processing request may refer to a commodity purchasing request, and at this time, the data processing resource may refer to a fee and a commodity number required for implementing a commodity purchasing operation; in the application scenario of the article forum, the data processing request may refer to a data query request or a data publishing request, and in this case, the data processing resource may refer to a data resource (e.g., a credit resource, a fee resource, etc.) required for implementing a data query operation/data publishing operation.
It is understood that the application scenario to which the method provided in this embodiment is applicable is not limited to the application scenario of the virtual machine and the application scenario of the e-commerce illustrated above, and those skilled in the art may also adjust or change the application scenario according to specific application requirements, for example, the application scenario to which the method is applicable may further include any one of the following: the application scenarios of ordering by online catering, the selling application scenarios of airline tickets, train tickets, entrance tickets and performance tickets, the selling application scenarios of various concurrent ordering, the selling scenarios of data asynchronism between the first server and the resource side server, and the like are not described herein any more.
In addition, the embodiment does not limit the specific implementation manner of obtaining the data processing request and the data processing resource corresponding to the data processing request, and a person skilled in the art may set the data processing request and the data processing resource according to specific application requirements and design requirements, for example: the data processing request may be directly input to the data processing apparatus by the user, and at this time, the data processing apparatus may stably acquire the data processing request. Alternatively, the data processing request may be stored in a preset area, and the data processing apparatus may acquire the data processing request by accessing the preset area. After the data processing device acquires the data processing request, the data processing request can be analyzed to determine the data processing resource corresponding to the data processing request.
Of course, those skilled in the art may also use other manners to obtain the data processing request and the data processing resource corresponding to the data processing request, as long as the accuracy and reliability of obtaining the data processing request and the data processing resource corresponding to the data processing request can be ensured, which is not described herein again.
Step S102: and determining inventory resources and preset water level resources corresponding to the data processing request.
After the data processing request is obtained, the data processing request may be analyzed to determine an inventory resource corresponding to the data processing request and a preset water level resource, where the inventory resource may be a data resource used for identifying the data processing apparatus, and the preset water level resource may be a resource limit value reserved in advance for identifying that the data resource is in zero inventory. For the data processing device, the resource capable of performing the data processing operation by the data processing device should be the stock resource minus the preset water level resource. Specifically, if the stock resource of a certain data object is greater than the preset water level resource, it indicates that the data object has more resources, and then the resource corresponding to the data object can be published, so that the user can view the resource corresponding to the data object; if the stock resource of a certain data object is less than or equal to the preset water level resource, it indicates that the data object has no corresponding resource, and prohibits publishing the resource corresponding to the data object, so that the user cannot check the resource corresponding to the data object, that is, the data object is a zero stock resource, and thus other devices cannot check or sense the data resource of the data processing apparatus.
In some examples, the inventory resources may include virtual machine inventory resources corresponding to virtual machines, and it is understood that one physical area may correspond to one or more physical machines, one physical machine may correspond to multiple virtual machines, and different virtual machines may correspond to different virtual machine inventory resources.
Step S103: and processing the data processing request according to the inventory resource, the preset water level resource and the data processing resource to generate a processing result corresponding to the data processing request.
After the inventory resources and the preset water level resources are obtained, the data processing request can be analyzed and processed by utilizing the inventory resources, the preset water level resources and the data processing resources to generate a processing result corresponding to the data processing request.
In some examples, the inventory resource and the data processing resource may be analyzed and compared, or the preset water level resource and the data processing resource are analyzed and processed, and whether the preset water level resource can meet the processing requirement corresponding to the data processing resource is determined, so as to generate a processing result corresponding to the data processing request. Specifically, when the inventory resource is greater than or equal to the data processing resource, or when the preset water level resource can meet the processing requirement of the data processing resource, it indicates that the data processing apparatus has sufficient data resources to implement the data processing operation corresponding to the data processing request, and therefore, the corresponding data processing operation can be performed based on the data processing request, and the processing result corresponding to the data processing request, which is the corresponding operation result after the data processing operation is performed, is obtained.
Correspondingly, when the inventory resource is smaller than the data processing resource, or when the preset water level resource cannot meet the processing requirement of the data processing resource, it indicates that the data processing device does not have sufficient data resources to implement the data processing operation corresponding to the data processing request.
In other examples, if the data processing request is for multiple data objects, and the data processing operations corresponding to different data objects have different data processing resources, and the data processing apparatus has data resources that can implement the data processing operations for some data objects, one or more target data objects corresponding to the data processing request may be determined, where all data resources corresponding to the one or more target data objects are less than or equal to the inventory resources and/or the preset water level resources of the data processing apparatus. At this time, when the data processing request is processed, corresponding data processing operations may be performed on one or more target data objects, and a processing result corresponding to the data processing request, that is, an operation result corresponding to the data processing operation, may be obtained. And for other data objects corresponding to the data processing request, generating a processing result corresponding to the data processing request, wherein the processing result is used for identifying the processing failure of the data processing request.
Of course, those skilled in the art may also use other manners to process the data processing request according to the inventory resource, the preset water level resource, and the data processing resource, as long as the accuracy and reliability of generating the processing result corresponding to the data processing request can be ensured, which is not described herein again.
According to the data processing method provided by the embodiment, the inventory resource and the preset water level resource corresponding to the data processing request are determined by obtaining the data processing request and the data processing resource corresponding to the data processing request, and then the data processing request is processed according to the inventory resource, the preset water level resource and the data processing resource, so that stable processing operation on the data processing request based on the obtained inventory resource and the preset water level resource is effectively realized, the probability of inventory breakdown is reduced, even the situation that the first server places an order, the inventory passes the verification and the resource side server has no sufficient resource can be avoided, the inventory can be broken down, and good experience of a user is ensured.
Fig. 2 is a schematic flowchart illustrating a process of determining inventory resources and preset water level resources corresponding to a data processing request according to an embodiment of the present invention; on the basis of the foregoing embodiment, with reference to fig. 2, in this embodiment, a specific implementation manner of determining the inventory resources and the preset water level resources corresponding to the data processing request is not limited, and a person skilled in the art may set the determination manner according to a specific application requirement and a design requirement, and preferably, the determining the inventory resources and the preset water level resources corresponding to the data processing request in this embodiment may include:
step S201: and acquiring a data processing object corresponding to the data processing request.
Step S202: and determining the stock resource and the preset water level resource based on the data processing object.
One data processing request may correspond to one or more data processing objects, and after the data processing request is obtained, the data processing object corresponding to the data processing request may be determined based on the data processing request, it may be understood that, in different application scenarios, the data processing object may have different types, for example: in an application scene of an e-commerce, a data processing object can refer to a commodity to be bought and sold; in an application scenario of the article forum, the data processing object may refer to article information to be queried or article information to be accessed, and the like.
In addition, different inventory resources and preset water level resources are configured in advance for different data processing objects, so after the data processing objects are obtained, the data processing objects can be analyzed to determine the inventory resources and the preset water level resources. Specifically, referring to fig. 3, the determining of the inventory resource and the preset water level resource based on the data processing object may include:
step S2021: acquiring an object identity corresponding to a data processing object;
step S2022: and acquiring stock resources and preset water level resources in the database based on the object identity.
For different data processing objects, different object identifiers can be provided, and mapping relationships among the object identifiers, the inventory resources and the preset water level resources are configured in advance. Therefore, in order to acquire the inventory resource and the preset water level resource corresponding to the data processing object, after the data processing object is acquired, the object identity corresponding to the data processing object may be determined, and then the corresponding inventory resource and the preset water level resource may be acquired in the database based on the preset mapping relationship and the object identity.
For example, a data processing object a, a data processing object B, and a data processing object C are preconfigured, where the data processing object a corresponds to an inventory resource a and a preset water level resource a, the data processing object B corresponds to an inventory resource B and a preset water level resource B, and the data processing object C corresponds to an inventory resource C and a preset water level resource C.
After the data processing request is obtained, the data processing object corresponding to the data processing request can be obtained, and if the data processing object is the data processing object B, the inventory resource and the preset water level resource can be determined to be the inventory resource B and the preset water level resource B respectively based on the determined data processing object B, so that the accuracy and reliability of determining the inventory resource and the preset water level resource are effectively ensured, and the quality and the efficiency of data processing are further improved.
FIG. 4 is a flow chart illustrating another data processing method according to an embodiment of the present invention; on the basis of the foregoing embodiment, with reference to fig. 4, before acquiring the inventory resource and the preset water level resource in the database based on the object identifier, the method in this embodiment may further include:
step S401: and acquiring a plurality of historical request concurrency quantities corresponding to the object identification in a preset time period.
The time period may be any time period configured in advance, the specific time length represented by the time period is not limited in this embodiment, and a person skilled in the art may set the time period according to specific application requirements and design requirements, for example: the time period may be a preset 1 week, 2 weeks, 3 weeks, or 4 weeks, etc. After configuring the time period, according to the request log in the specified time period, the historical request concurrency amount corresponding to each object identity in the specified sliding window is counted every minute, and the historical request concurrency amount is a historical data processing request existing for one or more data objects. Wherein, the size of the sliding window is positively correlated with the calculation delay of the inventory resources. In order to accurately obtain the size of the sliding window, the calculation delay with the inventory resource may be obtained, and then the size of the sliding window may be determined based on the calculation delay with the inventory resource.
For example, when the time period is 4 weeks, the request concurrency amount corresponding to each object id in the sliding window may be statistically specified according to the request logs of the past 4 weeks every minute, where the size of the sliding window may be 1min or 2 min. In this case, specifically, the number of the history request concurrency amounts corresponding to each object id may be 4 × 7 × 24 × 60. Of course, those skilled in the art may obtain other numbers of historical request concurrency amounts according to specific application requirements and design requirements, and details thereof are not described herein.
Step S402: and determining preset water level resources corresponding to the object identity according to the plurality of historical request concurrency quantities.
After the multiple history request concurrency quantities are acquired, the multiple history request concurrency quantities can be analyzed to determine the preset water level resource corresponding to the object identity. Specifically, the multiple history request concurrency amounts may be sorted, and then the history request concurrency amount sorted at the preset position may be determined as the preset water level resource corresponding to the object identifier.
Specifically, the historical request concurrency amount is counted and obtained every minute, that is, the number of the historical request concurrency amounts may be 1 × 7 × 24 × 60, and the sliding window corresponding to each historical request concurrency amount may be 2 min.
Taking an example that a part of the history request concurrency amounts include a concurrency amount a, a concurrency amount B, a concurrency amount C, and a concurrency amount D, after the plurality of history request concurrency amounts are obtained, the history request concurrency amounts may be sorted, and it is assumed that a sorting result is: concurrency amount D > concurrency amount A > concurrency amount C > concurrency amount B. Then, after the sequencing information is acquired, if the preset position is the second position, determining the concurrency A sequenced at the second position as a preset water level resource; if the preset position is the third position, the concurrency C ordered at the third position is determined as the preset water level resource, so that the accuracy and reliability of determining the preset water level resource are effectively ensured.
Step S403: and storing the preset water level resource in a database.
After the preset water level resource is obtained, in order to facilitate scheduling and management of the preset water level resource, the preset water level resource may be stored in a database, and it may be understood that the database may be a database configured in the virtual machine in advance.
In the embodiment, the multiple historical request concurrency quantities corresponding to the object identity identifiers are acquired in the preset time period, the preset water level resources corresponding to the object identity identifiers are determined according to the multiple historical request concurrency quantities, and the preset water level resources are stored in the database, so that the accuracy and reliability of determining the preset water level resources are ensured, the preset water level resources are convenient to fetch and check, and the quality and efficiency of data processing are further improved.
Fig. 5 is a schematic flowchart of a process of determining a preset water level resource corresponding to an object identifier according to a plurality of concurrent historical requests according to an embodiment of the present invention; on the basis of the foregoing embodiment, with reference to fig. 5, in this embodiment, a specific implementation manner of determining the preset water level resource corresponding to the object identifier according to the multiple concurrent amounts of the historical requests is not limited, and a person skilled in the art may set the preset water level resource according to a specific application requirement and a design requirement, and preferably, the determining the preset water level resource corresponding to the object identifier according to the multiple concurrent amounts of the historical requests in this embodiment may include:
step S501: an amount of exceptional concurrency included in the historical amount of request concurrency is determined.
After the multiple history request concurrency amounts are acquired, the multiple history request concurrency amounts can be analyzed to determine abnormal concurrency amounts included in the multiple history request concurrency amounts. In some examples, determining the amount of exception concurrency included in the historical amount of request concurrency may include: analyzing and comparing the historical request concurrency amount with a concurrency amount threshold value; and when the historical request concurrency amount is larger than the concurrency amount threshold value, determining the historical request concurrency amount as an abnormal concurrency amount.
Specifically, a concurrency amount threshold for determining the abnormal concurrency amount is configured in advance, and the concurrency amount threshold is a minimum limit value for determining the abnormal concurrency amount. In order to accurately determine the abnormal concurrency included in the history request concurrency, all the acquired history request concurrency may be analyzed and compared with a concurrency threshold, and when the history request concurrency is greater than the concurrency threshold, it indicates that the number of the history request concurrency is abnormally high, and further, the history request concurrency may be determined as the abnormal concurrency.
Of course, those skilled in the art may also determine the abnormal concurrency amount in other manners, as long as the accuracy and reliability of determining the abnormal concurrency amount can be ensured, which is not described herein again.
Step S502: and removing abnormal concurrency quantity, sequencing historical request concurrency quantity and obtaining concurrency quantity sequencing information.
When it is determined that one or more abnormal concurrency amounts are included in the historical request concurrency amounts, in order to avoid the influence of the abnormal concurrency amounts on the preset water level resources, the abnormal concurrency amounts included in the historical request concurrency amounts can be removed, and then the historical request concurrency amounts are sorted, so that concurrency amount sorting information can be obtained.
Step S503: and determining a preset water level resource corresponding to the object identity identification based on the concurrency quantity sequencing information.
After the concurrency quantity sequencing information is acquired, the concurrency quantity sequencing information can be analyzed to determine the preset water level resource corresponding to the object identity. In some examples, determining the preset watermark resource corresponding to the object identifier based on the concurrency ranking information may include: acquiring a sequencing position identifier corresponding to a preset water level resource; and determining the historical request concurrency corresponding to the sequencing position identification as a preset water level resource based on the concurrency sequencing information.
In addition, a sequencing position identifier corresponding to the preset water level resource is configured in advance, specifically, the sequencing position identifier may be pre-stored in a preset area, the sequencing position identifier corresponding to the preset water level resource may be acquired by accessing the preset area, and after the sequencing position identifier is acquired, the historical request concurrency amount corresponding to the sequencing position identifier in the concurrency amount sequencing information may be determined as the preset water level resource.
For example, the history request concurrency amount includes a concurrency amount a, a concurrency amount B, a concurrency amount C, a concurrency amount D, and a concurrency amount E, and then the history request concurrency amount is analyzed and compared with a concurrency amount threshold P, and when the analysis and comparison result is that the concurrency amount B > the concurrency amount threshold P and the concurrency amount threshold P > (the concurrency amount a, the concurrency amount C, the concurrency amount D, and the concurrency amount E), the concurrency amount B is indicated as an abnormal concurrency amount, and then the abnormal concurrency amount included in the history request concurrency amount may be removed, and a plurality of history request concurrency amounts after the abnormal concurrency amount is removed may be sorted, for example, the concurrency amount sorting information is that the concurrency amount D > the concurrency amount a > the concurrency amount C > the concurrency amount E, and after the concurrency amount sorting information is obtained, the concurrency amount a sorted at the second location may be determined as the preset resource, or the concurrency amount C sorted at the third location may be determined as the preset resource, therefore, the accuracy and reliability of determining the preset water level resource are effectively ensured.
Fig. 6 is a schematic flowchart of a process of determining inventory resources and preset water level resources corresponding to a data processing request according to an embodiment of the present invention; on the basis of any one of the above embodiments, referring to fig. 6, this embodiment provides another way to determine the inventory resource and the preset water level resource corresponding to the data processing request, and specifically, the determining the inventory resource and the preset water level resource corresponding to the data processing request in this embodiment may include:
step S601: and acquiring the running state corresponding to the inventory resource.
When the inventory resources are used for analyzing and processing the data processing resources, the inventory resources may correspond to different operating states, and the operating states of the inventory resources may include a normal state and an abnormal state. Specifically, referring to fig. 7, acquiring the operation status corresponding to the inventory resource may include:
step S6011: identification information for identifying an operating state of the inventory resource is acquired.
Step S6012: based on the identification information, an operational state corresponding to the inventory resource is determined.
The mapping relationship exists between the identification information for identifying the running state of the inventory resource and the object identity, so that after the data processing request is obtained, the object identity corresponding to the data processing request can be determined, and then the identification information for identifying the running state of the inventory resource is obtained by using the object identity. After the identification information is obtained, the identification information may be analyzed to determine an operational status corresponding to the inventory resource.
In some examples, determining an operational state corresponding to the inventory resource based on the identification information may include: when the identification information is a preset identification for identifying that the stock resource is in an abnormal state, determining that the running state corresponding to the stock resource is in the abnormal state; or when the identification information is not the preset identification or does not exist, determining that the running state corresponding to the inventory resource is a normal state.
For example, a preset identifier "1" for identifying the inventory resource in the abnormal state is preconfigured, after the identification information for identifying the running state of the inventory resource is obtained, the identification information may be analyzed and compared with the preset identifier, and when the identification information is the preset identifier "1", the running state corresponding to the inventory resource may be determined to be in the abnormal state. When the identification information is not the preset identification "1" or the identification information does not exist, it may be determined that the operation state corresponding to the inventory resource is a normal state.
In the embodiment, the identification information for identifying the running state of the stock resource is acquired, and then the identification information is analyzed and compared with the preset identification for identifying the abnormal state of the stock resource, so that the accuracy and reliability of determining the running state corresponding to the stock resource are effectively ensured.
Step S602: and judging whether the data processing request is processed according to the inventory resource, the preset water level resource and the data processing resource or not based on the running state.
Wherein, based on the operation status, determining whether to process the data processing request according to the inventory resource, the preset water level resource and the data processing resource may include:
step S6021: when the running state is an abnormal state, forbidding processing on the data processing request according to the inventory resources, the preset water level resources and the data processing resources;
step S6022: and when the operation state is a normal state, the data processing request is allowed to be processed according to the inventory resource, the preset water level resource and the data processing resource.
Specifically, when the running state of the inventory resources is an abnormal state, the data processing operation on the data processing resources based on the inventory resources cannot be accurately performed; when the running state of the inventory resources is a normal state, data operation can be performed on the data processing resources based on the inventory resources. Therefore, when the running state corresponding to the stock resource is determined to be an abnormal state, in order to ensure the accuracy of analyzing and processing the data processing resource, the data processing request can be prohibited from being processed according to the stock resource, the preset water level resource and the data processing resource. When the running state corresponding to the stock resource is determined to be a normal state, the data processing request can be allowed to be processed according to the stock resource, the preset water level resource and the data processing resource.
In other examples, after the data processing request is prohibited from being processed according to the inventory resources, the preset water level resources, and the data processing resources, the method in this embodiment may further include:
step S603: and generating a first processing result corresponding to the data processing request, wherein the first processing result is used for identifying the failure of processing the data processing request.
When the data processing request is prohibited from being processed according to the inventory resource, the preset water level resource and the data processing resource, it is indicated that normal data processing operation cannot be performed on the data processing request at this time, in order to enable a user to know a data processing state corresponding to the data processing request in time, a first processing result corresponding to the data processing request may be generated, where the first processing result is used to identify a processing failure on the data processing request, and the processing failure on the data processing request may include that the data processing request is not processed.
In the embodiment, the running state corresponding to the inventory resource is obtained, and then whether the data processing request is processed according to the inventory resource, the preset water level resource and the data processing resource is judged based on the running state, so that the accuracy and the reliability of processing the data processing request are effectively ensured.
On the basis of any one of the foregoing embodiments, the present embodiment provides a manner that can achieve generating a processing result corresponding to a data processing request, and specifically, the processing the data processing request according to the inventory resource, the preset water level resource and the data processing resource in this embodiment to generate the processing result corresponding to the data processing request may include:
and S701, when the available inventory resources after the inventory resources are deducted from the preset water level resources are greater than or equal to the data processing resources, performing resource pre-deduction operation based on the data processing resources and the inventory resources, generating a resource production request corresponding to the data processing request, and generating a processing result corresponding to the resource production request through a resource side server.
After the inventory resource and the preset water level resource are obtained, the inventory resource may be used to deduct the preset water level resource, so as to obtain an available inventory resource, and then the available inventory resource is analyzed and compared with the data processing resource, when the available inventory resource is greater than or equal to the data processing resource, it indicates that the data processing device at this time can theoretically meet and implement data processing operation based on a data processing request, at this time, resource deduction operation may be performed based on the data processing resource and the inventory resource, specifically, performing resource deduction operation based on the data processing resource and the inventory resource may include: and deducting the data processing resources from the stock resources to obtain the deducted stock resources, wherein the deducted stock resources are used for processing other data processing requests.
It is understood that the other data processing request may refer to a data processing request for the same data processing object acquired at the next time. In order to ensure the accuracy and reliability of processing other data processing requests, the subtracted inventory resources may be used for analysis processing, that is, the inventory resources are used for subtracting the data processing resources.
In addition, when the available inventory resource is greater than or equal to the data processing resource, a resource production request corresponding to the data processing request may be generated, where the resource production request is used to analyze and process the resource production request through the resource-side server, specifically, after the resource production request is obtained, the resource production request may be sent to the resource-side server, and after the resource-side server obtains the resource production request, the corresponding data processing operation may be performed through the resource production request, so that a processing result corresponding to the resource production request may be generated.
For example, the resource-side server includes 100 inventory resources, and the resource-side server may synchronize the included inventory resources to the first server, and specifically, may store the inventory resources in a database in the first server. After the data processing request is obtained, it may be determined that the data processing resource corresponding to the data processing request is 12, and then 12 corresponding data processing resources may be allocated to the data processing request through the resource-side server, at this time, in order to ensure that the data processing device can analyze and process the data processing request and other data processing requests, a resource pre-deduction operation may be performed on the data processing resource in the inventory resource, at this time, the data processing resources stored in the inventory resource may include 100 to 12 to 88 data processing resources (that is, the inventory resource after deduction), so as to perform accurate data processing operation on other data processing requests based on the inventory resource after the resource pre-deduction operation is performed.
In some examples, in order to ensure the quality and efficiency of the analysis processing for the next data processing request or other data processing requests, the subtracted inventory resources may be compared with the preset water level resources to determine whether normal data processing operations can be performed according to the comparison result. Specifically, after generating the resource production request corresponding to the data processing request, the method in this embodiment may further include: when the deducted stock resources are greater than or equal to the preset water level resources, allowing to obtain other data processing requests; or when the deducted stock resources are smaller than the preset water level resources, forbidding to acquire other data processing requests.
After the preset water level resource and the deducted inventory resource are obtained, the preset water level resource and the deducted inventory resource may be analyzed and compared, and when the deducted inventory resource is greater than or equal to the preset water level resource, it is indicated that sufficient resources for performing data processing operations on other data processing requests are stored in the resource-side server, so that the other data processing requests are allowed to be obtained. When the subtracted inventory resources are smaller than the preset water level resources, it is indicated that the resources stored in the resource side server are few, and normal data processing operation cannot be guaranteed, so that acquisition of other data processing requests may be prohibited.
In this embodiment, after a resource production request corresponding to the data processing request is generated, the quality and efficiency of data processing operations are effectively achieved by analyzing and comparing the subtracted resources with preset water level resources, and specifically, when the subtracted inventory resources are greater than or equal to the preset water level resources, other data processing requests are allowed to be acquired, so that the first server can perform corresponding coarse-grained data operations based on the other data processing requests; and when the subtracted stock resources are smaller than the preset water level resources, prohibiting other data processing requests from being acquired, so that the first server does not need to perform corresponding data processing operation, and the probability of invalid data operation is reduced.
In some examples, generating, by the resource-side server, the processing result corresponding to the resource production request may include: and acquiring the actual resource of the resource side corresponding to the resource production request, and generating a second processing result corresponding to the resource production request through the resource side server when the actual resource of the resource side is greater than or equal to the data processing resource, wherein the second processing result is used for identifying the successful processing of the data processing request. In addition, after the second processing result is obtained, corresponding data can be fed back/produced to the user, so that the user can quickly and timely obtain desired data, for example: after the second processing result is obtained, an operation of delivering the virtual commodity can be performed to the user, so that the user can quickly and timely obtain the desired virtual commodity and the like.
And when the actual resource on the resource side is smaller than the data processing resource, generating a first processing result corresponding to the resource production request. In some examples, when the resource-side actual resource is smaller than the data processing resource, the method may further include: and prohibiting the resource side server from processing the resource production request.
In particular, the resource-side server is connected in communication with the data processing device, in which the resource-side actual resource for performing the data processing delivery or production operation is stored, after the resource production request is obtained, the resource side actual resource corresponding to the resource production request can be obtained, and then the resource side actual resource can be analyzed and compared with the data processing resource, when the actual resource on the resource side is greater than or equal to the data processing resource, it means that the resource side server at this time stores sufficient resource delivery operation or resource production operation, so the resource side server can be continuously utilized to process the resource production request, the resource-side server may then generate a second processing result corresponding to the resource-production request, the second processing result identifying successful processing of the data-processing request. When the actual resource on the resource side is smaller than the data processing resource, it indicates that the actual resource on the resource side stored in the resource side server at this time cannot implement the resource delivery operation or the resource production operation, and therefore, a first processing result corresponding to the resource production request may be generated, where the first processing result is used to identify that the processing on the data processing request fails.
And step S702, when the inventory resource is smaller than the data processing resource, forbidding to process the data processing request and generating a first processing result corresponding to the data processing request, wherein the first processing result is used for identifying the failure of processing the data processing request.
When the inventory resource is smaller than the data processing resource, it indicates that the data processing device at this time cannot theoretically satisfy the data processing operation corresponding to the data processing request, and further may prohibit processing the data processing request.
In some examples, when the actual resource on the resource side is smaller than the data processing resource, the method in this embodiment may further include: and identifying the running state of the inventory resource as an abnormal state.
When the inventory resource is greater than or equal to the data processing resource and the actual resource on the resource side is smaller than the data processing resource, it is indicated that a deviation exists between the results of analyzing and processing the inventory resource and the data processing resource, that is, it is determined that the running state of the inventory resource is abnormal, and further the running state of the inventory resource can be identified as an abnormal state, so that the first server can know the running state of the inventory resource in time through the running state identification of the inventory resource conveniently, and the quality and the efficiency of the data processing method are further ensured.
FIG. 8 is a flowchart illustrating another data processing method according to an embodiment of the present invention; on the basis of the foregoing embodiment, with continuing reference to fig. 8, after identifying the running state of the inventory resource as an abnormal state, the method in this embodiment may further include:
step S801: and acquiring a data processing request corresponding to the inventory resource within a preset time period.
Step S802: a first processing result corresponding to the data processing request is generated based on the abnormal state of the inventory resource.
Wherein the preset time period is positively correlated with the calculation delay of the inventory resources. In order to accurately obtain the preset time period, the calculation delay with the inventory resource may be obtained, and then the preset time period may be determined based on the calculation delay with the inventory resource. After the predetermined time period is determined, the data processing requests corresponding to the inventory resources may be counted for the predetermined time period. After the data processing request corresponding to the inventory resource is acquired, a first processing result corresponding to the data processing request can be directly generated based on the abnormal state of the inventory resource, and the first processing result is used for identifying the processing failure of the data processing request.
For example, the preset time period may be 2min, after the running state of the inventory resource is identified as an abnormal state, all the data processing requests corresponding to the inventory resource within 2min may be obtained, because the running state of the inventory resource is an abnormal state, the data processing requests cannot be accurately analyzed and processed by the inventory resource, and in order to ensure the quality and efficiency of processing the data processing requests, a first processing result corresponding to the data processing requests may be directly generated, where the first processing result is used to identify that the data processing requests are failed to be processed.
FIG. 9 is a flowchart illustrating another data processing method according to an embodiment of the present invention; on the basis of the foregoing embodiment, with continuing reference to fig. 9, after generating the first processing result corresponding to the data processing request, the method in this implementation may further include:
step S901: data payment resources required for generating the data processing request are determined.
Step S902: and performing resource returning operation on the data payment resource.
After the first processing result corresponding to the data processing request is generated, it indicates that the corresponding data processing operation is not performed on the data processing request or the corresponding data processing operation is not successfully performed on the data processing request. Therefore, in order to reduce the user loss, a data payment resource required for generating the data processing request may be determined, and specifically, the data payment resource may refer to a payment fee, a payment credit or other data resource paid, and the like. After the data payment resource is acquired, the resource returning operation can be performed on the data payment resource, so that the resource returning operation can be performed in time when the data processing request is failed to be processed, and the good experience of a user is further ensured.
In some examples, after generating the first processing result corresponding to the data processing request, the method in this embodiment may further include: and determining recommendation information corresponding to the data processing request based on the first processing result, and displaying the recommendation information.
When the first processing result corresponding to the data processing request is generated, it is indicated that the data processing request fails at this time, and in order to ensure good experience of the user, recommendation information corresponding to the data processing request may be determined based on the first processing result, and then the recommendation information is displayed, so that the user may quickly and accurately reestablish the data processing request, and the flexibility and reliability of the method are further improved.
For example, after the user sends a data processing request to the data object 1, if a first processing result corresponding to the data processing request is generated, a recommended data object corresponding to the data object 1 may be generated according to a preset recommendation policy, the recommended data object is similar to the data object 1, and the number of the recommended data objects may be one or more. After the recommended data object is obtained, recommended information corresponding to the data processing request may be generated based on the recommended data object, and then the recommended information may be displayed, so that the user may generate a new data processing request through the recommended information.
Fig. 10 is a schematic flowchart of a data processing method according to an embodiment of the present invention; on the basis of the foregoing embodiment, with continued reference to fig. 10, after generating the first processing result corresponding to the data processing request, the method in this embodiment may further include:
step S1001: a degree of inventory breakdown corresponding to the first processing result is determined.
Step S1002: and when the inventory breakdown degree is greater than or equal to the preset degree, generating alarm information corresponding to the first processing result.
In order to improve the quality and efficiency of data processing, after the first processing result is obtained, the inventory breakdown degree corresponding to the first processing result may be determined, and it may be understood that the inventory breakdown degree may be related to a first difference between the preset water level resource and the data processing resource and/or a second difference between the inventory resource and the data processing resource. Therefore, the inventory breakdown degree corresponding to the first processing result can be determined by the first difference value and/or the second difference value acquired as described above.
After the inventory breakdown degree corresponding to the first processing result is obtained, the inventory breakdown degree can be analyzed and compared with a preset degree, when the inventory breakdown degree is greater than or equal to the preset degree, the inventory breakdown degree corresponding to the data processing request is relatively serious, and then the warning information corresponding to the first processing result can be generated.
In this embodiment, after the first processing result corresponding to the data processing request is generated, by determining the inventory breakdown degree corresponding to the first processing result, when the inventory breakdown degree is greater than or equal to the preset degree, the warning information corresponding to the first processing result is generated, so that a user can perform maintenance and adjustment operations on the data processing apparatus based on the generated warning information, so as to ensure the quality and efficiency of the next analysis processing on the data processing request.
On the basis of any of the foregoing embodiments, with continued reference to fig. 11, after generating the first processing result corresponding to the data processing request, the method in this embodiment may further include:
step S1101: and determining a data processing object corresponding to the first processing result.
Step S1102: and acquiring data release information corresponding to the data processing object.
Step S1103: and stopping issuing the data issuing information.
When the first processing result corresponding to the data processing request is generated, it indicates that the inventory resource or the preset water level resource at this time cannot perform a normal data processing operation on the data processing request, that is, because the inventory resource is less or zero, the data processing request cannot be performed with a normal data processing operation, so that the processing operation for the data processing request fails.
It should be noted that, after the first processing result corresponding to the data processing request is generated, if the information about the data processing object corresponding to the data processing request continues to be issued, the data processing apparatus may further receive the data processing request for the data processing object, however, since the stock resource and the preset water level resource cannot guarantee normal data processing operation, the data processing apparatus may also not perform normal processing operation on the received data processing request.
In order to avoid receiving a data processing request that cannot perform normal data processing operations, after generating a first processing result corresponding to the data processing request, a data processing object corresponding to the first processing result may be determined, after acquiring the data processing object, data distribution information corresponding to the data processing object may be determined using a correspondence between the data processing object and the data distribution information, and after acquiring the data distribution information, distribution of the data distribution information may be stopped.
For example, when the data processing object is a commodity to be traded, the data distribution information may be commodity distribution information, and then the data distribution information may be stopped from being distributed, that is, the commodity is prohibited from being sold, so that the user cannot purchase the commodity which is stopped from being sold, that is, the data processing device cannot acquire the data processing request for the data processing object. When the data processing object is an article to be queried, the data publishing information may be article publishing information, and then publishing of the data publishing information may be stopped, that is, publishing of the article publishing information may be stopped, so that a user cannot perform a query operation on the article which is stopped to be published, that is, the data processing apparatus cannot obtain an article query request for the data processing object.
In this embodiment, after the first processing result corresponding to the data processing request is generated, the data processing object corresponding to the first processing result is determined, the data publishing information corresponding to the data processing object is acquired, and publishing of the data publishing information is stopped, so that the user cannot see the data publishing information corresponding to the data processing object, and further cannot generate the data processing request corresponding to the data processing object, thereby effectively avoiding the occurrence of the situation that normal data processing operation cannot be performed on the data processing request due to the fact that the data publishing operation of less or zero stock data acquires the data processing request, and further improving the flexible reliability of the method.
In specific application, referring to fig. 13, an execution subject of the data processing method may be a data processing system, and as shown in fig. 12, the data processing system may include a first server (a server for performing a communication connection with a second server to implement a data processing operation), a second server (hereinafter referred to as an resource-side server), a presentation module, a data module, and the like. When the data processing system executes the data processing method, the corresponding data processing operation can be carried out in various modes such as inventory cache deduction, a small amount of water level reservation, breakdown fast refund, cache silent hemostasis, inventory delay optimization, supply interruption recommendation and the like, so that the probability of inventory breakdown is reduced, fast hemostasis operation can be realized when the inventory breakdown occurs, and different use requirements of users are met. In particular, the data processing system may perform the following steps:
and the first server is used for generating and acquiring the data processing request and carrying out inventory verification operation based on the data preprocessing request.
In addition, after the inventory query operation is performed, if the available inventory resource after the inventory resource subtracts the preset water level resource is zero, the zero memory notification information sent by the first server may be received by the control module, and at this time, the control module may perform a corresponding outage recommendation operation based on the zero memory notification information.
Specifically, the first server may include a database DB, in which a preset water level resource and an inventory resource are pre-stored, after the data processing request is obtained, the inventory resource may be subtracted from the preset water level resource to obtain an available inventory resource after subtraction, the data processing resource and the available inventory resource are analyzed and compared, and when the available inventory resource is greater than or equal to the data processing resource, a resource pre-subtraction operation may be performed on the data processing resource in the inventory resource; when the available inventory resources are smaller than the data processing resources, the data processing request is prohibited from being processed, so that the request intercepting operation is effectively realized when the inventory resources cannot meet the data processing requirements. After the resource pre-deduction operation is carried out, a resource production request corresponding to the data processing request can be generated, so that a processing result corresponding to the resource production request can be generated through the resource side server.
It should be noted that, for the preset water level resource, the water level model in the first server may be used for calculation and generation, specifically, the water level model may be generated by performing learning training on data such as stock check data, order related data, virtual machine and user information, region/available region information, and the like, where the data such as the stock check data, the order related data, the virtual machine and user information, the region/available region information, and the like may be acquired through the acquired log information. It should be noted that different available areas may correspond to different user information, and an available area refers to a physical area where power and a network are independent from each other in the same area, and network delay between instances located in the same available area is smaller.
After the inventory verification data, the order related data, the virtual machine and user information and the region/available region information are obtained, the information can be analyzed and processed by a pre-established water level model, so that the preset water level resource can be obtained. It is understood that the preset water level resource may be a value that changes with time.
For example, within a historical 1-month time period, a plurality of historical request concurrency amounts corresponding to the data object are acquired through log information, after the plurality of historical request concurrency amounts are acquired, the plurality of historical request concurrency amounts can be sequenced, so that concurrency amount sequencing information can be acquired, and after the concurrency amount sequencing information is acquired, a sequencing position identifier corresponding to a preset water level resource can be acquired; then, based on the concurrency quantity sequencing information, determining the historical request concurrency quantity corresponding to the sequencing position identifier (such as a 95-quantile value or a 99-quantile value) as a preset water level resource, and when the data resource in the data processing device is lower than the preset water level resource, controlling other clients not to see the data resource in the data processing device, namely, the data processing device cannot perform normal data processing operation, thereby effectively ensuring the accuracy and reliability of determining the preset water level resource.
In addition, for the stock resources stored in the first server, regular updating operation can be carried out along with synchronous data processing tasks of the stock so as to ensure the accuracy and reliability of the data processing operation.
The first server can effectively play a role of buffering the cache invalidation/mutual influence of stocks with different specifications by ensuring a certain water level reserved resource, and can trigger a quick refund operation in time if the stock breaks through the reserved water level if the stock is found to be insufficient after the number corresponding to the data processing request and the production request are issued to the resource side, thereby effectively reducing the influence on the user; and after the refund is triggered, the silent mark record of the inventory resources in the database is recorded, so that the operation of verifying the data processing resources by utilizing the inventory resources is silent for X minutes (related to the delay time of inventory calculation), namely, the data processing request is intercepted, the data processing request is guided to the outage recommendation, other examples are guided to be purchased, and the good experience of the user is further improved.
And the resource side server is in communication connection with the first server and is used for acquiring the resource production request and generating a processing result corresponding to the resource production request. Specifically, the generating, by the resource-side server, the processing result corresponding to the resource production request may include: when the actual resource of the resource side is greater than or equal to the data processing resource, generating a second processing result corresponding to the resource production request through the resource side server, wherein the second processing result is used for identifying that the data processing request is successfully processed; and when the actual resource on the resource side is smaller than the data processing resource, generating a first processing result corresponding to the resource production request.
In addition, the resource side server may obtain all data resources corresponding to the virtual machine, and perform resource scheduling and allocation operations on the data resources. In addition, the resource side server can also perform updating operation on the data resource at regular time, and synchronously update the stock resource after the updating operation to the first server.
Specifically, the resource side server may receive the data production request issued by the first server, and then allocate the corresponding data resource based on the data production request, and when the data processing apparatus has the data resource, may return an identifier indicating that the data processing operation is successful, and if the data processing apparatus does not have the data resource, return information indicating that the resource is insufficient.
In the embodiment, the method can realize the combination of various modes of inventory deduction, small amount of water level reservation, breakdown fast refund, cache silent hemostasis and supply interruption recommendation, greatly reduces the resource cost while meeting the user requirements, effectively improves the quality and efficiency of data processing,
and the display module is used for acquiring and displaying the log information and displaying the generated data processing result and the alarm information.
The data processing system provided by the application embodiment can perform pre-deduction operation on the inventory resources based on the data processing request, and effectively realize data processing operation through pre-occupied resources, thereby effectively avoiding the occurrence of inventory breakdown and ensuring the quality and efficiency of data processing.
Specifically, the data processing method may include the steps of:
step 1: and generating and acquiring a data processing request.
Wherein the data processing request may include at least one of: and issuing an order processing request and initiating an inventory verification request before payment.
Step 2: the inventory quiet identification information is checked based on the data processing request.
The stock silence identification information may be checked before executing the order/payment operation corresponding to the data processing request, for example: when the stock silent mark caching information is 'N', the stock resource is in a normal state; when the stock silence flag cache information is "Y", it indicates that the stock resource is in an abnormal state.
And step 3: when the inventory resources are in a preset normal state, the inventory resources, the preset water level resources and the data processing resources can be utilized for analysis and matching.
Specifically, when the available inventory resource after the inventory resource deduction of the preset water level resource is greater than or equal to the data processing resource, the inventory verification is passed, at this time, the data processing request can be released, the resource deduction operation is performed on the data processing resource in the inventory resource, a resource production request corresponding to the data processing request is generated, and the resource production request is sent to the resource side server, so that the corresponding data processing operation is performed on the data processing request. And when the available inventory resources after the inventory resources minus the preset water level resources are smaller than the data processing resources, forbidding processing on the data processing request and generating a first processing result corresponding to the data processing request.
And 4, step 4: and the resource side server performs data processing operation based on the resource production request.
Analyzing and matching the actual resource of the resource side with the data processing resource, and generating a second processing result corresponding to the resource production request through the resource side server when the actual resource of the resource side is greater than or equal to the data processing resource, wherein the second processing result is used for identifying the successful processing of the data processing request; when the actual resource on the resource side is smaller than the data processing resource, it indicates that the resource on the resource side is insufficient, so that the water level resource is already exhausted, and a first processing result corresponding to the resource production request can be generated.
And 5: after generating a first processing result corresponding to the resource production request, determining data payment resources required for generating the data processing request; and performing resource returning operation on the data payment resource.
Specifically, when the actual resource on the resource side is smaller than the data processing resource, it indicates that the resource in the virtual machine is insufficient, so that when the resource in the resource side server is insufficient, a fast refund operation can be performed, and good experience of the user is ensured.
Step 6: when the actual resource on the resource side is smaller than the data processing resource, the running state of the stock resource can be identified as an abnormal state.
Specifically, when the historical operating state of the inventory resource is a normal state, the available inventory resource after the inventory resource minus the preset water level resource is greater than or equal to the data processing resource, and the actual resource on the resource side is smaller than the data processing resource, the operating state of the inventory resource may be identified from the normal state to an abnormal state.
And 7: after the first processing result corresponding to the data processing request is generated, the recommendation information corresponding to the data processing request can be determined based on the first processing result and displayed, so that the outage recommendation operation is realized, and the new data processing request is facilitated.
And 8: after generating a first processing result corresponding to the data processing request, a degree of inventory breakdown corresponding to the first processing result may be determined; and when the inventory breakdown degree is greater than or equal to the preset degree, generating alarm information corresponding to the first processing result.
Specifically, the inventory breakdown degree and the alarm information corresponding to the first processing result can be displayed through the display module, so that the inventory breakdown degree of the data processing request can be obtained by the operation and maintenance personnel intuitively and seriously through the display module, and the operation and maintenance personnel can be informed of manual intervention in time through the alarm information, so that the quality and the efficiency of data processing are ensured.
The data processing method provided by the application embodiment can effectively solve the problems that the inventory is punctured by ordering production operation when a user performs the same specification creation/transformation and distribution/startup shutdown non-charging instance through API concurrency/batch, and the inventory is punctured when multiple users concurrently purchase the same specification instance. In addition, the method can be suitable for most application scenes, particularly, the filtering (releasing with the inventory, failing to return without the inventory and leading to the supply interruption recommendation) operation of the data processing request can be carried out through the inventory verification, the situation that the concurrent/batch scenes are punctured is effectively prevented by deduction when the inventory is low, and when an extreme scene occurs, if water level resources are punctured, the rapid refund can be carried out, the inventory mark is silenced, and the verification of a new request is prevented from passing; in addition, the inventory data in the first server in the embodiment can be closer to the real inventory, so that the probability of inventory breakdown is reduced from the source; when the data processing operation cannot guarantee the corresponding data processing operation on the data processing request, the method leads to the supply-interruption recommendation operation, namely, the actual requirements of the user can be met through the recommendation operation of similar products, and therefore the practicability of the method is guaranteed.
In summary, the data processing method combines various modes such as inventory deduction, small amount of water level reservation, breakdown fast refund, cache silent hemostasis and supply interruption recommendation to reduce the probability of inventory breakdown, even avoid the scene of inventory breakdown, and fast hemostasis is performed when the inventory breakdown occurs, so that different requirements of users are met, the aim of inventory breakdown is effectively prevented, and the stability and the reliability of the method are further improved.
Fig. 14 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention; referring to fig. 14, the present embodiment provides a data processing apparatus, which can execute the data processing method shown in fig. 1, and specifically, the data processing apparatus can include:
an obtaining module 11, configured to obtain a data processing request and a data processing resource corresponding to the data processing request;
a determining module 12, configured to determine an inventory resource and a preset water level resource corresponding to the data processing request;
and the processing module 13 is configured to process the data processing request according to the inventory resource, the preset water level resource and the data processing resource to generate a processing result corresponding to the data processing request.
In some examples, in determining the inventory resources and the pre-set level resources corresponding to the data processing request, the determination module 12 may be configured to perform: acquiring a data processing object corresponding to the data processing request; and determining the stock resource and the preset water level resource based on the data processing object.
In some examples, in determining the inventory resources and the pre-set water level resources based on the data processing object, the determination module 12 may be configured to perform: acquiring an object identity corresponding to a data processing object; and acquiring stock resources and preset water level resources in the database based on the object identity.
In some examples, before acquiring the inventory resource and the preset water level resource in the database based on the object identifier, the acquiring module 11, the determining module 12, and the processing module 13 in this embodiment may be configured to perform the following steps:
an obtaining module 11, configured to obtain, in a preset time period, multiple history request concurrency amounts corresponding to the object identity;
the determining module 12 is configured to determine a preset water level resource corresponding to the object identifier according to the multiple historical request concurrency quantities;
and the processing module 13 is configured to store the preset water level resource in the database.
In some examples, when determining the preset water level resource corresponding to the object identifier according to the plurality of historical request concurrency amounts, the determining module 12 may be configured to perform: determining abnormal concurrency quantity included in the historical request concurrency quantity; removing abnormal concurrency quantity, and sequencing historical request concurrency quantity to obtain concurrency quantity sequencing information; and determining a preset water level resource corresponding to the object identity identification based on the concurrency quantity sequencing information.
In some instances, in determining the amount of anomalous concurrency included in the historical amount of request concurrency, the determination module 12 may be operable to perform: analyzing and comparing the historical request concurrency amount with a concurrency amount threshold value; and when the historical request concurrency amount is larger than the concurrency amount threshold value, determining the historical request concurrency amount as an abnormal concurrency amount.
In some examples, when determining the preset watermark resource corresponding to the object identifier based on the concurrency level ordering information, the determining module 12 may be configured to perform: acquiring a sequencing position identifier corresponding to a preset water level resource; and determining a plurality of historical request concurrency quantities corresponding to the sequencing position identifications as preset water level resources based on the concurrency quantity sequencing information.
In some examples, in determining the inventory resource and the preset level resource corresponding to the data processing request, the determining module 12 may be configured to: acquiring an operating state corresponding to the inventory resource; and judging whether the data processing request is processed according to the inventory resource, the preset water level resource and the data processing resource or not based on the running state.
In some examples, in obtaining the operating status corresponding to the inventory resource, the determination module 12 may be configured to: acquiring identification information for identifying the running state of the inventory resources; based on the identification information, an operational state corresponding to the inventory resource is determined.
In some examples, in determining an operational state corresponding to the inventory resource based on the identification information, the determination module 12 may be operable to perform: when the identification information is a preset identification for identifying that the stock resource is in an abnormal state, determining that the running state corresponding to the stock resource is in the abnormal state; or when the identification information is not a preset identification or does not exist, determining that the running state corresponding to the inventory resource is a normal state.
In some examples, when determining whether to process the data processing request according to the inventory resource, the preset water level resource and the data processing resource based on the operation status, the determining module 12 may be configured to perform: when the running state is an abnormal state, forbidding processing on the data processing request according to the inventory resources, the preset water level resources and the data processing resources; and when the operation state is a normal state, the data processing request is allowed to be processed according to the inventory resource, the preset water level resource and the data processing resource.
In some examples, after the data processing request is prohibited from being processed according to the inventory resource, the preset water level resource and the data processing resource, the processing module 13 in this embodiment may be configured to perform the following steps: and generating a first processing result corresponding to the data processing request, wherein the first processing result is used for identifying the failure of processing the data processing request.
In some examples, when the data processing request is processed according to the inventory resource, the preset water level resource and the data processing resource to generate a processing result corresponding to the data processing request, the processing module 13 may be configured to perform: when the available inventory resources after the inventory resources are deducted from the preset water level resources are greater than or equal to the data processing resources, performing resource pre-deduction operation based on the data processing resources and the inventory resources, and generating a resource production request corresponding to the data processing request so as to generate a processing result corresponding to the resource production request through a resource side server; or when the available inventory resources after deducting the preset water level resources are smaller than the data processing resources, generating a first processing result corresponding to the data processing request, wherein the first processing result is used for identifying the processing failure of the data processing request.
In some examples, in performing a resource pre-deduction operation based on the data processing resource and the inventory resource, the processing module 13 may be configured to perform: and deducting the data processing resources from the stock resources to obtain the deducted stock resources, wherein the deducted stock resources are used for processing other data processing requests.
In some examples, after generating the resource production request corresponding to the data processing request, the processing module 13 may be configured to perform: when the deducted stock resources are greater than or equal to the preset water level resources, allowing to obtain other data processing requests; or when the deducted stock resources are smaller than the preset water level resources, forbidding to acquire other data processing requests.
In some examples, when the processing result corresponding to the resource production request is generated by the resource-side server, the processing module 13 may be configured to perform: acquiring a resource side actual resource corresponding to the resource production request; when the actual resource of the resource side is greater than or equal to the data processing resource, generating a second processing result corresponding to the resource production request through the resource side server, wherein the second processing result is used for identifying that the data processing request is successfully processed; and when the actual resource of the resource side is smaller than the data processing resource, the resource side server is prohibited from processing the resource production request, and a first processing result corresponding to the resource production request is generated.
In some examples, when the resource-side actual resource is smaller than the data processing resource, the processing module 13 may be configured to perform: and prohibiting the resource side server from processing the resource production request.
In some examples, when the actual resource on the resource side is smaller than the data processing resource, the processing module 13 in this embodiment may be configured to perform: and identifying the running state of the stock resource as an abnormal state.
In some examples, after identifying the running status of the inventory resource as an abnormal status, the obtaining module 11 and the processing module 13 in this embodiment may be configured to perform the following steps:
the acquisition module 11 is configured to acquire a data processing request corresponding to an inventory resource within a preset time period;
and the processing module 13 is configured to generate a first processing result corresponding to the data processing request based on the abnormal state of the inventory resource.
In some examples, the predetermined time period is positively correlated to the calculated delay of the inventory resource.
In some examples, after generating the first processing result corresponding to the data processing request, the processing module 13 in this embodiment may be configured to perform the following steps: determining data payment resources required for generating a data processing request; and performing resource returning operation on the data payment resource.
In some examples, after generating the first processing result corresponding to the data processing request, the processing module 13 in this embodiment may be configured to perform the following steps: and determining recommendation information corresponding to the data processing request based on the first processing result, and displaying the recommendation information.
In some examples, after generating the first processing result corresponding to the data processing request, the processing module 13 in this embodiment may be configured to perform the following steps: determining an inventory breakdown degree corresponding to the first processing result; and when the inventory breakdown degree is greater than or equal to the preset degree, generating alarm information corresponding to the first processing result.
In some examples, after generating the first processing result corresponding to the data processing request, the processing module 13 in this embodiment may be configured to perform the following steps: determining a data processing object corresponding to the first processing result; acquiring data release information corresponding to the data processing object; and stopping issuing the data issuing information.
In some examples, the inventory resources include virtual machine inventory resources corresponding to virtual machines.
The apparatus shown in fig. 14 can perform the method of the embodiment shown in fig. 1-13, and the detailed description of this embodiment can refer to the related description of the embodiment shown in fig. 1-13. The implementation process and technical effect of the technical solution refer to the descriptions in the embodiments shown in fig. 1 to 13, and are not described herein again.
In one possible design, the structure of the data processing apparatus shown in fig. 14 may be implemented as an electronic device, which may be a mobile phone, a tablet computer, a server, or other devices. As shown in fig. 15, the electronic device may include: a first processor 21 and a first memory 22. Wherein the first memory 22 is used for storing programs for corresponding electronic devices to execute the data processing methods provided in the embodiments shown in fig. 1-13, and the first processor 21 is configured for executing the programs stored in the first memory 22.
The program comprises one or more computer instructions, wherein the one or more computer instructions, when executed by the first processor 21, are capable of performing the steps of:
acquiring a data processing request and a data processing resource corresponding to the data processing request;
determining inventory resources and preset water level resources corresponding to the data processing request;
and processing the data processing request according to the inventory resource, the preset water level resource and the data processing resource to generate a processing result corresponding to the data processing request.
Further, the first processor 21 is also used to execute all or part of the steps in the embodiments shown in fig. 1-13.
The electronic device may further include a first communication interface 23 for communicating with other devices or a communication network.
In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions for an electronic device, which includes a program for executing the data processing method in the method embodiments shown in fig. 1 to 13.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment may be implemented by a necessary general hardware platform, and may also be implemented by a combination of hardware and software. With this understanding in mind, the above-described aspects and portions of the present technology which contribute substantially or in part to the prior art may be embodied in the form of a computer program product, which may be embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including without limitation disk storage, CD-ROM, optical storage, and the like.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (26)

1. A method of data processing, comprising:
acquiring a data processing request and a data processing resource corresponding to the data processing request;
determining inventory resources and preset water level resources corresponding to the data processing request, wherein the preset water level resources refer to pre-reserved resource limit values for marking the data processing resources as zero inventory;
processing the data processing request according to the inventory resource, a preset water level resource and a data processing resource to generate a processing result corresponding to the data processing request;
processing the data processing request according to the inventory resource, the preset water level resource and the data processing resource to generate a processing result corresponding to the data processing request, wherein the processing result comprises the following steps:
when the available inventory resources after the inventory resources are deducted by preset water level resources are greater than or equal to the data processing resources, performing resource deduction operation based on the data processing resources and the inventory resources, and generating a resource production request corresponding to the data processing request so as to generate a processing result corresponding to the resource production request through a resource side server; alternatively, the first and second electrodes may be,
and when the available stock resource after the stock resource minus the preset water level resource is smaller than the data processing resource, forbidding processing on the data processing request, and generating a first processing result corresponding to the data processing request, wherein the first processing result is used for identifying the processing failure of the data processing request.
2. The method of claim 1, wherein determining inventory resources and pre-set water level resources corresponding to the data processing request comprises:
acquiring a data processing object corresponding to the data processing request;
and determining the stock resource and the preset water level resource based on the data processing object.
3. The method of claim 2, wherein determining the inventory resources and the pre-set water level resources based on the data processing object comprises:
acquiring an object identity corresponding to the data processing object;
and acquiring the stock resources and the preset water level resources in a database based on the object identity.
4. The method of claim 3, wherein before obtaining the inventory resources and the pre-set water level resources in a database based on the object identity, the method further comprises:
acquiring a plurality of historical request concurrency quantities corresponding to the object identity identifiers in a preset time period;
determining preset water level resources corresponding to the object identity identification according to the multiple historical request concurrency quantities;
and storing the preset water level resource in the database.
5. The method of claim 4, wherein determining the preset water level resource corresponding to the object identifier according to the plurality of historical request concurrency amounts comprises:
determining an abnormal concurrency amount included in the historical request concurrency amount;
removing the abnormal concurrency quantity, and sequencing the historical request concurrency quantity to obtain concurrency quantity sequencing information;
and determining a preset water level resource corresponding to the object identity identification based on the concurrency quantity sequencing information.
6. The method of claim 5, wherein determining the amount of exceptional concurrency included in the historical amount of request concurrency comprises:
analyzing and comparing the historical request concurrency amount with a concurrency amount threshold value;
and when the historical request concurrency amount is larger than the concurrency amount threshold, determining the historical request concurrency amount as the abnormal concurrency amount.
7. The method of claim 5, wherein determining the preset water level resource corresponding to the object identifier based on the concurrency level ranking information comprises:
acquiring a sequencing position identifier corresponding to the preset water level resource;
and determining a plurality of historical request concurrency quantities corresponding to the sequencing position identifications as the preset water level resource based on the concurrency quantity sequencing information.
8. The method according to any one of claims 1-7, wherein determining inventory resources and pre-set water level resources corresponding to the data processing request comprises:
acquiring an operating state corresponding to the inventory resource;
and judging whether the data processing request is processed according to the inventory resources, the preset water level resources and the data processing resources or not based on the running state.
9. The method of claim 8, wherein obtaining an operational status corresponding to the inventory resource comprises:
acquiring identification information for identifying the running state of the inventory resource;
determining an operating state corresponding to the inventory resource based on the identification information.
10. The method of claim 9, wherein determining an operational status corresponding to the inventory resource based on the identification information comprises:
when the identification information is a preset identification for identifying that the stock resource is in an abnormal state, determining that the running state corresponding to the stock resource is in the abnormal state; alternatively, the first and second electrodes may be,
and when the identification information is not the preset identification, determining that the running state corresponding to the inventory resource is a normal state.
11. The method of claim 8, wherein determining whether to process the data processing request according to the inventory resources, pre-set water level resources, and data processing resources based on the operational status comprises:
when the running state is an abnormal state, forbidding processing on the data processing request according to the stock resource, the preset water level resource and the data processing resource;
and when the running state is a normal state, allowing the data processing request to be processed according to the stock resource, the preset water level resource and the data processing resource.
12. The method of claim 11, wherein after inhibiting processing of the data processing request based on the inventory resources, pre-defined water level resources, and data processing resources, the method further comprises:
and generating a first processing result corresponding to the data processing request, wherein the first processing result is used for identifying the failure of processing the data processing request.
13. The method of claim 1, wherein performing a resource pre-deduction operation based on the data processing resource and the inventory resource comprises:
and deducting the data processing resources from the stock resources to obtain the deducted stock resources, wherein the deducted stock resources are used for processing other data processing requests.
14. The method of claim 13, wherein after generating a resource production request corresponding to the data processing request, the method further comprises:
when the deducted stock resources are greater than or equal to the preset water level resources, allowing to obtain other data processing requests; alternatively, the first and second electrodes may be,
and when the deducted stock resources are smaller than the preset water level resources, forbidding to acquire other data processing requests.
15. The method of claim 1, wherein generating, by a resource-side server, a processing result corresponding to the resource-production request comprises:
acquiring a resource side actual resource corresponding to the resource production request;
when the actual resource of the resource side is greater than or equal to the data processing resource, generating a second processing result corresponding to the resource production request through a resource side server, wherein the second processing result is used for identifying that the data processing request is successfully processed;
and when the actual resource of the resource side is smaller than the data processing resource, generating a first processing result corresponding to the resource production request.
16. The method of claim 15, wherein when the resource-side real resource is smaller than the data processing resource, the method further comprises:
and prohibiting the resource side server from processing the resource production request.
17. The method of claim 15, wherein when the resource-side real resource is smaller than the data processing resource, the method further comprises:
and identifying the running state of the stock resource as an abnormal state.
18. The method of claim 17, wherein after identifying the operational status of the inventory resource as an abnormal status, the method further comprises:
acquiring a data processing request corresponding to the inventory resource within a preset time period;
and generating a first processing result corresponding to the data processing request based on the abnormal state of the stock resource.
19. The method of claim 18, wherein the predetermined time period is positively correlated to the calculated delay of the inventory resource.
20. The method of claim 1, wherein after generating the first processing result corresponding to the data processing request, the method further comprises:
determining data payment resources required for generating the data processing request;
and performing resource returning operation on the data payment resource.
21. The method of claim 1, wherein after generating the first processing result corresponding to the data processing request, the method further comprises:
and determining recommendation information corresponding to the data processing request based on the first processing result, and displaying the recommendation information.
22. The method of claim 1, wherein after generating the first processing result corresponding to the data processing request, the method further comprises:
determining an inventory breakdown level corresponding to the first processing result;
and when the inventory breakdown degree is greater than or equal to a preset degree, generating alarm information corresponding to the first processing result.
23. The method of claim 1, wherein after generating the first processing result corresponding to the data processing request, the method further comprises:
determining a data processing object corresponding to the first processing result;
acquiring data release information corresponding to the data processing object;
and stopping issuing the data issuing information.
24. The method of any of claims 1-7, wherein the inventory resources comprise virtual machine inventory resources corresponding to virtual machines.
25. A data processing apparatus, comprising:
the acquisition module is used for acquiring a data processing request and data processing resources corresponding to the data processing request;
a determining module, configured to determine an inventory resource and a preset water level resource corresponding to the data processing request, where the preset water level resource is a pre-reserved resource limit value for identifying that the data processing resource is a zero inventory;
the processing module is used for processing the data processing request according to the inventory resource, the preset water level resource and the data processing resource so as to generate a processing result corresponding to the data processing request;
the processing module is configured to: when the available stock resource after the stock resource deduction of the preset water level resource is larger than or equal to the data processing resource, performing resource deduction operation based on the data processing resource and the stock resource, and generating a resource production request corresponding to the data processing request, so as to generate a processing result corresponding to the resource production request through a resource side server; or when the available stock resource after the stock resource minus the preset water level resource is smaller than the data processing resource, forbidding to process the data processing request, and generating a first processing result corresponding to the data processing request, wherein the first processing result is used for identifying the processing failure of the data processing request.
26. An electronic device, comprising: a memory, a processor; wherein the memory is configured to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the data processing method of any one of claims 1-24.
CN202010758719.7A 2020-07-31 2020-07-31 Data processing method, device and equipment Active CN113298596B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010758719.7A CN113298596B (en) 2020-07-31 2020-07-31 Data processing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010758719.7A CN113298596B (en) 2020-07-31 2020-07-31 Data processing method, device and equipment

Publications (2)

Publication Number Publication Date
CN113298596A CN113298596A (en) 2021-08-24
CN113298596B true CN113298596B (en) 2022-05-06

Family

ID=77318176

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010758719.7A Active CN113298596B (en) 2020-07-31 2020-07-31 Data processing method, device and equipment

Country Status (1)

Country Link
CN (1) CN113298596B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105553733A (en) * 2015-12-23 2016-05-04 北京安托软件技术有限公司 Resource monitoring and management system
CN108282501A (en) * 2017-01-05 2018-07-13 阿里巴巴集团控股有限公司 A kind of Cloud Server resource information synchronous method, device and system
CN109064105A (en) * 2018-09-28 2018-12-21 阿里巴巴集团控股有限公司 A kind of resource transfers request processing method, device and electronic equipment
CN109670748A (en) * 2018-12-13 2019-04-23 中国联合网络通信集团有限公司 Inventory resource management method, device and storage medium
CN109756431A (en) * 2017-11-06 2019-05-14 阿里巴巴集团控股有限公司 Hybrid network configuration method, device, network structure and electronic equipment
CN111324622A (en) * 2020-02-20 2020-06-23 中国建设银行股份有限公司 Resource first-aid-purchase processing method, device, equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9248375B2 (en) * 2012-02-22 2016-02-02 Zynga Inc. System and method to represent a resource object in a virtual environment
CN108132958A (en) * 2016-12-01 2018-06-08 阿里巴巴集团控股有限公司 A kind of multi-level buffer data storage, inquiry, scheduling and processing method and processing device
CN110909978A (en) * 2019-10-15 2020-03-24 京东数字科技控股有限公司 Resource processing method, device, server and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105553733A (en) * 2015-12-23 2016-05-04 北京安托软件技术有限公司 Resource monitoring and management system
CN108282501A (en) * 2017-01-05 2018-07-13 阿里巴巴集团控股有限公司 A kind of Cloud Server resource information synchronous method, device and system
CN109756431A (en) * 2017-11-06 2019-05-14 阿里巴巴集团控股有限公司 Hybrid network configuration method, device, network structure and electronic equipment
CN109064105A (en) * 2018-09-28 2018-12-21 阿里巴巴集团控股有限公司 A kind of resource transfers request processing method, device and electronic equipment
CN109670748A (en) * 2018-12-13 2019-04-23 中国联合网络通信集团有限公司 Inventory resource management method, device and storage medium
CN111324622A (en) * 2020-02-20 2020-06-23 中国建设银行股份有限公司 Resource first-aid-purchase processing method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
On consistent reading of entire databases;Kwok-Wa Lam;《IEEE Transactions on Knowledge and Data Engineering》;20060430;第18卷(第4期);参见第569-572页 *
应用统计分析制定产成品库存控制办法;张俊梅;《统计与咨询》;20121031(第5期);参见第63页 *

Also Published As

Publication number Publication date
CN113298596A (en) 2021-08-24

Similar Documents

Publication Publication Date Title
TW201816692A (en) Risk identification method, client device, and risk identification system
US9189543B2 (en) Predicting service request breaches
US10063644B1 (en) Managing operation of instances
US10944581B2 (en) Increasing processing capacity of processor cores during initial program load processing
CN110163473A (en) A kind of monitoring method and equipment of Task Progress
Kravchenko et al. Evaluating the effectiveness of cloud services
CN113179222A (en) Current-limiting control method, device and equipment for hotspot data and storage medium
CN102362258A (en) Verifying virtual machines
JP2017138895A (en) Virtualization environment management system and virtualization environment management method
CN110942314A (en) Abnormal account supervision method and device
WO2012101531A1 (en) Data integrity protection in storage volumes
CN113298596B (en) Data processing method, device and equipment
CN110659898B (en) Data control method, device and storage medium
CN111737080A (en) Abnormal transaction suspicion monitoring method and device, computer equipment and storage medium
CN115099975A (en) Transaction risk control method and device, processor and electronic equipment
CN114218303B (en) Transaction data processing system, processing method, medium and equipment
CN106888244B (en) Service processing method and device
CA3170013A1 (en) Method of managing resources based on goods, device and medium
CN112685377B (en) Detection processing method, device, server and medium based on historical object data
CN106878369B (en) Service processing method and device
CN112434237A (en) Page loading method and device, electronic equipment and storage medium
CN112991041A (en) Credit line sharing method, device, terminal and storage medium based on big data
CN111427871A (en) Data processing method, device and equipment
CN112114972B (en) Data inclination prediction method and device
CN113742664B (en) Monitoring and auditing method, equipment and system

Legal Events

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

Effective date of registration: 20230523

Address after: Room 1-2-A06, Yungu Park, No. 1008 Dengcai Street, Sandun Town, Xihu District, Hangzhou City, Zhejiang Province

Patentee after: Aliyun Computing Co.,Ltd.

Address before: Box 847, four, Grand Cayman capital, Cayman Islands, UK

Patentee before: ALIBABA GROUP HOLDING Ltd.