CN111754104A - Service index execution method and system - Google Patents

Service index execution method and system Download PDF

Info

Publication number
CN111754104A
CN111754104A CN202010575893.8A CN202010575893A CN111754104A CN 111754104 A CN111754104 A CN 111754104A CN 202010575893 A CN202010575893 A CN 202010575893A CN 111754104 A CN111754104 A CN 111754104A
Authority
CN
China
Prior art keywords
index
service
business
target
service index
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010575893.8A
Other languages
Chinese (zh)
Inventor
陈哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Asset Management Co Ltd
Original Assignee
Ping An Asset Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Asset Management Co Ltd filed Critical Ping An Asset Management Co Ltd
Priority to CN202010575893.8A priority Critical patent/CN111754104A/en
Publication of CN111754104A publication Critical patent/CN111754104A/en
Pending legal-status Critical Current

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
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0639Performance analysis of employees; Performance analysis of enterprise or organisation operations
    • G06Q10/06393Score-carding, benchmarking or key performance indicator [KPI] analysis
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/06Asset management; Financial planning or analysis

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Game Theory and Decision Science (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Educational Administration (AREA)
  • Physics & Mathematics (AREA)
  • Operations Research (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Technology Law (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a business index execution method, which comprises the steps of receiving a business demand instruction for indicating to acquire a demand business index; inquiring a demand service index in a pre-configured index model based on a service demand instruction; acquiring at least one target service index corresponding to the required service index from the index model, and generating a service index dependent operation graph corresponding to the required service index, wherein the service index dependent operation graph comprises at least one service working node which comprises at least one target service index; and executing the service working node according to the service index dependence operation graph so as to call the target service index corresponding to the service working node. The invention provides a service index execution system. The embodiment of the invention can respond to complex business requirements in time and reasonably call the indexes by flattening the business indexes in the index model and scheduling the business indexes in a mode that the index model and the business indexes depend on the combination of the operation diagram, thereby having higher efficiency.

Description

Service index execution method and system
Technical Field
The embodiment of the invention relates to the field of big data, in particular to a service index execution method and a service index execution system.
Background
For various fields of financial-related investment, decision, wind control and the like, the indexes are important components in the various financial fields. Each of the above financial fields requires various indexes to quantify data in order to reflect the results of the data. The complexity of the financial system is closely related to the complexity and the coverage of financial indexes, and the wider the coverage of the financial indexes in the financial system is, the more the complexity of financial services can be supported; the more detailed the index calculation relates to, the more accurate the support can be provided in the same service, and the more favorable the result.
However, the complex index calculation is a heavy burden for the performance of the computer, especially for the index calculation corresponding to the simultaneous processing of multiple business demands by the computer. For example, complex index calculation is performed in a high-order function stack mode, the high-order functions are nested one layer by one layer, one function calls another function, and when complex index calculation is performed, calculation needs to be performed layer by layer. The computer calls the indexes in the above mode, executes complex index calculation, and has low efficiency.
Disclosure of Invention
In view of this, embodiments of the present invention provide a service index execution method, a system, a computer device, and a computer readable storage medium, which are used to solve the problem of low efficiency due to complex index calculation executed by invoking an index in a high-order function stack manner.
The embodiment of the invention solves the technical problems through the following technical scheme:
a service index execution method comprises the following steps:
receiving a service demand instruction, wherein the service demand instruction is used for indicating to acquire a demand service index;
querying the required service index in a preconfigured index model based on the service demand instruction;
acquiring at least one target service index corresponding to a required service index from the index model, and generating a service index dependent operation graph corresponding to the required service index according to the target service index and the required service index, wherein the service index dependent operation graph comprises at least one service working node, and the service working node comprises at least one target service index;
and executing the service working node according to the service index dependence operation graph so as to call a target service index corresponding to the service working node.
Further, the method further comprises:
acquiring a plurality of indexes;
according to the service types of the indexes, defining the indexes as service indexes corresponding to the service types of the indexes;
analyzing the business indexes to establish a dependency relationship among the business indexes;
endowing the service index with a characteristic label to generate a service index carrying the characteristic label;
and generating an index model according to the service indexes carrying the characteristic labels and the dependency relationship among the service indexes, and storing the index model in a block chain.
Further, analyzing the business indicators to establish a dependency relationship between the business indicators further comprises:
analyzing the service indexes, and generating service index edges and directions of the service index edges to establish a dependency relationship between the service indexes, wherein the service index edges are used for representing the association between the service indexes, and the directions of the service index edges are used for representing the time sequence relationship when the service indexes are executed.
Further, when the index model includes the required service index, the obtaining at least one target service index corresponding to the required service index from the index model, and generating a service index dependent operation diagram corresponding to the required service index according to the target service index and the required service index further includes:
acquiring at least one target service index corresponding to a required service index from the index model;
analyzing a characteristic label of the at least one target business index to convert the target business index into a calculation unit, wherein the calculation unit comprises the target business index and a dynamic characteristic label of the target business index;
acquiring the dependency relationship among the computing units;
and generating a service index dependent operation graph based on the calculation unit, the dynamic characteristic label and the dependency relationship, and storing the service index dependent operation graph in a preset database.
Further, when the index model does not include the required service index, the obtaining at least one target service index corresponding to the required service index from the index model, and generating a service index dependent operation diagram corresponding to the required service index according to the target service index and the required service index further includes:
adding the required service index into the index model according to the service type corresponding to the required service index;
acquiring the dependency relationship between the required service index and other service indexes in the index model;
assigning a new characteristic label to the required service index, and generating the required service index carrying the new characteristic label;
generating an updated index model according to the demand service index carrying the new characteristic label, other service indexes carrying the characteristic label and the dependency relationship;
and acquiring at least one target service index from the updated index model, and generating a service index dependence operation diagram corresponding to the required service index according to the target service index and the required service index.
Further, the executing the service work node according to the service index dependent operation graph to call the target service index corresponding to the service work node further includes:
acquiring at least one target service index corresponding to the service working node of the service index dependence operation diagram;
acquiring the state attribute of a target computing unit corresponding to the at least one target service index;
acquiring a dynamic characteristic label corresponding to a service working node based on the state attribute of the target computing unit;
and generating a label execution instruction according to the dynamic characteristic label, and executing the service working node according to the label execution instruction so as to call at least one target service index of the service working node.
Further, the method further comprises:
receiving other service requirement instructions;
traversing the service indexes in the other service requirement instructions, and acquiring a public identifier when the service indexes contain the public identifier;
and calling the service index from a preset cache library based on the public identification.
In order to achieve the above object, an embodiment of the present invention further provides a service index execution system, including:
the receiving module is used for receiving a service demand instruction, and the service demand instruction is used for indicating to acquire a demand service index;
the query module is used for querying the required service index in a pre-configured index model based on the service requirement instruction;
a generating module, configured to obtain at least one target service index corresponding to the required service index from the index model, and generate a service index dependent operation graph corresponding to the required service index according to the target service index and the required service index, where the service index dependent operation graph includes at least one service working node, and the service working node includes at least one target service index;
and the execution scheduling module is used for executing the service working node according to the service index dependence operation graph so as to call the target service index corresponding to the service working node.
In order to achieve the above object, an embodiment of the present invention further provides a computer device, where the computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the service indicator execution method as described above when executing the computer program.
In order to achieve the above object, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, where the computer program is executable by at least one processor, so as to cause the at least one processor to execute the steps of the service indicator execution method described above.
According to the service index execution method, the system, the computer equipment and the computer readable storage medium provided by the embodiment of the invention, the required service index is inquired in a pre-configured index model based on the service demand instruction; acquiring at least one target service index corresponding to a required service index from the index model, generating a service index dependent running chart corresponding to the required service index, and scheduling the corresponding target service index according to the service index dependent running chart; the service indexes are flatly constructed in the index model, and scheduling is performed in a mode that the index model and the service indexes depend on the combination of the operation diagram, so that complex service requirements can be responded in time, the indexes are reasonably called, and the efficiency is high.
The invention is described in detail below with reference to the drawings and specific examples, but the invention is not limited thereto.
Drawings
FIG. 1 is a flowchart illustrating a method for executing a service indicator according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of constructing an index model in a service index execution method according to a first embodiment of the present invention;
fig. 3 is a flowchart illustrating steps of generating a service indicator dependent operation graph in a service indicator execution method according to a first embodiment of the present invention;
FIG. 4 is a flowchart illustrating steps of generating a business index dependent operation graph when an index model does not include a required business index in a business index execution method according to a first embodiment of the present invention;
FIG. 5 is a flowchart illustrating steps for executing a scheduling target service indicator in a service indicator execution method according to a first embodiment of the present invention;
FIG. 6 is a flowchart illustrating steps of invoking a service indicator based on a public identity in a service indicator execution method according to a first embodiment of the present invention;
FIG. 7 is a diagram illustrating program modules of a system for executing a service indicator according to a second embodiment of the present invention;
fig. 8 is a schematic hardware structure diagram of a computer device according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the 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.
Technical solutions between various embodiments may be combined with each other, but must be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Example one
Referring to fig. 1, a flowchart illustrating steps of a method for executing a service indicator according to an embodiment of the present invention is shown. It is to be understood that the flow charts in the embodiments of the present method are not intended to limit the order in which the steps are performed. The following description is given by taking a computer device as an execution subject, specifically as follows:
as shown in fig. 1, the service index execution method may include steps S100 to S130, where:
step S100, receiving a service demand instruction, wherein the service demand instruction is used for indicating to acquire a demand service index.
In an exemplary embodiment, taking the financial industry as an example, various types of indexes are needed to be quantified in the fields of investment decision and wind control of the financial industry to reflect the result of financial data, wherein the financial business indexes are classified according to functions, including but not limited to: investment index, decision index, wind control index and the like. The business indexes of the financial field include, but are not limited to, a net rate, a currency supply growth rate, an actual interest rate, a currency expansion rate, a domestic credit growth rate, an actual GDP (total domestic production) growth rate, a financial balance/GDP, a foreign exchange reserve available import month number, a foreign exchange reserve/short term foreign debt, a trade balance/foreign debt total, an actual exchange rate and fluctuation degree, a foreign direct investment/foreign debt, a frequent item/GDP, a trade balance/GDP, a foreign exchange reserve/GDP, a short term inflow/GDP, a stock price index fluctuation range, a bad asset/bank total asset, a bank capital abundance rate, a delay rate, a bad account transfer rate, a net loss rate, and the like. The indexes are important indexes of macro-economic analysis, and the prediction result/analysis result/calculation result of the indexes can provide important reference basis for the research of macro-economic.
Step S110, inquiring the required service index in a pre-configured index model based on the service requirement instruction.
In an exemplary embodiment, referring to fig. 2, the method further includes a pre-configuration process of the index model, specifically including the following steps:
step S200, a plurality of indices are acquired.
Step S210, according to the service types of the indexes, defining the indexes as service indexes corresponding to the service types.
Specifically, when the service type corresponding to the index is a financial type, the index is defined as a financial index. Further, the functions of the plurality of indicators may be expressed in a pure function form, that is, may be expressed in a pure function form.
Step S220, analyzing the service indexes to establish the dependency relationship among the service indexes.
Wherein, the dependence between the service indexes is preset. For example, the plurality of service indexes include a function a and a function B, and analyzing the plurality of service indexes to obtain a calling function a, and calling the function B is required, which can be understood as that there is a dependency between the function a and the function B. When the function C is called, the function D and the function E need to be called at the same time, namely, the function C and the function D and the function E have dependence.
In an exemplary embodiment, step S220 may further include:
analyzing the service indexes, and generating service index edges and directions of the service index edges to establish a dependency relationship between the service indexes, wherein the service index edges are used for representing the association between the service indexes, and the directions of the service index edges are used for representing the time sequence relationship when the service indexes are executed.
Step S230, assigning a characteristic label to the service index to generate a service index carrying the characteristic label.
In particular, the property tags include, but are not limited to, parallel, cache, ordered, dependent, and the like. And marking a characteristic label for the service index, which is equivalent to decoupling the dependence of a function corresponding to the service index, so that the service index becomes an independent service index.
Step S240, generating an index model according to the service index carrying the characteristic tag and the dependency relationship between the service indexes, and storing the index model in a block chain.
Specifically, the index model is a static index model.
In an exemplary embodiment, since the index model is a static index model, when the computer device needs to run the business index in the index model, the static business index needs to be converted into a dynamic business index that can be run by the scheduling module of the computer device.
Step S120, at least one target service index corresponding to a required service index is obtained from the index model, and a service index dependent operation graph corresponding to the required service index is generated according to the target service index and the required service index, wherein the service index dependent operation graph comprises at least one service working node, and the service working node comprises at least one target service index.
In an exemplary embodiment, referring to fig. 3, when the index model includes the demand service index, step S120 may further include:
step S121, at least one target service index corresponding to the required service index is obtained from the index model.
Step S122, parsing the characteristic tag of the at least one target service index to convert the target service index into a calculation unit, where the calculation unit includes the target service index and a dynamic characteristic tag of the target service index.
The computing unit is the minimum unit which can be operated by a scheduling module of the computer equipment. It is understood that the calculation unit corresponds to an interface of a scheduling module of the computer device with the metric model.
In an exemplary embodiment, a characteristic tag corresponding to the at least one target service indicator is obtained, and a tag content corresponding to the characteristic tag is analyzed to obtain a dynamic characteristic tag, where the dynamic characteristic tag may be translated into an execution language readable by a scheduling module when the scheduling module executes scheduling.
Step S123, obtaining a dependency relationship between the target service indexes of the computing unit.
And step S124, generating a service index dependent operation graph based on the calculation unit, the dynamic characteristic tag and the dependency relationship, and storing the service index dependent operation graph in a preset database, wherein the database is stored in a block chain.
In an exemplary embodiment, referring to fig. 4, when the index model does not include the required service index, the index model needs to be updated based on the required service index, then at least one target service index corresponding to the required service index is obtained from the updated index model, and a service index dependent operation diagram corresponding to the required service index is generated according to the target service index and the required service index, which specifically includes the following steps:
step S125, adding the required service index to the index model according to the service type corresponding to the required service index.
Step S126, acquiring the dependency relationship between the required service index and other service indexes in the index model.
Step S127, endowing the demand service index with a new characteristic label, and generating the demand service index carrying the new characteristic label.
And step S128, generating an updated index model according to the required service index carrying the new characteristic label, other service indexes carrying the characteristic label and the dependency relationship.
Step S129, at least one target service index is obtained from the updated index model, and a service index dependent operation diagram corresponding to the required service index is generated according to the target service index and the required service index.
Step S130, executing the service working node according to the service index dependence operation graph so as to call a target service index corresponding to the service working node.
In an exemplary embodiment, referring to fig. 5, step S130 may further include:
step S131, at least one target service index corresponding to the service working node of the service index dependency operation diagram is obtained.
Step S132, obtaining a state attribute of the target computing unit corresponding to the at least one target service indicator.
Specifically, the state attributes include, but are not limited to: an end state, a compute in state, and a wait state. The state attribute is used for marking the current state of the target computing unit corresponding to the target service index by the state.
Step S133, acquiring a dynamic characteristic tag corresponding to the service working node based on the state attribute of the target computing unit.
Step S134, generating a label execution instruction according to the dynamic characteristic label, and executing the service working node according to the label execution instruction so as to call at least one target service index of the service working node.
In an exemplary embodiment, a service index dependent operation graph corresponding to a required service index may be constructed in a finite state machine manner, and the computer device may operate the target service index according to the corresponding service index dependent operation graph, that is, the computer device may operate a corresponding function according to the constructed service index dependent operation graph. For example, step S133 may further include: executing the corresponding business working node according to the state attribute of the target computing unit and the time sequence, acquiring a dynamic characteristic label of a target business index of the target computing unit corresponding to the currently executed business working node, and compiling the dynamic characteristic label through a compiler to generate a label execution instruction; and when receiving a label execution instruction corresponding to the service working node, performing corresponding operation according to the label execution instruction so as to call a target service index corresponding to the service working node.
Further, the state attributes of the target compute unit are extensible according to a finite state machine. Complicated calling of service indexes can be replaced according to the transition of the state attribute of the target computing unit.
In an exemplary embodiment, the plurality of target traffic indicators includes X, Y, Z function, the X function is dependent on the Y function and the Z function, the dynamic property label of the Y function is labeled as being processed in parallel with the Z function, the dynamic property label of the Z function is labeled as being processed in parallel with the Y function, the dynamic property label of the Y function is also labeled as being cached in the cache bank, and the execution scheduling process of the X function includes: the computer equipment generates a cache execution instruction according to the dynamic characteristic label corresponding to the Y function, searches and calls the Y function in a cache library, and caches the result in the cache library after the Y function is calculated; and executing the Y function and the Z function in parallel according to the generated parallel execution instruction of the Y function and the Z function, and executing the X function after the execution of the Y function and the Z function is finished. Therefore, the corresponding service index dependent operation diagram can divide the Y function and the Z function into the same group, and divide the X function which has dependence on both the Y function and the Z function into another group which is different from the Y function and the Z function.
In an exemplary embodiment, the method further comprises: when a service demand instruction is received once, according to the service demand instruction, the computer equipment needs to call the F service index for many times. In the process of actually executing scheduling by the computer device, the F service index may be scheduled only once, or may be calculated only once.
For example, if an F service index is called once when a certain service index dependent operation diagram starts to be executed, and an F service index is called once before the service index dependent operation diagram finishes being executed, and the service index is not used in the middle, the computer device only needs to execute the calling of the F service index once when actually calling, and only calculates a function corresponding to the F service index once, which is beneficial to the optimization of the performance of the computer device.
In an exemplary embodiment, referring to fig. 6, the method further includes:
step S300, receiving other service requirement instructions.
Step S310, traversing the service indexes in the other service requirement instructions, and acquiring the public identification when the service indexes contain the public identification.
Step S320, based on the public identifier, invoking the service index from a preset cache library.
For example, the other service requirement instruction is used to indicate a requirement service index of another service process, and when another service process also needs to use the same service index, that is, the same function, the function may be defined as a common function, and the common function is cached in the cache library. When the scheduling module is scheduling and detects the public identity, the public function can be directly called without repeated calculation.
When the method is used for constructing the index model, only the service index is required to be flattened. A function which is required to realize the index is provided from a service side, the index can be fused into the scheduling module through functionalization, and the scheduling of the index in the scheduling module is realized by endowing each characteristic label to the index. Reasonable scheduling is carried out in a mode that the index model and the service index depend on the combination of the operation diagram, complex service requirements can be responded in time, the index is reasonably called, and the efficiency is high; the method can adapt to the rapid change of the service and the multi-index requirement of the service requirement, reduce the complexity of the service flow, and effectively improve the modeling performance of the service index, the timeliness and the concurrency of index model updating and the support of the computing capacity of the computer equipment.
Example two
Continuing to refer to FIG. 7, a block diagram of a system for executing a business indicator according to the present invention is shown. In this embodiment, the service index execution system 20 may include or be divided into one or more program modules, and the one or more program modules are stored in a storage medium and executed by one or more processors to implement the present invention and implement the service index execution method. The program module referred to in the embodiments of the present invention refers to a series of computer program instruction segments capable of performing specific functions, and is more suitable for describing the execution process of the service indicator execution system 20 in the storage medium than the program itself. The following description will specifically describe the functions of the program modules of the present embodiment:
a receiving module 400, configured to receive a service demand instruction, where the service demand instruction is used to instruct to obtain a demand service index.
A query module 410 for querying the demanded traffic index in a preconfigured index model based on the traffic demand instruction.
A generating module 420, configured to obtain at least one target service index corresponding to the required service index from the index model, and generate a service index dependent operation graph corresponding to the required service index according to the target service index and the required service index, where the service index dependent operation graph includes at least one service working node, and the service working node includes at least one target service index.
Further, the generating module 420 is further configured to: acquiring at least one target service index corresponding to a required service index from the index model; analyzing the characteristic label of the at least one target business index to convert a calculation unit corresponding to the target business index into a calculation unit, wherein the calculation unit comprises the target business index and a dynamic characteristic label of the target business index; acquiring a dependency relationship between target service indexes of the computing unit; and generating a service index dependent operation graph based on the calculation unit, the dynamic characteristic label and the dependency relationship, and storing the service index dependent operation graph in a preset database.
In an exemplary embodiment, when the metric model does not include the demand traffic metric, the generation module 420 is further configured to: adding the required service index into the index model according to the service type corresponding to the required service index; acquiring the dependency relationship between the required service index and other service indexes in the index model; endowing a new characteristic label to the required service index to generate a required service index carrying the new characteristic label; generating an updated index model according to the required service index carrying the new characteristic label, other service indexes carrying the characteristic label and the dependency relationship; and acquiring at least one target service index from the updated index model, and generating a target service index dependent operation diagram corresponding to the required service index.
And the execution scheduling module 430 is configured to execute the service working node according to the service index dependent operation graph, so as to call a target service index corresponding to the service working node.
Further, the execution scheduling module 430 is further configured to: acquiring at least one target service index corresponding to the service working node of the service index dependence operation diagram; acquiring the state attribute of a target computing unit corresponding to the at least one target service index; acquiring a dynamic characteristic label corresponding to a service working node based on the state attribute of the target computing unit; and generating a label execution instruction according to the dynamic characteristic label, and executing the service working node according to the label execution instruction so as to call at least one target service index of the service working node.
EXAMPLE III
Fig. 8 is a schematic diagram of a hardware architecture of a computer device according to a third embodiment of the present invention. In the present embodiment, the computer device 2 is a device capable of automatically performing numerical calculation and/or information processing in accordance with a preset or stored instruction. The computer device 2 may be a rack server, a blade server, a tower server or a rack server (including an independent server or a server cluster composed of a plurality of servers), and the like. As shown in fig. 8, the computer device 2 includes, but is not limited to, at least a memory 21, a processor 22, a network interface 23, and a service index execution system 20, which are communicatively connected to each other via a system bus. Wherein:
in this embodiment, the memory 21 includes at least one type of computer-readable storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the storage 21 may be an internal storage unit of the computer device 2, such as a hard disk or a memory of the computer device 2. In other embodiments, the memory 21 may also be an external storage device of the computer device 2, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like provided on the computer device 2. Of course, the memory 21 may also comprise both internal and external memory units of the computer device 2. In this embodiment, the memory 21 is generally used for storing an operating system installed in the computer device 2 and various types of application software, such as the program codes of the service index execution system 20 of the above embodiment. Further, the memory 21 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 22 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 22 is typically used to control the overall operation of the computer device 2. In this embodiment, the processor 22 is configured to run the program code stored in the memory 21 or process data, for example, run the service index execution system 20, so as to implement the service index execution method of the above embodiment.
The network interface 23 may comprise a wireless network interface or a wired network interface, and the network interface 23 is generally used for establishing communication connection between the computer device 2 and other electronic apparatuses. For example, the network interface 23 is used to connect the computer device 2 to an external terminal through a network, establish a data transmission channel and a communication connection between the computer device 2 and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth (Bluetooth), Wi-Fi, and the like.
It is noted that fig. 8 only shows the computer device 2 with components 20-23, but it is to be understood that not all shown components are required to be implemented, and that more or less components may be implemented instead.
In this embodiment, the service index execution system 20 stored in the memory 21 may be further divided into one or more program modules, and the one or more program modules are stored in the memory 21 and executed by one or more processors (in this embodiment, the processor 22) to complete the present invention.
For example, fig. 7 shows a schematic diagram of program modules of the second embodiment of implementing the service index execution system 20, in this embodiment, the service index execution system 20 may be divided into a receiving module 400, a query module 410, a generating module 420, and an execution scheduling module 430. The program module referred to in the present invention refers to a series of computer program instruction segments capable of performing specific functions, and is more suitable than a program for describing the execution process of the service index execution system 20 in the computer device 2. The specific functions of the program modules 400-430 have been described in detail in the second embodiment, and are not described herein again.
Example four
The present embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application mall, etc., on which a computer program is stored, which when executed by a processor implements corresponding functions. The computer-readable storage medium of the embodiment is used for storing the service index execution system 20, and when being executed by the processor, the service index execution method of the embodiment is implemented.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for executing a service index is characterized by comprising the following steps:
receiving a service demand instruction, wherein the service demand instruction is used for indicating to acquire a demand service index;
querying the required service index in a preconfigured index model based on the service demand instruction;
acquiring at least one target service index corresponding to a required service index from the index model, and generating a service index dependent operation graph corresponding to the required service index according to the target service index and the required service index, wherein the service index dependent operation graph comprises at least one service working node, and the service working node comprises at least one target service index;
and executing the service working node according to the service index dependence operation graph so as to call a target service index corresponding to the service working node.
2. The method of claim 1, wherein the method further comprises:
acquiring a plurality of indexes;
according to the service types of the indexes, defining the indexes as service indexes corresponding to the service types of the indexes;
analyzing the business indexes to establish a dependency relationship among the business indexes;
endowing the service index with a characteristic label to generate a service index carrying the characteristic label;
and generating an index model according to the service indexes carrying the characteristic labels and the dependency relationship among the service indexes, and storing the index model in a block chain.
3. The business metric execution method of claim 2 wherein analyzing the business metrics to establish dependencies between the business metrics further comprises:
analyzing the service indexes, and generating service index edges and directions of the service index edges to establish a dependency relationship between the service indexes, wherein the service index edges are used for representing the association between the service indexes, and the directions of the service index edges are used for representing the time sequence relationship when the service indexes are executed.
4. The method of claim 3, wherein when the index model includes the required business index, the obtaining at least one target business index corresponding to the required business index from the index model, and generating a business index dependent operation graph corresponding to the required business index according to the target business index and the required business index further comprises:
acquiring at least one target service index corresponding to a required service index from the index model;
analyzing a characteristic label of the at least one target business index to convert the target business index into a calculation unit, wherein the calculation unit comprises the target business index and a dynamic characteristic label of the target business index;
acquiring a dependency relationship between target service indexes of the computing unit;
and generating a service index dependent operation graph based on the calculation unit, the dynamic characteristic label and the dependency relationship, and storing the service index dependent operation graph in a preset database.
5. The method of claim 4, wherein when the index model does not include the required business index, the obtaining at least one target business index corresponding to the required business index from the index model, and generating a business index dependent operation graph corresponding to the required business index according to the target business index and the required business index further comprises:
adding the required service index into the index model according to the service type corresponding to the required service index;
acquiring the dependency relationship between the required service index and other service indexes in the index model;
assigning a new characteristic label to the required service index, and generating the required service index carrying the new characteristic label;
generating an updated index model according to the demand service index carrying the new characteristic label, other service indexes carrying the characteristic label and the dependency relationship;
and acquiring at least one target service index from the updated index model, and generating a service index dependence operation diagram corresponding to the required service index according to the target service index and the required service index.
6. The method of claim 5, wherein the executing the business operation node according to the business index dependent operation graph to invoke the target business index corresponding to the business operation node further comprises:
acquiring at least one target service index corresponding to the service working node of the service index dependence operation diagram;
acquiring the state attribute of a target computing unit corresponding to the at least one target service index;
acquiring a dynamic characteristic label corresponding to a service working node based on the state attribute of the target computing unit;
and generating a label execution instruction according to the dynamic characteristic label, and executing the service working node according to the label execution instruction so as to call at least one target service index of the service working node.
7. The method of claim 1, wherein the method further comprises:
receiving other service requirement instructions;
traversing the service indexes in the other service requirement instructions, and acquiring a public identifier when the service indexes contain the public identifier;
and calling the service index from a preset cache library based on the public identification.
8. A system for performing a business metric, comprising:
the receiving module is used for receiving a service demand instruction, and the service demand instruction is used for indicating to acquire a demand service index;
the query module is used for querying the required service index in a pre-configured index model based on the service requirement instruction;
a generating module, configured to obtain at least one target service index corresponding to the required service index from the index model, and generate a service index dependent operation graph corresponding to the required service index according to the target service index and the required service index, where the service index dependent operation graph includes at least one service working node, and the service working node includes at least one target service index;
and the execution scheduling module is used for executing the service working node according to the service index dependence operation graph so as to call the target service index corresponding to the service working node.
9. A computer arrangement comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the business metric performance method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which is executable by at least one processor to cause the at least one processor to perform the steps of the service indicator execution method according to any one of claims 1 to 7.
CN202010575893.8A 2020-06-22 2020-06-22 Service index execution method and system Pending CN111754104A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010575893.8A CN111754104A (en) 2020-06-22 2020-06-22 Service index execution method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010575893.8A CN111754104A (en) 2020-06-22 2020-06-22 Service index execution method and system

Publications (1)

Publication Number Publication Date
CN111754104A true CN111754104A (en) 2020-10-09

Family

ID=72676378

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010575893.8A Pending CN111754104A (en) 2020-06-22 2020-06-22 Service index execution method and system

Country Status (1)

Country Link
CN (1) CN111754104A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150268992A1 (en) * 2014-03-21 2015-09-24 Oracle International Corporation Runtime handling of task dependencies using dependence graphs
WO2018107610A1 (en) * 2016-12-15 2018-06-21 平安科技(深圳)有限公司 Service data processing method, system and device, and computer-readable storage medium
CN109242300A (en) * 2018-08-31 2019-01-18 阿里巴巴集团控股有限公司 A kind of methods of exhibiting, device and the computer equipment of operational indicator value
CN109597894A (en) * 2018-09-30 2019-04-09 阿里巴巴集团控股有限公司 A kind of correlation model generation method and device, a kind of data correlation method and device
CN111079991A (en) * 2019-11-29 2020-04-28 珠海随变科技有限公司 Service index prediction method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150268992A1 (en) * 2014-03-21 2015-09-24 Oracle International Corporation Runtime handling of task dependencies using dependence graphs
WO2018107610A1 (en) * 2016-12-15 2018-06-21 平安科技(深圳)有限公司 Service data processing method, system and device, and computer-readable storage medium
CN109242300A (en) * 2018-08-31 2019-01-18 阿里巴巴集团控股有限公司 A kind of methods of exhibiting, device and the computer equipment of operational indicator value
CN109597894A (en) * 2018-09-30 2019-04-09 阿里巴巴集团控股有限公司 A kind of correlation model generation method and device, a kind of data correlation method and device
CN111079991A (en) * 2019-11-29 2020-04-28 珠海随变科技有限公司 Service index prediction method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
洪波: "建立实时KPI系统", 《中国电力企业管理》, pages 109 - 111 *

Similar Documents

Publication Publication Date Title
US9020949B2 (en) Method and system for centralized issue tracking
CN109933617B (en) Data processing method, data processing device, related equipment and related medium
CN111722918A (en) Service identification code generation method and device, storage medium and electronic equipment
CN110390072A (en) Business numerical computation method, device, computer equipment and storage medium
CN110852559A (en) Resource allocation method and device, storage medium and electronic device
CN111738763A (en) Policy processing method, device, equipment and storage medium
CN101673217A (en) Method for realizing remote program call and system thereof
CN111104401A (en) System and method for storing data in array and linked list based integrated structure
CN112579608A (en) Case data query method, system, device and computer readable storage medium
CN112214521A (en) Rule query method, device, equipment and computer storage medium
CN114995877B (en) Variable configuration method and device
CN111754104A (en) Service index execution method and system
CN112597162B (en) Data set acquisition method, system, equipment and storage medium
CN109408532A (en) Data capture method, device, computer equipment and storage medium
CN112307004B (en) Data management method, device, equipment and storage medium
CN114328486A (en) Data quality checking method and device based on model
CN113392131A (en) Data processing method and device and computer equipment
CN104572649B (en) The processing method of the data of distributed memory system, apparatus and system
CN114511314A (en) Payment account management method and device, computer equipment and storage medium
CN113342860A (en) Index calculation method, device, equipment and storage medium based on universal interface
CN112988358A (en) Data middleware for e-commerce platform
CN113868138A (en) Method, system, equipment and storage medium for acquiring test data
CN113342647A (en) Test data generation method and device
CN112634012A (en) Service data processing method, device, server and storage medium
CN110413507B (en) System test method, device, computer equipment and storage medium

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