[go: up one dir, main page]

CN109214877B - Order creation system, method, electronic device and computer-readable storage medium - Google Patents

Order creation system, method, electronic device and computer-readable storage medium Download PDF

Info

Publication number
CN109214877B
CN109214877B CN201710527424.7A CN201710527424A CN109214877B CN 109214877 B CN109214877 B CN 109214877B CN 201710527424 A CN201710527424 A CN 201710527424A CN 109214877 B CN109214877 B CN 109214877B
Authority
CN
China
Prior art keywords
created
service
creation
order
target service
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
CN201710527424.7A
Other languages
Chinese (zh)
Other versions
CN109214877A (en
Inventor
申航
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201710527424.7A priority Critical patent/CN109214877B/en
Publication of CN109214877A publication Critical patent/CN109214877A/en
Application granted granted Critical
Publication of CN109214877B publication Critical patent/CN109214877B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/0633Managing shopping lists, e.g. compiling or processing purchase lists
    • G06Q30/0635Managing shopping lists, e.g. compiling or processing purchase lists replenishment orders; recurring orders

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明实施例提供了订单创建系统、方法、电子设备及计算机可读存储介质,订单创建系统包括有服务创建模块和订单创建模块,订单创建过程中,服务创建模块首先获得服务创建请求;然后服务创建模块创建服务创建请求对应的目标待创建服务;最后订单创建模块判断是否获得目标待创建服务的创建成功信息;如果是,创建目标待创建服务对应的订单。本方案中,订单是在目标待创建服务成功创建后所创建的,所以不会存无效订单,也不需要人工撤消所创建的订单解决了现有技术中整套创建服务的方法过程繁琐的问题。

Figure 201710527424

The embodiments of the present invention provide an order creation system, a method, an electronic device and a computer-readable storage medium. The order creation system includes a service creation module and an order creation module. During the order creation process, the service creation module first obtains a service creation request; The creation module creates the target service to be created corresponding to the service creation request; finally, the order creation module determines whether to obtain the creation success information of the target service to be created; if so, creates an order corresponding to the target service to be created. In this solution, the order is created after the target service to be created is successfully created, so there is no invalid order, and there is no need to manually revoke the created order.

Figure 201710527424

Description

订单创建系统、方法、电子设备及计算机可读存储介质Order creation system, method, electronic device, and computer-readable storage medium

技术领域technical field

本发明涉及计算机技术领域,特别是涉及订单创建系统、方法、电子设备及计算机可读存储介质。The present invention relates to the field of computer technology, and in particular, to an order creation system, method, electronic device and computer-readable storage medium.

背景技术Background technique

信息化的不断发展使得人们对计算和存储等资源的需求急速增长,在现有的计算机领域中,人们需要投入更多的硬件设备,以及更多的机房环境设备,因此,运行维护成本和人力成本也相应增加,为了节约成本,云技术越来越多地应用到计算机领域中。众所周知,云服务提供商配置有多个宿主机,云服务提供商将多个宿主机的资源通过云技术配置在云端,并根据用户需要在宿主机中为用户创建相应的服务,例如,为用户创建云主机、数据库或网盘。The continuous development of information technology has made people's demand for computing and storage resources increase rapidly. In the existing computer field, people need to invest more hardware equipment and more computer room environment equipment. Therefore, operation and maintenance costs and manpower Costs have also increased accordingly. To save costs, cloud technology is increasingly applied to the computer field. As we all know, a cloud service provider is configured with multiple hosts. The cloud service provider configures the resources of multiple hosts in the cloud through cloud technology, and creates corresponding services in the host for users according to user needs, for example, for users Create a cloud host, database or network disk.

当然,用户使用云服务提供商创建的服务,需要支付一定的费用,为此云服务商提供了相应的创建服务的整套方法,包括服务的创建过程以及订单的创建过程。现有技术中,当租户有创建服务的需求时,云服务提供商配置的一台设备将首先创建订单并计费,获取到订单后,再去请求待创建服务所需的资源,包括CPU(Central Processing Unit,中央处理器)资源、内存资源以及硬盘资源等,以在宿主机中创建上述待创建服务。Of course, users need to pay a certain fee to use the services created by the cloud service provider. For this reason, the cloud service provider provides a complete set of methods for creating services, including the process of creating services and the process of creating orders. In the prior art, when a tenant needs to create a service, a device configured by the cloud service provider will first create an order and charge for it. After obtaining the order, it will request the resources required for the service to be created, including CPU ( Central Processing Unit, central processing unit) resources, memory resources, hard disk resources, etc., to create the above-mentioned to-be-created service in the host.

但是,当上述设备请求不到资源以创建上述服务时,之前所创建的订单成为无效订单,此时需要人工撤消所创建的订单,因而上述创建服务的整套方法过程繁琐。However, when the above-mentioned device cannot request resources to create the above-mentioned service, the previously created order becomes an invalid order, and the created order needs to be manually cancelled at this time, so the above-mentioned whole method for creating the service is cumbersome.

发明内容SUMMARY OF THE INVENTION

本发明实施例的目的在于提供订单创建系统、方法、电子设备及计算机可读存储介质,以解决现有技术中整套创建服务的方法过程繁琐的问题。具体技术方案如下:The purpose of the embodiments of the present invention is to provide an order creation system, method, electronic device, and computer-readable storage medium, so as to solve the problem that the entire method for creating a service in the prior art is cumbersome. The specific technical solutions are as follows:

为达上述目的,第一方面,本发明实施例提供了一种订单创建系统,所述系统包括:In order to achieve the above purpose, in a first aspect, an embodiment of the present invention provides an order creation system, the system includes:

服务创建模块,用于获得服务创建请求;创建所述服务创建请求对应的目标待创建服务;a service creation module for obtaining a service creation request; creating a target service to be created corresponding to the service creation request;

订单创建模块,用于判断是否获得所述目标待创建服务的创建成功信息;如果是,创建所述目标待创建服务对应的订单。The order creation module is configured to determine whether to obtain the creation success information of the target service to be created; if so, create an order corresponding to the target service to be created.

优选的,所述服务创建模块,还用于在成功创建所述目标待创建服务后,向所述订单创建模块发送创建成功通知;Preferably, the service creation module is further configured to send a creation success notification to the order creation module after successfully creating the target service to be created;

所述订单创建模块判断是否获得所述目标待创建服务的创建成功信息,具体为:The order creation module determines whether to obtain the creation success information of the target service to be created, specifically:

判断是否接收到所述服务创建模块发送的创建成功通知,若接收到,判定获得所述目标待创建服务的创建成功信息。It is determined whether the creation success notification sent by the service creation module is received, and if so, it is determined to obtain the creation success information of the target service to be created.

优选的,所述服务创建模块,还用于判断是否需要对所述目标待创建服务进行及时计费;如果需要,在成功创建所述目标待创建服务后,向所述订单创建模块发送创建成功通知;如果不需要,将所述目标待创建服务的标识信息添加到预设的待计费队列中;Preferably, the service creation module is further configured to determine whether the target service to be created needs to be charged in time; if necessary, after the target service to be created is successfully created, send a message to the order creation module that the creation is successful notification; if not required, add the identification information of the target service to be created to the preset to-be-billed queue;

所述订单创建模块,还用于每间隔第一预设时长扫描所述待计费队列;针对所述待计费队列中记录的每一个标识信息,查询该标识信息对应的待创建服务是否创建成功;The order creation module is further configured to scan the queue to be billed every first preset duration; for each identification information recorded in the queue to be billed, query whether the service to be created corresponding to the identification information is created success;

相应的,所述订单创建模块判断是否获得所述目标待创建服务的创建成功信息,具体为:Correspondingly, the order creation module determines whether to obtain the creation success information of the target service to be created, specifically:

判断是否满足下述两个条件中的任意一种,如果满足,判定获得所述目标待创建服务的创建成功信息:Determine whether any of the following two conditions are met, and if so, determine that the creation success information of the target service to be created is obtained:

所述订单创建模块接收到所述服务创建模块发送的创建成功通知;The order creation module receives the creation success notification sent by the service creation module;

所述订单创建模块查询到所述目标待创建服务创建成功。The order creation module finds that the target service to be created is successfully created.

优选的,所述服务创建请求中携带有所述目标待创建服务的计费方式;Preferably, the service creation request carries the charging method of the target service to be created;

所述服务创建模块判断是否需要对所述目标待创建服务进行及时计费,具体为:The service creation module judges whether the target service to be created needs to be charged in time, specifically:

基于所述计费方式,判断是否需要对所述目标待创建服务进行及时计费。Based on the charging method, it is determined whether the target service to be created needs to be charged in time.

优选的,所述订单创建模块还用于针对所述待计费队列中记录的每一个标识信息,在为该标识信息对应的待创建服务创建订单后,从所述待计费队列中删除该标识信息。Preferably, the order creation module is further configured to, for each identification information recorded in the queue to be billed, delete the order from the queue to be billed after creating an order for the service to be created corresponding to the identification information identification information.

优选的,所述订单创建模块还用于针对所述待计费队列中的每一个标识信息,监测该标识信息被添加入所述待计费队列的时长是否超过第二预设时长,如果超过,将该标识信息从所述待计费队列中删除,其中,所述第二预设时长大于所述第一预设时长。Preferably, the order creation module is further configured to, for each piece of identification information in the queue to be billed, monitor whether the duration of the identification information added to the queue to be billed exceeds a second preset duration, and if the duration exceeds the second preset duration , delete the identification information from the queue to be charged, wherein the second preset duration is greater than the first preset duration.

优选的,所述服务创建模块,还用于在将所述目标待创建服务的标识信息添加到所述待计费队列后,确定所述目标待创建服务失败时,将所述目标待创建服务的标识信息从所述待计费队列中删除。Preferably, the service creation module is further configured to, after adding the identification information of the target to-be-created service to the to-be-billed queue, determines that the target to-be-created service fails, add the target to-be-created service The identification information is deleted from the to-be-billed queue.

第二方面,本发明实施例还提供了一种订单创建方法,应用于订单创建系统,所述系统包括服务创建模块和订单创建模块,所述方法包括:In a second aspect, an embodiment of the present invention also provides an order creation method, which is applied to an order creation system, the system includes a service creation module and an order creation module, and the method includes:

所述服务创建模块获得服务创建请求;The service creation module obtains a service creation request;

所述服务创建模块创建所述服务创建请求对应的目标待创建服务;The service creation module creates a target service to be created corresponding to the service creation request;

所述订单创建模块判断是否获得所述目标待创建服务的创建成功信息;如果是,创建所述目标待创建服务对应的订单。The order creation module determines whether to obtain the creation success information of the target service to be created; if so, creates an order corresponding to the target service to be created.

优选的,所述方法还包括:Preferably, the method further includes:

所述服务创建模块在成功创建所述目标待创建服务后,向所述订单创建模块发送创建成功通知;After the service creation module successfully creates the target service to be created, the service creation module sends a creation success notification to the order creation module;

所述订单创建模块判断是否获得所述目标待创建服务的创建成功信息的步骤,包括:The step of the order creation module judging whether to obtain the creation success information of the target service to be created includes:

所述订单创建模块判断是否接收到所述服务创建模块发送的创建成功通知,若接收到,判定获得所述目标待创建服务的创建成功信息。The order creation module determines whether a creation success notification sent by the service creation module is received, and if so, determines to obtain creation success information of the target service to be created.

优选的,在所述订单创建模块判断是否获得所述目标待创建服务的创建成功信息的步骤之前,所述方法还包括:Preferably, before the step of determining whether the order creation module obtains the creation success information of the target service to be created, the method further includes:

所述服务创建模块判断是否需要对所述目标待创建服务进行及时计费;如果需要,在成功创建所述目标待创建服务后,向所述订单创建模块发送创建成功通知;如果不需要,将所述目标待创建服务的标识信息添加到预设的待计费队列中;The service creation module judges whether the target service to be created needs to be charged in time; if necessary, after successfully creating the target service to be created, it sends a creation success notification to the order creation module; The identification information of the target service to be created is added to the preset to-be-billed queue;

其中,所述订单创建模块,还用于每间隔第一预设时长扫描所述待计费队列;针对所述待计费队列中记录的每一个标识信息,查询该标识信息对应的待创建服务是否创建成功;Wherein, the order creation module is further configured to scan the to-be-billed queue every first preset duration; for each identification information recorded in the to-be-billed queue, query the to-be-created service corresponding to the identification information Whether the creation is successful;

相应的,所述订单创建模块判断是否获得所述目标待创建服务的创建成功信息的步骤,包括:Correspondingly, the step of the order creation module judging whether to obtain the creation success information of the target service to be created includes:

所述订单创建模块判断是否满足下述两个条件中的任意一种,如果满足,判定获得所述目标待创建服务的创建成功信息:The order creation module judges whether any one of the following two conditions is met, and if so, judges to obtain the creation success information of the target service to be created:

所述订单创建模块接收到所述服务创建模块发送的创建成功通知;The order creation module receives the creation success notification sent by the service creation module;

所述订单创建模块查询到所述目标待创建服务创建成功。The order creation module finds that the target service to be created is successfully created.

优选的,所述服务创建请求中携带有所述目标待创建服务的计费方式;Preferably, the service creation request carries the charging method of the target service to be created;

所述服务创建模块判断是否需要对所述目标待创建服务进行及时计费的步骤,包括:The step of the service creation module judging whether it is necessary to charge the target service to be created in time includes:

所述服务创建模块基于所述计费方式,判断是否需要对所述目标待创建服务进行及时计费。The service creation module determines whether the target service to be created needs to be charged in time based on the charging method.

优选的,在创建所述目标待创建服务对应的订单的步骤之后,所述方法还包括:Preferably, after the step of creating the order corresponding to the target service to be created, the method further includes:

所述订单创建模块从所述待计费队列中删除所述目标待创建服务的标识信息。The order creation module deletes the identification information of the target service to be created from the to-be-billed queue.

优选的,其特征在于,在所述将所述目标待创建服务的标识信息添加到预设的待计费队列中的步骤之后,所述方法还包括:Preferably, after the step of adding the identification information of the target service to be created to the preset to-be-billed queue, the method further includes:

所述服务创建模块在确定所述目标待创建服务失败时,将所述目标待创建服务的标识信息从所述待计费队列中删除。When determining that the target service to be created fails, the service creation module deletes the identification information of the target service to be created from the to-be-billed queue.

第三方面,本发明实施例还提供了一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;

存储器,用于存放计算机程序;memory for storing computer programs;

处理器,用于执行存储器上所存放的程序时,实现任一订单创建方法所述的方法步骤。The processor is configured to implement the method steps described in any order creation method when executing the program stored in the memory.

第三方面,本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现任一订单创建方法所述的方法步骤。In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any order creation method described in method steps.

由以上可见,本发明实施例提供的方案中,订单创建系统包括有服务创建模块和订单创建模块,订单创建过程中,服务创建模块首先获得服务创建请求;然后服务创建模块创建服务创建请求对应的目标待创建服务;最后订单创建模块判断是否获得目标待创建服务的创建成功信息;如果是,创建目标待创建服务对应的订单。与现有技术对比,本发明实施例提供的方案中,订单是在目标待创建服务成功创建后所创建的,所以不会存无效订单,也不需要人工撤消所创建的订单解决了现有技术中整套创建服务的方法过程繁琐的问题。另外,服务的创建在订单的创建之前,服务的创建不再受订单创建的影响,很好地实现了服务创建模块与订单创建模块的解耦;并且,服务的创建在订单的创建之前,对于整个系统而言,可以更快地去完成服务的创建,客户体验好。It can be seen from the above that in the solution provided by the embodiment of the present invention, the order creation system includes a service creation module and an order creation module. During the order creation process, the service creation module first obtains the service creation request; then the service creation module creates the corresponding service creation request. The target service to be created; finally, the order creation module determines whether the creation success information of the target service to be created is obtained; if so, an order corresponding to the target service to be created is created. Compared with the prior art, in the solution provided by the embodiment of the present invention, the order is created after the target service to be created is successfully created, so there is no invalid order, and the created order does not need to be manually revoked, which solves the problem of the prior art. The whole set of methods for creating services is cumbersome. In addition, the creation of the service is before the creation of the order, and the creation of the service is no longer affected by the creation of the order, which well realizes the decoupling of the service creation module and the order creation module; and the creation of the service is before the creation of the order. For the whole system, the creation of services can be completed faster, and the customer experience is good.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.

图1为本发明实施例提供的订单创建系统的结构示意图;1 is a schematic structural diagram of an order creation system provided by an embodiment of the present invention;

图2为本发明一实施例提供的订单创建方法的流程示意图;2 is a schematic flowchart of an order creation method provided by an embodiment of the present invention;

图3为本发明另一实施例提供的订单创建方法的流程示意图;3 is a schematic flowchart of an order creation method provided by another embodiment of the present invention;

图4为本发明又一实施例提供的订单创建方法的流程示意图;4 is a schematic flowchart of an order creation method provided by another embodiment of the present invention;

图5为本发明再一实施例提供的订单创建方法的流程示意图;5 is a schematic flowchart of an order creation method provided by still another embodiment of the present invention;

图6为本发明实施例提供的一种电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

下面首先对本申请文件中涉及的技术术语进行简单介绍。The following briefly introduces the technical terms involved in the application documents.

在本申请文件中,服务创建模块所创建的服务,包括CPU资源、内存资源以及硬盘资源等,该服务可以供运营商的用户租用。例如,在云技术领域,上述服务,可以是云主机、数据库等云计算资源,也可以是网盘等云存储资源,用户可以租用云服务提供商提供的云主机、数据库以及网盘。In this application document, the service created by the service creation module includes CPU resources, memory resources, and hard disk resources, etc. The service can be rented by the users of the operator. For example, in the field of cloud technology, the above services can be cloud computing resources such as cloud hosts and databases, or cloud storage resources such as network disks. Users can rent cloud hosts, databases, and network disks provided by cloud service providers.

作为服务的提供者而言,用户租用服务是需要提供一定的租用费用的,因而服务提供者除了会为租户创建服务,还会针对所创建的服务,创建订单并计费;例如,云服务提供商,在为用户创建云主机时,还会针对所创建的云主机创建订单并收取费用。As a service provider, users need to provide a certain rental fee for renting services. Therefore, in addition to creating services for tenants, service providers also create orders and bill for the created services; for example, cloud services provide When creating a cloud host for a user, an order will also be created for the created cloud host and a fee will be charged.

服务创建模块,用于根据服务创建请求,在宿主机中创建服务创建请求对应的服务;而上述订单创建模块,则用于针对所创建的服务创建订单并计费。在实际使用中,上述服务创建模块和订单创建模块可以处于不同的物理机上,例如,上述服务创建模块和订单创建模块分别为服务创建服务器和订单创建服务器,二者之间通信连接;当然,上述服务创建模块和订单创建模块可以处于同一物理机上,服务创建模块和订单创建模块在同一物理机上为相互独立的两个模块。The service creation module is used to create a service corresponding to the service creation request in the host according to the service creation request; and the above-mentioned order creation module is used to create an order and charge for the created service. In actual use, the above-mentioned service creation module and order creation module may be located on different physical machines. For example, the above-mentioned service creation module and order creation module are respectively a service creation server and an order creation server, and the two are connected in communication; The service creation module and the order creation module can be located on the same physical machine, and the service creation module and the order creation module are two independent modules on the same physical machine.

下面通过具体实施例来对本发明进行详细介绍。The present invention will be described in detail below through specific embodiments.

图1为本发明实施例提供的订单创建系统的结构示意图。FIG. 1 is a schematic structural diagram of an order creation system provided by an embodiment of the present invention.

本发明实施例提供的一种订单创建系统,如图1所示,包括服务创建模块和订单创建模块。如前所述,本发明的各个实施例中,服务创建模块和订单创建模块可以处于不同的物理机上,也可以处于同一物理机上。An order creation system provided by an embodiment of the present invention, as shown in FIG. 1 , includes a service creation module and an order creation module. As mentioned above, in various embodiments of the present invention, the service creation module and the order creation module may be located on different physical machines, or may be located on the same physical machine.

上述订单创建系统包括服务创建模块和订单创建模块,表明本发明各个实施例中所提及的订单创建系统,并不是仅用于创建订单,订单创建系统除了要创建订单,还需要创建服务,而且服务和订单是存在对应的关系的。The above-mentioned order creation system includes a service creation module and an order creation module, indicating that the order creation system mentioned in the various embodiments of the present invention is not only used to create an order, the order creation system needs to create a service in addition to creating an order, and There is a corresponding relationship between services and orders.

本发明实施例中,上述服务创建模块,用于获得服务创建请求;创建所述服务创建请求对应的目标待创建服务。In the embodiment of the present invention, the above-mentioned service creation module is configured to obtain a service creation request; and create a target service to be created corresponding to the service creation request.

第一种服务创建请求的获得方式中,服务创建模块获得服务创建请求,可以具体为服务创建模块接收其他设备发送的服务创建请求。例如,运营商的客户通过终端设备x向服务创建模块发送了一个服务创建请求,则服务创建模块获得服务创建请求。In the first manner of obtaining the service creation request, the service creation module obtains the service creation request, and may specifically receive the service creation request sent by other devices for the service creation module. For example, the customer of the operator sends a service creation request to the service creation module through the terminal device x, and the service creation module obtains the service creation request.

第二种服务创建请求的获得方式中,服务创建模块获得服务创建请求,可以具体为服务创建模块获得操作者输入的服务创建指令,然后生成服务创建请求。例如,该服务创建模块对应有一个用户输入界面,操作者通过该用户输入界面输入一个服务创建指令,则服务创建模块根据该服务创建指令,生成一个服务创建请求,即服务创建模块获得了一个服务创建请求。In the second manner of obtaining the service creation request, the service creation module obtains the service creation request, and may specifically obtain the service creation instruction input by the operator for the service creation module, and then generates the service creation request. For example, the service creation module corresponds to a user input interface, and the operator inputs a service creation instruction through the user input interface, and the service creation module generates a service creation request according to the service creation instruction, that is, the service creation module obtains a service Create a request.

在本发明实施例中,上述服务创建模块获得服务创建请求的方式并不限于上述两种方式,还可以是可以在本发明实施例中被实现的其他方式,本发明实施例在此不再一一介绍。In the embodiment of the present invention, the manner in which the above-mentioned service creation module obtains the service creation request is not limited to the above two manners, and may also be other manners that can be implemented in the embodiment of the present invention, which will not be described in the embodiment of the present invention. An introduction.

每一个服务创建请求都对应着至少一个待创建服务,所以,在本发明实施上述目标待创建服务,可以仅为一个待创建服务,例如,该目标待创建服务为创建一个100G容量的网盘;上述目标待创建服务,还可以指多个待创建服务,例如下表1,目标待创建服务实际为5个待创建服务。Each service creation request corresponds to at least one service to be created. Therefore, in the implementation of the present invention, the above target service to be created may only be one service to be created. For example, the target service to be created is to create a network disk with a capacity of 100G; The above target services to be created may also refer to multiple services to be created. For example, in Table 1 below, the target services to be created are actually five services to be created.

表1Table 1

Figure BDA0001338730990000081
Figure BDA0001338730990000081

服务创建模块创建目标待创建服务,可以是将宿主机中的一部分资源划分出来供租户专用,例如,目标待创建服务为需要占用2个CPU内核、5G内存和800G硬盘容量的虚拟云主机,则此时服务创建模块首先从云服务商提供的所有宿主机中,选择一个宿主机,然后在所选择的宿主机中开始创建一个占用2个CPU内核、5G内存和800G硬盘容量的虚拟云主机。The service creation module creates the target service to be created, which may be to divide a part of the resources in the host for the exclusive use of the tenant. For example, if the target service to be created is a virtual cloud host that needs to occupy 2 CPU cores, 5G memory and 800G hard disk capacity, then At this time, the service creation module first selects a host from all the hosts provided by the cloud service provider, and then starts to create a virtual cloud host that occupies 2 CPU cores, 5G memory and 800G hard disk capacity in the selected host.

当然,上述描述仅是对目标待创建服务的创建过程的简单举例,目标待创建服务的创建方式属于现有技术,本领域技术人员完全可以依照现有技术中其他可以实现的技术手段完成目标待创建服务的创建,本发明实施例在此不再详细介绍。Of course, the above description is only a simple example of the creation process of the service to be created. The creation of the creation service is not described in detail in this embodiment of the present invention.

需要强调的是,在本发明实施例中,上述服务创建模块创建所述服务创建请求对应的目标待创建服务,仅表明服务创建模块执行创建所述服务创建请求对应的目标待创建服务的操作;但是受实际情况的影响,服务创建模块执行创建目标待创建服务的操作时,并非一定会创建成功,即,本发明实施例中,服务创建模块执行操作:创建所述服务创建请求对应的目标待创建服务,并不表明该服务创建模块成功地创建了目标待创建服务。It should be emphasized that, in the embodiment of the present invention, the above-mentioned service creation module creates the target service to be created corresponding to the service creation request, which only means that the service creation module performs the operation of creating the target service to be created corresponding to the service creation request; However, affected by the actual situation, when the service creation module performs the operation of creating the target service to be created, it may not necessarily be created successfully. That is, in this embodiment of the present invention, the service creation module performs the operation: creating the target to be created corresponding to the service creation request. Creating a service does not mean that the service creation module has successfully created the target service to be created.

例如,目标待创建服务为3个CPU内核、6G内存和1000G硬盘容量的虚拟云主机z,服务创建模块执行创建目标待创建服务的操作时,发现当前云服务商提供的所有宿主机中,没有一个宿主机有足够的资源来创建上述虚拟云主机z,则此时服务创建模块创建目标待创建服务失败。For example, the target service to be created is a virtual cloud host z with 3 CPU cores, 6G memory and 1000G hard disk capacity. When the service creation module performs the operation of creating the target service to be created, it finds that among all the hosts provided by the current cloud service provider, there is no virtual cloud host z. If a host has enough resources to create the above virtual cloud host z, the service creation module fails to create the target service to be created at this time.

上述订单创建系统中的订单创建模块,用于判断是否获得所述目标待创建服务的创建成功信息;如果是,创建所述目标待创建服务对应的订单。The order creation module in the above order creation system is configured to determine whether to obtain the creation success information of the target service to be created; if so, create an order corresponding to the target service to be created.

对于订单创建模块如何获得所述目标待创建服务的创建成功信息,第一种实现方式下,订单创建模块获得所述目标待创建服务的创建成功信息,可以是被创建了上述目标待创建服务的宿主机向订单创建模块发送的;显然的,宿主机作为创建目标待创建服务的载体,其可以感知目标待创建服务是否创建成功,服务创建模块在某一宿主机中成功创建目标待创建服务后,该宿主机可以生成一个对应该目标待创建服务的创建成功消息,然后将该创建成功消息发送给订单创建模块,即订单创建模块获得所述目标待创建服务的创建成功信息。As for how the order creation module obtains the creation success information of the target service to be created, in the first implementation manner, the order creation module obtains the creation success information of the target service to be created, which may be the one that created the target service to be created. Sent by the host to the order creation module; obviously, the host, as the carrier for creating the target service to be created, can sense whether the target service to be created is successfully created, and after the service creation module successfully creates the target service to be created in a certain host , the host can generate a creation success message corresponding to the target service to be created, and then send the creation success message to the order creation module, that is, the order creation module obtains the creation success information of the target service to be created.

在本实现方式下,运营商所提供的所有宿主机可以看作是上述订单创建系统中的一部分,上述订单创建模块和运营商提供的所有宿主机均保持通信连接,每个宿主机中均设置有一个程序,该程序可以监测宿主机内是否创建了新的服务,宿主机一旦监测到自身中被创建了新的服务,宿主机中的该程序就会针对新创建的服务生成一个创建成功消息,然后将该创建成功信息发送给订单创建模块。In this implementation manner, all hosts provided by the operator can be regarded as a part of the above order creation system, the above order creation module and all the hosts provided by the operator maintain a communication connection, and each host is set There is a program that can monitor whether a new service is created in the host. Once the host detects that a new service has been created in itself, the program in the host will generate a creation success message for the newly created service. , and then send the successful creation information to the order creation module.

例如,服务创建模块在宿主机中1创建了一个数据库x,宿主机1监测到其内创建了一个数据库x,则宿主机生成一个对应数据库x的创建成功信息,然后,将该创建成功信息发送给上述订单创建模块。For example, the service creation module creates a database x in the host 1, and the host 1 detects that a database x is created in it, then the host generates a creation success message corresponding to the database x, and then sends the creation success message Create a module for the above order.

第二种实现方式下,订单创建模块获得所述目标待创建服务的创建成功信息,可以是上述订单创建模块自己所主动获取。与上述第一种实现方式相同的是,在本实现方式下,运营商所提供的所有宿主机可以看作是上述订单创建系统中的一部分,上述订单创建模块和运营商提供的所有宿主机均保持通信连接,订单服务模块可以监测每个宿主机中是否创建了新的服务,如果创建了,则针对所创建的新的服务,生成一个创建成功信息,即订单创建模块获得所述目标待创建服务的创建成功信息。In the second implementation manner, the order creation module obtains the creation success information of the target service to be created, which may be obtained by the order creation module itself. Similar to the first implementation above, in this implementation, all hosts provided by the operator can be regarded as a part of the above order creation system, and the above order creation module and all hosts provided by the operator are the same. Keeping the communication connection, the order service module can monitor whether a new service is created in each host. If it is created, a creation success message is generated for the created new service, that is, the order creation module obtains the target to be created. Service creation success information.

例如,订单创建模块每间隔1分钟扫描一下所有的宿主机,监测各个宿主机中是否被创建了新的服务,在某一时刻,服务创建模块在宿主机1中创建了一个数据库x,在此后,订单创建模块扫描发现宿主机1中创建了一个数据库x,则订单创建模块生成一个对应数据库x的创建成功信息,即,订单创建模块获得对应数据库x的创建成功信息。For example, the order creation module scans all hosts every 1 minute to monitor whether new services are created in each host. At a certain moment, the service creation module creates a database x in host 1, and after that , the order creation module scans and finds that a database x has been created in the host 1, then the order creation module generates a creation success message corresponding to the database x, that is, the order creation module obtains creation success information corresponding to the database x.

可以理解,上述订单创建模块获得目标待创建服务的创建成功信息两种实现方式,仅是本发明实施例简单列举的实现方式,并不表示上述获得所述目标待创建服务的创建成功信息的具体实现方式限于上述两种实现方式,本领域技术人员完全可以依据现有技术实现订单创建模块获得所述目标待创建服务的创建成功信息的目的,本发明实施例在此不做详细介绍。It can be understood that the above-mentioned two implementation manners of obtaining the creation success information of the target service to be created by the above-mentioned order creation module are only the implementation manners simply enumerated in the embodiments of the present invention, and do not represent the specific method of obtaining the creation success information of the target service to be created above. The implementation manner is limited to the above two implementation manners, and those skilled in the art can completely realize the purpose of obtaining the creation success information of the target service to be created by the order creation module according to the prior art, which is not described in detail in this embodiment of the present invention.

订单创建模块获得所述目标待创建服务的创建成功信息,即表明订单创建模块获知目标待创建服务已经成功创建;显然的,在本发明实施例中,订单创建模块判断是否获得所述目标待创建服务的创建成功信息;如果获得,创建所述目标待创建服务对应的订单;否则不会创建目标待创建服务对应的订单。The order creation module obtains the creation success information of the target service to be created, which means that the order creation module learns that the target service to be created has been successfully created; obviously, in this embodiment of the present invention, the order creation module determines whether to obtain the target service to be created. Service creation success information; if obtained, create an order corresponding to the target service to be created; otherwise, the order corresponding to the target service to be created will not be created.

在实际应用中,订单创建模块在创建上述目标待创建服务对应的订单的同时,还会针对目标待创建服务开始计费。In practical applications, the order creation module also starts charging for the target service to be created while creating the order corresponding to the above target service to be created.

应该说明的是,订单创建模块创建上述目标待创建服务对应的订单时开始进行计费,而费用计算的起始点可以为完成订单创建的时刻,例如,在A时刻订单创建模块成功创建订单,订单创建模块开始计费的费用计算起始点为A时刻。It should be noted that the order creation module starts billing when the order corresponding to the above-mentioned target service to be created is created, and the starting point of the cost calculation can be the moment when the order creation is completed. The starting point of the cost calculation for the creation module to start billing is time A.

当然,费用计算的起始点还可以为上述目标待创建服务的成功创建时刻,例如,在B时刻服务创建模块成功创建上述目标待创建服务,在A时刻订单创建模块成功创建母爱比哦待创建服务对应的订单,则订单创建模块开始计费的费用计算起始点为B时刻。Of course, the starting point of cost calculation can also be the successful creation time of the above-mentioned target service to be created. For example, at time B, the service creation module successfully creates the above-mentioned target service to be created, and at time A, the order creation module successfully creates the service to be created. For the corresponding order, the starting point of the cost calculation for the order creation module to start billing is time B.

下面对本发明实施例的有益技术效果进行详细说明。The beneficial technical effects of the embodiments of the present invention will be described in detail below.

与现有技术对比,第一方面,本发明实施例提供的方案中,订单是在目标待创建服务成功创建后所创建的,所以不会存无效订单,也不需要人工撤消所创建的订单解决了现有技术中整套创建服务的方法过程繁琐的问题。Compared with the prior art, in the first aspect, in the solution provided by the embodiment of the present invention, the order is created after the target service to be created is successfully created, so there is no invalid order, and there is no need to manually revoke the created order to solve the problem. It solves the problem that the whole set of methods for creating services in the prior art is cumbersome.

首先,无效订单可以是由于订单创建成功后,所创建订单对应的服务创建失败的一类订单;由于订单对应的服务创建失败,故已创建好的订单需要人工撤消,服务创建失败的原因有很多种,例如,用于创建服务的服务创建模块出现故障、宿主机中的资源不足等等。First of all, an invalid order can be a type of order that fails to be created by the service corresponding to the created order after the order is successfully created; because the service corresponding to the order fails to be created, the created order needs to be manually cancelled, and there are many reasons for the failure of service creation such as failure of the service creation module used to create the service, insufficient resources in the host, etc.

示例性的,目标待创建服务为占用3个CPU内核、6G内存和1000G硬盘容量的虚拟云主机x,假设首先创建订单,订单创建成功后,服务创建模块查询各个宿主机,发现没有任何一个宿主机有足够的资源以创建虚拟云主机x,则此时虚拟云主机无法被成功创建。此时,由于虚拟云主机x对应的订单已被创建,需要人工去撤消已创建的订单。Exemplarily, the target service to be created is a virtual cloud host x that occupies 3 CPU cores, 6G memory and 1000G hard disk capacity. Suppose that an order is created first. After the order is created successfully, the service creation module queries each host and finds that there is no host. The host has enough resources to create the virtual cloud host x, then the virtual cloud host cannot be successfully created at this time. At this time, since the order corresponding to the virtual cloud host x has been created, it is necessary to manually cancel the created order.

可以理解,人工撤消已创建的订单,使得创建服务和创建订单组合成的整个流程变得繁琐,而且,也会浪费大量的人力和物力资源。It can be understood that manually revoking the created order makes the whole process of creating a service and creating an order complicated, and also wastes a lot of manpower and material resources.

而在本发明实施例中,服务创建模块先创建服务创建请求对应的目标待创建服务,在服务创建模块成功创建目标待创建服务之后,再由订单创建模块创建目标待创建服务对应的订单,所以不会存在上述无效订单,也就不存在人工去撤消上述无效订单的问题,避免了订单的回退操作。In the embodiment of the present invention, the service creation module first creates the target service to be created corresponding to the service creation request, and after the service creation module successfully creates the target service to be created, the order creation module creates the order corresponding to the target service to be created, so There will not be the above invalid orders, and there is no problem of manually canceling the above invalid orders, avoiding the order rollback operation.

例如,目标待创建服务为需要占用3个CPU内核、6G内存和1000G硬盘容量的虚拟云主机x,服务创建模块首先在运营商提供的所有宿主机中选择可以创建该虚拟云主机x的宿主机,假设当前所有的宿主机中都没有足够的资源以创建虚拟云主机x,则服务创建模块创建虚拟云主机x的操作失败,显然的,此时针对虚拟云主机x不会存在已创建的订单,并且订单创建模块也不会去创建对应虚拟云主机x的订单;避免了上述无效订单的存在,也就不需要人工去撤消上述无效订单。For example, the target service to be created is a virtual cloud host x that needs to occupy 3 CPU cores, 6G memory and 1000G hard disk capacity. The service creation module first selects a host that can create the virtual cloud host x from all the hosts provided by the operator , assuming that all current hosts do not have enough resources to create virtual cloud host x, the operation of the service creation module to create virtual cloud host x fails. Obviously, there will be no created order for virtual cloud host x at this time. , and the order creation module will not create an order corresponding to the virtual cloud host x; the existence of the above-mentioned invalid order is avoided, and there is no need to manually revoke the above-mentioned invalid order.

第二方面,服务的创建在订单的创建之前,服务的创建不再受订单创建的影响,很好地实现了服务创建模块与订单创建模块的解耦。In the second aspect, the creation of the service is before the creation of the order, the creation of the service is no longer affected by the creation of the order, and the decoupling of the service creation module and the order creation module is well realized.

可以理解,如果订单的创建在服务的创建之前,每次创建服务都需要先创建订单,创建订单的流程实际上可以说是创建服务的流程中的一部分,两个流程的耦合度高。从运维和研发的角度来说,两个流程的耦合度高,针对其中一个流程的运行和维护,必然影响另一流程,所以订单的创建在服务的创建之前,必然不利于实现两个流程的模块自身的运维和研发。Understandably, if an order is created before a service is created, an order needs to be created every time a service is created. The process of creating an order can actually be said to be a part of the process of creating a service, and the two processes are highly coupled. From the perspective of operation and maintenance and R&D, the coupling of the two processes is high. The operation and maintenance of one process will inevitably affect the other process. Therefore, the creation of orders before the creation of services is bound to be unfavorable for the realization of the two processes. The operation and maintenance and research and development of the module itself.

而在本发明实施例中,服务的创建在订单的创建之前,服务的创建不再受订单创建的影响,很好地实现了服务创建模块与订单创建模块的解耦。本发明实施例巧妙地剥离了订单的创建流程与服务的创建流程;使得工作人员可以很好地对两大功能流程分别进行运维和技术研发,而且,服务创建模块和订单创建模块也能很好的配合协同工作。However, in the embodiment of the present invention, the creation of the service is before the creation of the order, and the creation of the service is no longer affected by the creation of the order, which well realizes the decoupling of the service creation module and the order creation module. The embodiment of the present invention subtly strips the order creation process and the service creation process; so that the staff can well perform operation and maintenance and technical research and development on the two major functional processes respectively, and the service creation module and the order creation module can also be easily Good cooperation and cooperation.

第三方面,服务的创建在订单的创建之前,对于整个系统而言,可以更快地去完成服务的创建,客户体验好。In the third aspect, the creation of the service before the creation of the order, for the whole system, the creation of the service can be completed faster, and the customer experience is good.

本领域技术人员公知的是,上述服务的创建过程是需要消耗较长的时间,作为运营商的客户而言,其希望更快的完成服务的创建,但是,如果订单的创建在服务的创建之前,那么客户的服务创建请求发出后,如果首先需要完成订单的创建,才能再去完成服务的创建,从客户的服务创建请求发出至服务创建完成时间必然较长,客户体验差。It is well known to those skilled in the art that the creation process of the above-mentioned service takes a long time. As a customer of the operator, he wants to complete the creation of the service faster. However, if the creation of the order is before the creation of the service , then after the customer's service creation request is sent, if the order creation needs to be completed first, then the service creation can be completed.

而本发明实施例中,由于服务的创建在订单的创建之前,那么客户的服务创建请求发出后,直接由服务创建模块完成服务的创建,省去了创建订单所消耗的时间,故从客户的服务创建请求发出至服务创建完成所需时间短,客户体验好。In the embodiment of the present invention, since the creation of the service is before the creation of the order, after the customer's service creation request is sent, the service creation module will directly complete the creation of the service, which saves the time consumed by creating an order. The time required from the service creation request to the completion of the service creation is short, and the customer experience is good.

例如,服务创建模块完成创建服务的时间为30s,订单创建模块完成订单的创建需要5s。如果订单的创建在服务的创建之前,则对于整个系统来说,从接收到服务创建请求至完成服务的创建,至少需要35s;但如果如果订单的创建在服务的创建之后,则对于整个系统来说,从接收到服务创建请求至完成服务的创建,仅需要30s。For example, it takes 30s for the service creation module to complete the creation of the service, and it takes 5s for the order creation module to complete the creation of the order. If the creation of the order is before the creation of the service, it will take at least 35s for the entire system from receiving the service creation request to completing the creation of the service; but if the creation of the order is after the creation of the service, it will take at least 35s for the entire system to Say, it only takes 30s from receiving the service creation request to completing the creation of the service.

由以上可知,本实施例提供的方案中,订单是在目标待创建服务成功创建后所创建的,所以不会存无效订单,也不需要人工撤消所创建的订单解决了现有技术中整套创建服务的方法过程繁琐的问题。另外,服务的创建在订单的创建之前,服务的创建不再受订单创建的影响,很好地实现了服务创建模块与订单创建模块的解耦;并且,服务的创建在订单的创建之前,对于整个系统而言,可以更快地去完成服务的创建,客户体验好。It can be seen from the above that in the solution provided by this embodiment, the order is created after the target service to be created is successfully created, so there will be no invalid orders, and there is no need to manually revoke the created order, which solves the problem of creating a complete set of orders in the prior art. The method process of the service is cumbersome. In addition, the creation of the service is before the creation of the order, and the creation of the service is no longer affected by the creation of the order, which well realizes the decoupling of the service creation module and the order creation module; and the creation of the service is before the creation of the order. For the whole system, the creation of services can be completed faster, and the customer experience is good.

在图1所示系统实施例的基础上,作为本发明实施例提供的一种所述订单创建模块判断是否获得所述目标待创建服务的创建成功信息的具体实现方式,所述服务创建模块,还可以用于在成功创建所述目标待创建服务后,向所述订单创建模块发送创建成功通知;On the basis of the system embodiment shown in FIG. 1 , as a specific implementation method for the order creation module to determine whether to obtain the creation success information of the target service to be created, the service creation module, It can also be used to send a creation success notification to the order creation module after successfully creating the target service to be created;

所述订单创建模块判断是否获得所述目标待创建服务的创建成功信息,具体为:The order creation module determines whether to obtain the creation success information of the target service to be created, specifically:

判断是否接收到所述服务创建模块发送的创建成功通知,若接收到,判定获得所述目标待创建服务的创建成功信息。It is determined whether the creation success notification sent by the service creation module is received, and if so, it is determined to obtain the creation success information of the target service to be created.

在本发明实施例中,对于任何一个目标待创建服务,服务创建模块在成功创建目标待创建服务后,即会向订单创建模块发送对应该目标创建服务的创建成功通知,订单创建模块在接收到对应该目标创建服务的创建成功通知,可以将该创建成功通知作为目标待创建服务的创建成功信息,判定自身获得目标待创建服务的创建成功信息,然后,订单创建模块针对目标待创建服务创建订单。In the embodiment of the present invention, for any target service to be created, after the service creation module successfully creates the target service to be created, the service creation module will send a creation success notification corresponding to the target creation service to the order creation module. Corresponding to the creation success notification of the target creation service, the creation success notification can be used as the creation success information of the target service to be created, and it is determined that it has obtained the creation success information of the target service to be created. Then, the order creation module creates an order for the target service to be created. .

可以理解的是,上述创建成功通知,应该包括目标待创建服务标识信息,当然,不同的服务,计费标准可以不同,所以在实际应用中,上述创建成功通知还可以携带有表征对应目标待创建服务的计费方式的信息。It can be understood that the above notification of successful creation should include the identification information of the target service to be created. Of course, different services may have different charging standards. Therefore, in practical applications, the notification of successful creation may also carry a message indicating the corresponding target to be created. Information on how the service is billed.

例如,上述创建成功通知携带有目标待创建服务的标识信息m,同时,还记录目标待创建服务的成功创建时间为A时刻,订单创建模块需要按照每小时1元的标准对该目标待创建服务进行收费;则订单创建模块在接收到该创建成功通知后,创建对应于标识信息m的订单,并且从A时刻开始按照每小时1元的标准计费。For example, the above-mentioned successful creation notification carries the identification information m of the target service to be created. At the same time, it also records that the successful creation time of the target service to be created is time A. The order creation module needs to use the standard of 1 yuan per hour for the target service to be created. Charge; then, after receiving the successful creation notification, the order creation module creates an order corresponding to the identification information m, and starts to charge according to the standard of 1 yuan per hour from time A.

本实施例提供的方案中,目标待创建服务是由服务创建模块所创建的,所以服务创建模块能够最先获知目标待创建服务是否创建成功,并且在获知目标待创建服务创建成功后,能够最及时地通知订单创建模块,进而使得订单创建模块能够在目标待创建服务被创建后及时地创建订单。In the solution provided by this embodiment, the target service to be created is created by the service creation module, so the service creation module can first know whether the target service to be created is successfully created, and after learning that the target service to be created is successfully created, can The order creation module is notified in a timely manner, so that the order creation module can create an order in a timely manner after the target service to be created is created.

在图1所示系统实施例的基础上,作为本发明实施例提供的所述订单创建模块判断是否获得所述目标待创建服务的创建成功信息的另一种具体实现方式,所述服务创建模块,还可以用于判断是否需要对所述目标待创建服务进行及时计费;如果需要,在成功创建所述目标待创建服务后,向所述订单创建模块发送创建成功通知;如果不需要,将所述目标待创建服务的标识信息添加到预设的待计费队列中。On the basis of the system embodiment shown in FIG. 1, as another specific implementation manner of the order creation module judging whether to obtain the creation success information of the target service to be created, the service creation module provided by the embodiment of the present invention , can also be used to judge whether the target service to be created needs to be charged in time; if necessary, after successfully creating the target service to be created, send a creation success notification to the order creation module; if not, send the The identification information of the target service to be created is added to the preset to-be-billed queue.

对所述目标待创建服务进行及时计费,可以理解为在目标待创建服务成功创建后,订单创建模块需要及时针对目标待创建服务创建订单并开始计费。The timely charging of the target service to be created can be understood that after the target service to be created is successfully created, the order creation module needs to create an order for the target service to be created in time and start charging.

本发明实施例提供的订单创建系统中,所述订单创建模块,还用于每间隔第一预设时长扫描所述待计费队列;针对所述待计费队列中记录的每一个标识信息,查询该标识信息对应的待创建服务是否创建成功。In the order creation system provided by the embodiment of the present invention, the order creation module is further configured to scan the to-be-billed queue every first preset duration; for each identification information recorded in the to-be-billed queue, Check whether the service to be created corresponding to the identification information is successfully created.

相应的,所述订单创建模块判断是否获得所述目标待创建服务的创建成功信息,具体为:Correspondingly, the order creation module determines whether to obtain the creation success information of the target service to be created, specifically:

判断是否满足下述两个条件中的任意一种,如果满足,判定获得所述目标待创建服务的创建成功信息:Determine whether any of the following two conditions are met, and if so, determine that the creation success information of the target service to be created is obtained:

条件1:所述订单创建模块接收到所述服务创建模块发送的创建成功通知;Condition 1: The order creation module receives a creation success notification sent by the service creation module;

条件2:所述订单创建模块查询到所述目标待创建服务创建成功。Condition 2: The order creation module finds that the target service to be created is successfully created.

首先,服务创建模块判断是否需要对目标待创建服务进行及时计费,可以依据目标待创建服务的类型、目标待创建服务所属的客户信息以及目标待创建服务的租用时间等信息确定。First, the service creation module determines whether the target service to be created needs to be charged in a timely manner, which can be determined according to information such as the type of the target service to be created, the client information to which the target service to be created belongs, and the lease time of the target service to be created.

上述目标待创建服务的类型包括虚拟云主机、数据库和网盘等,例如,预先设置目标待创建服务的类型为虚拟云主机时,需要对目标待创建服务进行及时计费,而对于其它类型的目标待创建服务,不需要进行及时计费。目标待创建服务所属的客户信息可以是目标待创建服务所属的客户是否为运营商的长期合作客户的信息,例如,预先设置目标待创建服务的客户为短期合作的客户时,需要对目标待创建服务进行及时计费,否则不需要进行及时计费;目标待创建服务的租用时间,即租期,可以是目标待创建服务从创建完成到撤除总共租用的时长,例如,预先设置目标待创建服务的租用时间少于一个月时,需要对目标待创建服务进行及时计费。The types of the above-mentioned target services to be created include virtual cloud hosts, databases, and network disks, etc. For example, when the type of the target services to be created is preset as virtual cloud hosts, the target services to be created need to be billed in time, and for other types of services. The target service to be created does not need to be billed in time. The customer information to which the target service to be created belongs may be information about whether the customer to which the target service to be created belongs is a long-term cooperative customer of the operator. The service is billed in a timely manner, otherwise it is not necessary to perform timely billing; the lease time of the target service to be created, that is, the lease period, can be the total lease time from the creation of the target service to be created to the removal of the target service. For example, preset the target service to be created. When the lease time is less than one month, the target service to be created needs to be billed in time.

当然,关于服务创建模块判断是否需要对目标待创建服务进行及时计费,除了利用上述信息做出判断外,还可以利用现有可利用的其他信息,本发明实施例在此不再详细介绍。Of course, regarding whether the service creation module judges whether the target service to be created needs to be charged in time, in addition to the above information, other available information can also be used, which is not described in detail in this embodiment of the present invention.

作为本发明实施例的一种优选实施方式,上述服务创建请求中携带有所述目标待创建服务的计费方式;As a preferred implementation of the embodiment of the present invention, the above-mentioned service creation request carries the charging method of the target service to be created;

所述服务创建模块判断是否需要对所述目标待创建服务进行及时计费,具体为:The service creation module judges whether the target service to be created needs to be charged in time, specifically:

基于所述计费方式,判断是否需要对所述目标待创建服务进行及时计费。Based on the charging method, it is determined whether the target service to be created needs to be charged in time.

本发明实施例中,服务创建请求中携带的计费方式可以表明:所需创建的目标待创建服务是按分钟或小时或天或月计算费用的。例如,预先设置当目标待创建服务是按照分钟计算费用时,判定需要对目标待创建服务进行及时计费,否则,判定不需要对目标待创建服务进行及时计费。In the embodiment of the present invention, the charging method carried in the service creation request may indicate that the target service to be created to be created is charged by minutes, hours, days or months. For example, it is preset that when the target to-be-created service is charged by minutes, it is determined that the target to-be-created service needs to be billed in time; otherwise, it is determined that the target to-be-created service does not need to be charged in time.

需要说明的是,服务创建模块与订单创建模块是通过网络连接的,二者可能因为网络中断等原因导致服务创建模块无法将上述创建成功通知发送给订单创建模块;如果服务创建模块成功创建服务后,订单创建模块无法接收到上述创建成功通知,订单创建模块将永远无法创建对应该服务的订单。It should be noted that the service creation module and the order creation module are connected through the network, and the service creation module may not be able to send the above creation success notification to the order creation module due to network interruption and other reasons; if the service creation module successfully creates the service, , the order creation module cannot receive the above-mentioned successful creation notification, and the order creation module will never be able to create an order corresponding to the service.

为了避免上述问题的存在,在本发明实施例中,如果目标待创建服务不需要进行及时计费,则订单创建模块将目标待创建服务的标识信息添加到预设的待计费队列中;待计费队列可以永久记录没有创建对应订单的服务,即使上述服务创建模块与订单创建模块之间无法通信,订单创建模块仍然可以通过扫描上述待计费队列来获知已完成创建但是没有创建对应订单的服务,尽可能保证服务创建模块所创建的每一个服务对应的订单都可以成功被订单创建模块所创建。In order to avoid the above problems, in this embodiment of the present invention, if the target service to be created does not need to be billed in time, the order creation module adds the identification information of the target service to be created to the preset to-be-billed queue; The billing queue can permanently record the service for which the corresponding order has not been created. Even if the above service creation module cannot communicate with the order creation module, the order creation module can still scan the above pending billing queue to know that the creation has been completed but the corresponding order has not been created. service, as far as possible to ensure that the order corresponding to each service created by the service creation module can be successfully created by the order creation module.

例如,某一时刻订单创建模块出现了故障,服务创建模块开始创建目标待创建服务x,并将目标待创建服务x的标识信息放置待计费队列中存储下来,然后在订单创建模块的故障恢复后,订单创建模块可以扫描该待计费队列,扫描到目标待创建服务x的标识信息后,查询该目标待创建服务x是否创建成功,假设已经成功创建,则订单创建模块对该目标待创建服务创建订单并开始计费。For example, if the order creation module fails at a certain moment, the service creation module starts to create the target service x to be created, and stores the identification information of the target service x to be created in the to-be-billed queue, and then recovers from the failure of the order creation module After that, the order creation module can scan the to-be-billed queue, and after scanning the identification information of the target to-be-created service x, query whether the target to-be-created service x has been created successfully. If it has been successfully created, the order creation module will create the target to be created. The service creates an order and starts billing.

但是,针对此例,如果服务创建模块直接向订单创建模块发送创建成功通知,此时会由于订单创建模块故障导致订单接收模块无法接收到该创建成功通知,服务创建模块通知失败,订单创建模块恢复故障后,上述创建成功通知已过期,订单创建模块将永远无法创建对应该服务的订单。However, for this example, if the service creation module directly sends a creation success notification to the order creation module, the order receiving module cannot receive the creation success notification due to the failure of the order creation module, the service creation module notification fails, and the order creation module resumes After the failure, the above creation success notification has expired, and the order creation module will never be able to create an order corresponding to the service.

需要强调的是,当上述服务创建模块与上述订单创建模块处于同一物理机上时,上述待计费队列可以处于服务创建模块与订单创建模块共同所在的物理机内,当然也可以设置于其它物理机内。当上述服务创建模块与上述订单创建模块处于不同的物理机上时,上述待计费队列可以设置在服务创建模块所在物理机内,也可以设置在订单创建模块所在的物理机内,当然也可以设置在其它物理机内;但为了避免网络的影响导致服务创建模块无法在待计费队列中添加标识信息,本发明实施例优选将上述待计费队列设置在订单创建模块所在的物理机内。It should be emphasized that when the above-mentioned service creation module and the above-mentioned order creation module are located on the same physical machine, the above-mentioned to-be-billed queue can be located in the same physical machine where the service creation module and the order creation module are located, and of course can also be set on other physical machines. Inside. When the above-mentioned service creation module and the above-mentioned order creation module are located on different physical machines, the above-mentioned queue to be billed may be set in the physical machine where the service creation module is located, or in the physical machine where the order creation module is located. Of course, it can also be set In other physical machines; however, in order to prevent the service creation module from being unable to add identification information to the queue to be billed due to the influence of the network, the embodiment of the present invention preferably sets the queue to be billed in the physical machine where the order creation module is located.

订单创建模块可以实时扫描上述待计费队列,但是这样会消耗大量的CPU资源,所以在实际应用中,订单创建模块每间隔第一预设时长扫描待计费队列。此处的第一预设时长可以根据实际应用场景而设定,例如第一预设时长可以是45min,则订单创建模块每间隔45min扫描待计费队列。The order creation module can scan the above queues to be billed in real time, but this will consume a lot of CPU resources, so in practical applications, the order creation module scans the queues to be billed every first preset time interval. The first preset duration here may be set according to the actual application scenario, for example, the first preset duration may be 45 minutes, and the order creation module scans the queue to be billed every 45 minutes.

订单创建模块针对待计费队列中的每一个标识信息,都需要查询该标识信息对应的待创建服务是否创建成功。订单创建模块按照待计费队列中的标识信息,在运营商提供的所有宿主机中查找是否存在标识信息对应的待创建服务,如果查询到,则表示该标识信息对应的待创建服务已被成功创建,此时,订单创建模块生成该标识信息对应的待创建服务的创建成功信息,即可针对该待创建服务创建订单。For each identification information in the queue to be billed, the order creation module needs to query whether the service to be created corresponding to the identification information is successfully created. According to the identification information in the queue to be billed, the order creation module searches all hosts provided by the operator to see if there is a service to be created corresponding to the identification information, if found, it means that the service to be created corresponding to the identification information has been successfully created Create, at this time, the order creation module generates the creation success information of the service to be created corresponding to the identification information, and an order can be created for the service to be created.

在实际应用中,针对同一个目标待创建服务,服务创建模块既有可能是在成功创建所述目标待创建服务后,直接向所述订单创建模块发送创建成功通知;也有可能是在开始创建目标待创建服务时,服务创建模块将所述目标待创建服务的标识信息添加到预设的待计费队列中。而对于订单创建模块而言,其并不知道针对某一目标待创建服务,服务创建模块所执行的具体操作,所以本发明实施例中,订单创建模块可以判断是否满足上述条件1和条件2中的任意一种,如果满足,判定自身获得所述目标待创建服务的创建成功信息。In practical applications, for the same target service to be created, the service creation module may directly send a creation success notification to the order creation module after successfully creating the target service to be created; it may also start creating the target When the service is to be created, the service creation module adds the identification information of the target service to be created to the preset to-be-billed queue. For the order creation module, it does not know the specific operations performed by the service creation module for a certain target to be created. Therefore, in the embodiment of the present invention, the order creation module can determine whether the above conditions 1 and 2 are satisfied. If any one of the above is satisfied, it is determined that it obtains the creation success information of the target service to be created.

订单创建模块针对不同的待创建服务的计费方式是不同的,为了使得订单创建模块得到上述目标待创建服务的计费方式信息,在本发明实施例中,目标待创建服务的计费方式信息可以携带在服务创建请求中,如果服务创建模块判定需要对目标待创建服务进行及时计费,则服务创建模块可以先生成携带有上述计费方式信息的创建成功通知,再将所生成的创建成功通知发送给订单创建模块,以使得订单创建模块得到上述目标待创建服务的计费方式信息。The order creation module has different charging methods for different services to be created. In order for the order creation module to obtain the charging method information of the target service to be created, in this embodiment of the present invention, the charging method information of the target service to be created is It can be carried in the service creation request. If the service creation module determines that the target to-be-created service needs to be billed in time, the service creation module can first generate a creation success notification carrying the above charging method information, and then report the generated creation success. The notification is sent to the order creation module, so that the order creation module obtains the charging method information of the above-mentioned target service to be created.

如果服务创建模块判定不需要对目标待创建服务进行及时计费,则服务创建模块以上述计费方式信息作为目标待创建服务的标识信息的一部分,将目标待创建服务的标识信息添加到上述待计费队列中,以使得订单创建模块在扫描待计费队列时,可以从目标待创建服务的标识信息中得到上述目标待创建服务的计费方式信息。If the service creation module determines that it is not necessary to charge the target service to be created in time, the service creation module uses the above charging method information as part of the identification information of the target service to be created, and adds the identification information of the target service to be created to the above In the billing queue, when the order creation module scans the to-be-billed queue, it can obtain the above-mentioned charging method information of the target to-be-created service from the identification information of the target to-be-created service.

为了清楚的介绍本发明实施例中目标待创建服务对应的订单的创建流程,下面通过两个具体示例来对本发明实施例进行简单介绍。In order to clearly describe the creation process of the order corresponding to the target service to be created in the embodiment of the present invention, the embodiment of the present invention is briefly introduced below through two specific examples.

示例1,云服务提供商的客户通过终端设备发送了服务创建请求,该服务创建请求表明,目标待创建服务为需要占用2个CPU内核、3G内存和500G硬盘容量的虚拟云主机x,且服务创建请求携带的计费方式信息表明:该虚拟云主机x的计费方式为按照分钟计算,每分钟1元。Example 1, the customer of the cloud service provider sends a service creation request through the terminal device. The service creation request indicates that the target service to be created is a virtual cloud host x that needs to occupy 2 CPU cores, 3G memory and 500G hard disk capacity, and the service The billing method information carried in the creation request indicates that: the billing method of the virtual cloud host x is calculated on a per-minute basis, 1 yuan per minute.

服务创建模块首先接收到该服务创建请求后,由于该虚拟云主机x的计费方式为按照分钟计算,所以需要对该虚拟云主机x进行及时计费,然后,在服务创建模块成功创建该虚拟云主机x时,向订单创建模块发送该虚拟云主机x对应的创建成功通知,订单创建模块在接收到上述创建成功通知后,即针对该虚拟云主机x创建订单并开始计费。After the service creation module first receives the service creation request, since the virtual cloud host x is charged in minutes, it needs to charge the virtual cloud host x in a timely manner, and then the service creation module successfully creates the virtual cloud host x. When the cloud host x is used, the order creation module sends a creation success notification corresponding to the virtual cloud host x. After receiving the above creation success notification, the order creation module creates an order for the virtual cloud host x and starts billing.

示例2,云服务提供商的客户通过终端设备发送了服务创建请求,该服务创建请求表明,目标待创建服务为需要占用500G硬盘容量的网盘y,且服务创建请求携带的计费方式信息表明:该网盘y的计费方式为按天计算,每天100元。服务创建模块首先接收到该服务创建请求后,由于网盘y的计费方式为按天计算,所以服务创建模块判定不需要对网盘y进行及时计费,然后,在服务创建模块开始创建该网盘y时,将网盘y对应的携带用其计费方式信息的标识信息添加到待计费队列中。Example 2: The client of the cloud service provider sends a service creation request through the terminal device. The service creation request indicates that the target service to be created is the network disk y that needs to occupy 500G hard disk capacity, and the billing method information carried in the service creation request indicates that : The billing method of the network disk y is calculated on a daily basis, 100 yuan per day. After the service creation module first receives the service creation request, since the billing method of the network disk y is calculated on a daily basis, the service creation module determines that it is not necessary to charge the network disk y in time, and then starts to create the service creation module in the service creation module. When the network disk y is used, the identification information corresponding to the network disk y carrying the charging method information is added to the queue to be billed.

本示例中,订单创建模块每间隔45分钟扫描一次待计费队列,订单创建模块在A时刻扫描了一次待计费队列,发现网盘y尚未创建成功;在A时刻后的第20分钟,服务创建模块成功创建网盘y;而后,在A时刻后的第45分钟,订单创建模块再一次扫描待计费队列,查询发现该网盘y已经成功创建,即表明此时订单创建模块已获得对应网盘y的创建成功消息,在此情况下,订单创建模块根据上述计费方式信息,针对该网盘y创建订单并开始计费。In this example, the order creation module scans the to-be-billed queue every 45 minutes. The order-creation module scans the to-be-billed queue at time A and finds that the network disk y has not been created successfully; 20 minutes after time A, the service The creation module successfully created the network disk y; then, at the 45th minute after time A, the order creation module scans the queue to be billed again, and the query finds that the network disk y has been successfully created, which means that the order creation module has obtained the corresponding The creation success message of the network disk y. In this case, the order creation module creates an order for the network disk y and starts charging according to the above charging method information.

在上述订单创建模块判断是否获得所述目标待创建服务的创建成功信息的另一种具体实现方式对应的系统实施例的基础上,所述订单创建模块还可以用于针对所述待计费队列中记录的每一个标识信息,在为该标识信息对应的待创建服务创建订单后,从所述待计费队列中删除该标识信息。On the basis of the system embodiment corresponding to another specific implementation manner in which the above-mentioned order creation module determines whether to obtain the creation success information of the target service to be created, the order creation module can also be used for the queue to be billed. For each identification information recorded in , after an order is created for the service to be created corresponding to the identification information, the identification information is deleted from the to-be-billed queue.

例如,订单创建模块扫描待计费队列时,待计费队列中记录的标识信息如下表2所示,待计费队列中记录有虚拟云主机a~h的标识信息。然后订单创建模块从各个宿主机中查询,上述虚拟云主机a~h是否已经被创建,查询结果表明:虚拟云主机a、c和d已经被创建,所以订单创建模块将分别针对虚拟云主机a、c和d创建相应的订单,订单创建成功后,从待计费队列中删除虚拟云主机a、c和d分别对应的标识信息;此时待计费队列中记录的标识信息如下表3所示。For example, when the order creation module scans the queue to be billed, the identification information recorded in the queue to be billed is shown in Table 2 below, and the identification information of virtual cloud hosts a to h is recorded in the queue to be billed. Then the order creation module inquires from each host to see whether the above virtual cloud hosts a to h have been created. The query result indicates that virtual cloud hosts a, c and d have been created, so the order creation module will target the virtual cloud host a respectively. , c, and d create corresponding orders. After the order is successfully created, delete the identification information corresponding to the virtual cloud hosts a, c and d from the queue to be billed; at this time, the identification information recorded in the queue to be billed is as shown in Table 3 below. Show.

表2Table 2

序号serial number 标识信息identification information 11 虚拟云主机a的标识信息Identification information of virtual cloud host a 22 虚拟云主机b的标识信息Identification information of virtual cloud host b 33 虚拟云主机c的标识信息Identification information of virtual cloud host c 44 虚拟云主机d的标识信息Identification information of virtual cloud host d 55 虚拟云主机e的标识信息Identification information of virtual cloud host e 66 虚拟云主机f的标识信息Identification information of virtual cloud host f 77 虚拟云主机g的标识信息Identification information of virtual cloud host g 88 虚拟云主机h的标识信息The identification information of the virtual cloud host h

表3table 3

序号serial number 标识信息identification information 11 虚拟云主机b的标识信息Identification information of virtual cloud host b 22 虚拟云主机e的标识信息Identification information of virtual cloud host e 33 虚拟云主机f的标识信息Identification information of virtual cloud host f 44 虚拟云主机g的标识信息Identification information of virtual cloud host g 55 虚拟云主机h的标识信息The identification information of the virtual cloud host h

待计费队列中记录的各个标识信息是需要占用一定的内存空间的,订单创建模块在将针对某一标识信息对应的待创建服务成功创建订单后,该标识信息已经没有用处,所以在本实施例中,在为待创建服务创建订单后,从待计费队列中删除待创建服务的标识信息,以减少待计费队列中无用的标识信息对内存的占用。Each identification information recorded in the queue to be billed needs to occupy a certain amount of memory space. After the order creation module successfully creates an order for the service to be created corresponding to a certain identification information, the identification information is no longer useful. Therefore, in this implementation In an example, after an order is created for the service to be created, the identification information of the service to be created is deleted from the queue to be billed, so as to reduce the memory occupation of the useless identification information in the queue to be billed.

可以理解,待计费队列中被添加的每一个标识信息对应待创建服务并非都可以被成功创建,如果某一待创建服务的标识信息被添加到待计费队列中,但是该待创建服务无法成功创建,则该待创建服务的标识信息将会一直留存在待计费队列中,占用存储空间,并且,订单创建模块每次扫描待计费队列后,还需查询该待创建服务是否创建成功,造成资源的浪费。It can be understood that not all the identification information added in the queue to be billed corresponds to the service to be created can be successfully created, if the identification information of a service to be created is added to the queue to be billed, but the service to be created cannot be created. If it is successfully created, the identification information of the to-be-created service will always remain in the to-be-billed queue, occupying storage space, and the order creation module needs to check whether the to-be-created service is successfully created after each scan of the to-be-billed queue. , resulting in a waste of resources.

作为本发明实施例的一种实现方式,在上述任意一个使用到待计费队列的系统实施例的基础上,所述订单创建模块还可以用于针对所述待计费队列中的每一个标识信息,监测该标识信息被添加入所述待计费队列的时长是否超过第二预设时长,如果超过,将该标识信息从所述待计费队列中删除,其中,所述第二预设时长大于所述第一预设时长。As an implementation manner of the embodiment of the present invention, on the basis of any of the above system embodiments using the queue to be billed, the order creation module may also be configured to identify each identifier in the queue to be billed information, monitor whether the duration of the identification information added to the queue to be billed exceeds a second preset duration, and if so, delete the identification information from the queue to be billed, wherein the second preset duration The duration is longer than the first preset duration.

该第二预设时长可以基于实际情况设定,但是需要保证第二预设时长大于第一预设时长;例如,该第一预设时长为45分钟,该第二预设时长为5天。另外,订单创建模块监测标识信息被添加入所述待计费队列的时长是否超过第二预设时长,可以是实时监测,但是为了避免实时监测对资源的消耗,本发明实施例中,订单创建模块可以每间隔固定时长监测一次各个标识信息分别对应的被添加入所述待计费队列的时长是否超过第二预设时长。The second preset duration can be set based on actual conditions, but it needs to be ensured that the second preset duration is greater than the first preset duration; for example, the first preset duration is 45 minutes, and the second preset duration is 5 days. In addition, the order creation module monitors whether the duration of the identification information added to the queue to be billed exceeds the second preset duration, which may be real-time monitoring, but in order to avoid the consumption of resources by real-time monitoring, in this embodiment of the present invention, the order creation The module may monitor whether the time length corresponding to each piece of identification information added to the queue to be billed exceeds the second preset time length at a fixed time interval.

示例性的,订单创建模块每间隔1小时监测一次各个标识信息分别对应的被添加入待计费队列的时长是否超过5天,订单创建模块在2017年6月20日0时0分监测发现:标识信息1在2017年6月14日23时30分被添加入待计费队列,标识信息2在2017年6月18日0时0分被添加入待计费队列,由于标识信息1被添加入待计费队列的时间超过了1天,而标识信息2被添加入待计费队列的时间未超过1天,则订单创建模块将标识信息1从待计费队列中删除。Exemplarily, the order creation module monitors every 1 hour whether the duration of each identification information being added to the queue to be billed exceeds 5 days. The order creation module monitors and finds at 0:00 on June 20, 2017: Identification information 1 was added to the queue to be billed at 23:30 on June 14, 2017, and identification information 2 was added to the queue to be billed at 0:00 on June 18, 2017. Because identification information 1 was added If the time for entering the to-be-billed queue exceeds 1 day, and the time for identification information 2 to be added to the to-be-billed queue does not exceed one day, the order creation module deletes the identification information 1 from the to-be-billed queue.

作为本发明实施例的另一种实现方式,在上述任意一个使用到待计费队列的系统实施例的基础上,所述服务创建模块,还可以用于在将所述目标待创建服务的标识信息添加到上述待计费队列后,确定所述目标待创建服务失败时,将所述目标待创建服务的标识信息从所述待计费队列中删除。As another implementation manner of the embodiment of the present invention, on the basis of any of the above-mentioned system embodiments using the queue to be billed, the service creation module can also be used to set the identifier of the target service to be created After the information is added to the to-be-billed queue, when it is determined that the target to-be-created service fails, the identification information of the target to-be-created service is deleted from the to-be-billed queue.

上述服务创建模块作为创建目标待创建服务的执行者,其完全可以获知目标创建服务是否创建失败,例如,目标待创建服务为需要占用2个CPU内核、3G内存和500G硬盘容量的虚拟云主机z,但是当前没有任何一个宿主机中有足够的资源以创建虚拟云主机z,此时服务创建模块可以确定虚拟云主机x创建失败,并且将虚拟云主机z的标识信息从待计费队列中删除。The above-mentioned service creation module, as the executor of creating the target service to be created, can know whether the target creation service fails to be created. For example, the target service to be created is a virtual cloud host z that needs to occupy 2 CPU cores, 3G memory and 500G hard disk capacity. , but none of the hosts currently has enough resources to create the virtual cloud host z. At this time, the service creation module can determine that the virtual cloud host x failed to be created, and delete the identification information of the virtual cloud host z from the queue to be billed. .

相应于图1所示系统实施例,本发明实施例还提供了一种订单创建方法,应用于订单创建系统,所述系统包括服务创建模块和订单创建模块,如图2所示,所述方法包括:Corresponding to the system embodiment shown in FIG. 1 , an embodiment of the present invention further provides an order creation method, which is applied to an order creation system. The system includes a service creation module and an order creation module. As shown in FIG. 2 , the method include:

S101:服务创建模块获得服务创建请求;S101: The service creation module obtains a service creation request;

S102:服务创建模块创建该服务创建请求对应的目标待创建服务;S102: The service creation module creates the target service to be created corresponding to the service creation request;

S103:订单创建模块判断是否获得目标待创建服务的创建成功信息;如果是,创建目标待创建服务对应的订单。S103: The order creation module determines whether the creation success information of the target service to be created is obtained; if so, an order corresponding to the target service to be created is created.

本实施例提供的方案中,订单是在目标待创建服务成功创建后所创建的,所以不会存无效订单,也不需要人工撤消所创建的订单解决了现有技术中整套创建服务的方法过程繁琐的问题。另外,服务的创建在订单的创建之前,服务的创建不再受订单创建的影响,很好地实现了服务创建模块与订单创建模块的解耦;并且,服务的创建在订单的创建之前,对于整个系统而言,可以更快地去完成服务的创建,客户体验好。In the solution provided by this embodiment, the order is created after the target service to be created is successfully created, so there is no invalid order, and there is no need to manually revoke the created order, which solves the entire process of creating a service in the prior art tedious question. In addition, the creation of the service is before the creation of the order, and the creation of the service is no longer affected by the creation of the order, which well realizes the decoupling of the service creation module and the order creation module; and the creation of the service is before the creation of the order. For the whole system, the creation of services can be completed faster, and the customer experience is good.

相应于上述系统实施例,在图2所示方法实施例的基础上,所述方法还可以包括:Corresponding to the foregoing system embodiment, on the basis of the method embodiment shown in FIG. 2 , the method may further include:

服务创建模块在成功创建目标待创建服务后,向订单创建模块发送创建成功通知;After the service creation module successfully creates the target service to be created, it sends a creation success notification to the order creation module;

相应的,上述订单创建模块判断是否获得目标待创建服务的创建成功信息的步骤,可以包括:Correspondingly, the steps of the above-mentioned order creation module judging whether to obtain the creation success information of the target service to be created may include:

订单创建模块判断是否接收到服务创建模块发送的创建成功通知,若接收到,判定获得目标待创建服务的创建成功信息。The order creation module determines whether the creation success notification sent by the service creation module is received, and if so, determines to obtain the creation success information of the target service to be created.

即,在上述图2所示的方法实施例中,本实施例提供的订单创建方法,如图3所示,该方法包括下述步骤S201-S204。That is, in the method embodiment shown in FIG. 2 above, the order creation method provided in this embodiment, as shown in FIG. 3 , includes the following steps S201-S204.

S201:服务创建模块获得服务创建请求;S201: The service creation module obtains a service creation request;

S202:服务创建模块创建该服务创建请求对应的目标待创建服务;S202: The service creation module creates the target service to be created corresponding to the service creation request;

S203:服务创建模块在成功创建目标待创建服务后,向订单创建模块发送创建成功通知;S203: After the service creation module successfully creates the target service to be created, it sends a creation success notification to the order creation module;

S204:订单创建模块判断是否接收到服务创建模块发送的创建成功通知;如果是,创建目标待创建服务对应的订单。S204: The order creation module determines whether a creation success notification sent by the service creation module is received; if so, creates an order corresponding to the target service to be created.

本实施例提供的方案中,目标待创建服务是由服务创建模块所创建的,所以服务创建模块能够最先获知目标待创建服务是否创建成功,并且在获知目标待创建服务创建成功后,能够最及时地通知订单创建模块,进而使得订单创建模块能够在目标待创建服务被创建后及时地创建订单。In the solution provided by this embodiment, the target service to be created is created by the service creation module, so the service creation module can first know whether the target service to be created is successfully created, and after learning that the target service to be created is successfully created, can The order creation module is notified in a timely manner, so that the order creation module can create an order in a timely manner after the target service to be created is created.

相应于上述系统实施例,在图2所示方法实施例的基础上,在上述订单创建模块判断是否获得目标待创建服务的创建成功信息的步骤之前,上述方法还可以包括:Corresponding to the above-mentioned system embodiment, on the basis of the method embodiment shown in FIG. 2, before the step of determining whether the above-mentioned order creation module obtains the creation success information of the target service to be created, the above-mentioned method may further include:

服务创建模块判断是否需要对目标待创建服务进行及时计费;如果需要,在成功创建目标待创建服务后,向订单创建模块发送创建成功通知;如果不需要,将目标待创建服务的标识信息添加到预设的待计费队列中;The service creation module determines whether the target service to be created needs to be billed in a timely manner; if necessary, after successfully creating the target service to be created, it sends a creation success notification to the order creation module; if not, adds the identification information of the target service to be created to the preset queue to be billed;

其中,上述订单创建模块,还用于每间隔第一预设时长扫描待计费队列;针对所述待计费队列中记录的每一个标识信息,查询该标识信息对应的待创建服务是否创建成功;Wherein, the above-mentioned order creation module is further configured to scan the queue to be billed every first preset duration; for each identification information recorded in the queue to be billed, query whether the service to be created corresponding to the identification information is successfully created ;

相应的,上述订单创建模块判断是否获得目标待创建服务的创建成功信息的步骤,可以包括:Correspondingly, the steps of the above-mentioned order creation module judging whether to obtain the creation success information of the target service to be created may include:

订单创建模块判断是否满足下述两个条件中的任意一种,如果满足,判定获得目标待创建服务的创建成功信息:The order creation module determines whether any of the following two conditions are met, and if so, determines that the creation success information of the target service to be created is obtained:

订单创建模块接收到服务创建模块发送的创建成功通知;The order creation module receives the creation success notification sent by the service creation module;

订单创建模块查询到目标待创建服务创建成功。The order creation module finds that the target service to be created is successfully created.

即,在上述图2所示方法实施例的基础上,本实施例提供的订单创建方法,如图4所示,该方法包括下述步骤S301-S304。That is, on the basis of the method embodiment shown in FIG. 2 above, the order creation method provided in this embodiment, as shown in FIG. 4 , includes the following steps S301-S304.

S301:服务创建模块获得服务创建请求;S301: The service creation module obtains a service creation request;

S302:服务创建模块创建该服务创建请求对应的目标待创建服务;S302: The service creation module creates the target service to be created corresponding to the service creation request;

S303:服务创建模块判断是否需要对目标待创建服务进行及时计费;如果需要,在成功创建目标待创建服务后,向订单创建模块发送创建成功通知;如果不需要,将目标待创建服务的标识信息添加到预设的待计费队列中;S303: The service creation module judges whether the target service to be created needs to be charged in time; if necessary, after the target service to be created is successfully created, it sends a creation success notification to the order creation module; if not, the identifier of the target service to be created is sent to the order creation module The information is added to the preset to-be-billed queue;

S304:订单创建模块判断是否满足下述两个条件中的任意一种;如果是,创建目标待创建服务对应的订单:S304: The order creation module determines whether any one of the following two conditions is satisfied; if so, creates an order corresponding to the target service to be created:

订单创建模块接收到服务创建模块发送的创建成功通知;The order creation module receives the creation success notification sent by the service creation module;

订单创建模块查询到目标待创建服务创建成功。The order creation module finds that the target service to be created is successfully created.

具体的,在实际应用中,上述服务创建请求中可以携带有目标待创建服务的计费方式;Specifically, in practical applications, the above-mentioned service creation request may carry the charging method of the target service to be created;

在此情况下,上述服务创建模块判断是否需要对目标待创建服务进行及时计费的步骤,可以包括:In this case, the step of determining whether the target service to be created needs to be charged in time by the above-mentioned service creation module may include:

服务创建模块基于该服务创建请求所携带的计费方式,判断是否需要对目标待创建服务进行及时计费。The service creation module determines whether the target service to be created needs to be charged in time based on the charging method carried in the service creation request.

相应于上述系统实施例,在上述图4所示方法实施例的基础上,在上述创建目标待创建服务对应的订单的步骤之后,上述方法还可以包括:Corresponding to the foregoing system embodiment, on the basis of the foregoing method embodiment shown in FIG. 4 , after the foregoing step of creating an order corresponding to the target service to be created, the foregoing method may further include:

订单创建模块从待计费队列中删除目标待创建服务的标识信息。The order creation module deletes the identification information of the target service to be created from the to-be-billed queue.

即,在上述图4所示方法实施例的基础上,本实施例提供的订单创建方法,如图5所示,该方法包括下述步骤S401-S405。That is, based on the method embodiment shown in FIG. 4 above, the order creation method provided in this embodiment, as shown in FIG. 5 , includes the following steps S401-S405.

S401:服务创建模块获得服务创建请求;S401: The service creation module obtains a service creation request;

S402:服务创建模块创建该服务创建请求对应的目标待创建服务;S402: The service creation module creates the target service to be created corresponding to the service creation request;

S403:服务创建模块判断是否需要对目标待创建服务进行及时计费;如果需要,在成功创建目标待创建服务后,向订单创建模块发送创建成功通知;如果不需要,将目标待创建服务的标识信息添加到预设的待计费队列中;S403: The service creation module determines whether the target service to be created needs to be charged in time; if necessary, after the target service to be created is successfully created, it sends a creation success notification to the order creation module; if not, the identifier of the target service to be created is set The information is added to the preset to-be-billed queue;

S404:订单创建模块判断是否满足下述两个条件中的任意一种;如果是,创建目标待创建服务对应的订单:S404: The order creation module determines whether any one of the following two conditions is satisfied; if so, creates an order corresponding to the target service to be created:

订单创建模块接收到服务创建模块发送的创建成功通知;The order creation module receives the creation success notification sent by the service creation module;

订单创建模块查询到目标待创建服务创建成功。The order creation module finds that the target service to be created is successfully created.

S405:订单创建模块在成功创建目标待创建服务对应的订单后,从待计费队列中删除目标待创建服务的标识信息。S405: After successfully creating the order corresponding to the target service to be created, the order creation module deletes the identification information of the target service to be created from the to-be-billed queue.

相应于上述系统实施例,在上述任一方法实施例的基础上,在所述将所述目标待创建服务的标识信息添加到预设的待计费队列中的步骤之后,所述方法还可以包括:Corresponding to the above system embodiment, on the basis of any of the above method embodiments, after the step of adding the identification information of the target service to be created to the preset to-be-billed queue, the method may also include:

所述服务创建模块在确定所述目标待创建服务失败时,将所述目标待创建服务的标识信息从所述待计费队列中删除。When determining that the target service to be created fails, the service creation module deletes the identification information of the target service to be created from the to-be-billed queue.

另外,本发明实施例还提供了一种电子设备,如图6所示,包括处理器501、通信接口502、存储器503和通信总线504,其中,处理器501,通信接口502,存储器503通过通信总线504完成相互间的通信,In addition, an embodiment of the present invention also provides an electronic device, as shown in FIG. 6 , including a processor 501, a communication interface 502, a memory 503, and a communication bus 504, wherein the processor 501, the communication interface 502, and the memory 503 communicate through The bus 504 completes the communication with each other,

存储器503,用于存放计算机程序;a memory 503 for storing computer programs;

处理器501,用于执行存储器503上所存放的程序时,实现如下步骤:When the processor 501 is used to execute the program stored in the memory 503, the following steps are implemented:

服务创建模块获得服务创建请求;The service creation module obtains the service creation request;

服务创建模块创建该服务创建请求对应的目标待创建服务;The service creation module creates the target service to be created corresponding to the service creation request;

订单创建模块判断是否获得目标待创建服务的创建成功信息;如果是,创建目标待创建服务对应的订单。The order creation module determines whether the creation success information of the target service to be created is obtained; if so, an order corresponding to the target service to be created is created.

关于该方法各个步骤的具体实现以及相关解释内容可以参见上述图2~5所示的方法实施例,在此不做赘述。For the specific implementation of each step of the method and related explanation contents, reference may be made to the method embodiments shown in FIGS. 2 to 5 above, which will not be repeated here.

上述电子设备提到的通信总线可以是外设部件互连标准(Peripheral ComponentInterconnect,PCI)总线或扩展工业标准结构(Extended Industry StandardArchitecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus mentioned in the above electronic device may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus or the like. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

通信接口用于上述电子设备与其他设备之间的通信。The communication interface is used for communication between the above electronic device and other devices.

存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital SignalProcessing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; may also be a digital signal processor (Digital Signal Processing, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

在本发明提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述实施例中任一所述的订单创建方法。In yet another embodiment provided by the present invention, a computer-readable storage medium is also provided, where instructions are stored in the computer-readable storage medium, when the computer-readable storage medium is run on a computer, the computer is made to execute any one of the above-mentioned embodiments. The described order creation method.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any relationship between these entities or operations. any such actual relationship or sequence exists. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于方法、电子设备以及计算机存储介质实施例而言,由于其基本相似于系统实施例,所以描述的比较简单,相关之处参见系统实施例的部分说明即可。Each embodiment in this specification is described in a related manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the method, electronic device, and computer storage medium, since they are basically similar to the system embodiments, the description is relatively simple, and reference may be made to some descriptions of the system embodiments for related parts.

以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (11)

1. An order creation system, the system comprising:
the service creation module is used for obtaining a service creation request; creating a target service to be created corresponding to the service creation request;
the order creating module is used for judging whether creating success information of the target service to be created is obtained or not; if so, creating an order corresponding to the target service to be created;
the service creation module is also used for judging whether the target service to be created needs to be charged in time; if necessary, after the target service to be created is created successfully, a successful creation notification is sent to the order creation module; if not, adding the identification information of the target service to be created into a preset queue to be charged;
the order creating module is further used for scanning the queue to be charged at intervals of a first preset duration; for each identification information recorded in the queue to be charged, inquiring whether the service to be created corresponding to the identification information is successfully created;
correspondingly, the order creating module judges whether to obtain successful creation information of the target service to be created, specifically:
judging whether any one of the following two conditions is met, if so, judging to obtain the creation success information of the target service to be created:
the order creating module receives a creating success notification sent by the service creating module;
and the order creation module inquires that the target service to be created is successfully created.
2. The system according to claim 1, wherein the service creation request carries a charging mode of the target service to be created;
the service creation module judges whether the target service to be created needs to be charged in time, and specifically comprises the following steps:
and judging whether the target service to be created needs to be charged in time or not based on the charging mode.
3. The system according to claim 2, wherein the order creating module is further configured to, for each piece of identification information recorded in the queue to be billed, delete the identification information from the queue to be billed after creating an order for the service to be created corresponding to the identification information.
4. The system according to any one of claims 1 to 3, wherein the order creation module is further configured to monitor, for each identification information in the queue to be billed, whether a duration that the identification information is added to the queue to be billed exceeds a second preset duration, and if so, delete the identification information from the queue to be billed, where the second preset duration is longer than the first preset duration.
5. The system according to any one of claims 1 to 3,
the service creation module is further configured to delete the identification information of the target service to be created from the queue to be charged when it is determined that the target service to be created fails after the identification information of the target service to be created is added to the queue to be charged.
6. An order creation method applied to an order creation system including a service creation module and an order creation module, the method comprising:
the service creation module obtains a service creation request;
the service creating module creates a target service to be created corresponding to the service creating request;
the order creating module judges whether creating success information of the target service to be created is obtained or not; if so, creating an order corresponding to the target service to be created;
before the step of the order creation module determining whether to obtain successful creation information of the target service to be created, the method further includes:
the service creation module judges whether the target service to be created needs to be charged in time; if necessary, after the target service to be created is created successfully, a successful creation notification is sent to the order creation module; if not, adding the identification information of the target service to be created into a preset queue to be charged;
the order creating module is further used for scanning the queue to be charged at intervals of a first preset duration; for each identification information recorded in the queue to be charged, inquiring whether the service to be created corresponding to the identification information is successfully created;
correspondingly, the step of judging whether to obtain the successful creation information of the target service to be created by the order creation module includes:
the order creation module judges whether any one of the following two conditions is met, and if so, the order creation module judges that the creation success information of the target service to be created is obtained:
the order creating module receives a creating success notification sent by the service creating module;
and the order creation module inquires that the target service to be created is successfully created.
7. The method according to claim 6, wherein the service creation request carries a charging mode of the target service to be created;
the step of judging whether the target service to be created needs to be charged in time by the service creation module comprises the following steps:
and the service creation module judges whether the target service to be created needs to be charged in time or not based on the charging mode.
8. The method of claim 6, wherein after the step of creating the order corresponding to the target to-be-created service, the method further comprises:
and the order creating module deletes the identification information of the target service to be created from the queue to be charged.
9. The method according to any one of claims 6 to 8, wherein after the step of adding the identification information of the target service to be created to a preset queue to be charged, the method further comprises:
and the service creation module deletes the identification information of the target service to be created from the queue to be charged when determining that the target service to be created fails.
10. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 6 to 9 when executing a program stored in the memory.
11. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any of the claims 6-9.
CN201710527424.7A 2017-06-30 2017-06-30 Order creation system, method, electronic device and computer-readable storage medium Active CN109214877B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710527424.7A CN109214877B (en) 2017-06-30 2017-06-30 Order creation system, method, electronic device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710527424.7A CN109214877B (en) 2017-06-30 2017-06-30 Order creation system, method, electronic device and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN109214877A CN109214877A (en) 2019-01-15
CN109214877B true CN109214877B (en) 2020-12-25

Family

ID=64991682

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710527424.7A Active CN109214877B (en) 2017-06-30 2017-06-30 Order creation system, method, electronic device and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN109214877B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102339444A (en) * 2010-07-27 2012-02-01 戴元顺 Cloud supermarket system
CN103731278A (en) * 2011-12-31 2014-04-16 华茂云天科技(北京)有限公司 Service billing system of cloud computing platform
US8943497B2 (en) * 2008-05-29 2015-01-27 Red Hat, Inc. Managing subscriptions for cloud-based virtual machines
CN104333457A (en) * 2014-11-20 2015-02-04 杭州华三通信技术有限公司 Cloud computing service charging method and device
CN106027629A (en) * 2016-05-13 2016-10-12 北京思特奇信息技术股份有限公司 Automatic cloud service provisioning method and system
CN106257524A (en) * 2016-05-13 2016-12-28 浙江大学 A kind of charging method of cloud infrastructure services

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8943497B2 (en) * 2008-05-29 2015-01-27 Red Hat, Inc. Managing subscriptions for cloud-based virtual machines
CN102339444A (en) * 2010-07-27 2012-02-01 戴元顺 Cloud supermarket system
CN103731278A (en) * 2011-12-31 2014-04-16 华茂云天科技(北京)有限公司 Service billing system of cloud computing platform
CN104333457A (en) * 2014-11-20 2015-02-04 杭州华三通信技术有限公司 Cloud computing service charging method and device
CN106027629A (en) * 2016-05-13 2016-10-12 北京思特奇信息技术股份有限公司 Automatic cloud service provisioning method and system
CN106257524A (en) * 2016-05-13 2016-12-28 浙江大学 A kind of charging method of cloud infrastructure services

Also Published As

Publication number Publication date
CN109214877A (en) 2019-01-15

Similar Documents

Publication Publication Date Title
JP6332774B2 (en) Network function virtualized NFV failure management apparatus, device, and method
CN110335022A (en) Automatic audit method, device, equipment and storage medium
CN110233741B (en) Service charging method, device, equipment and storage medium
WO2012171349A1 (en) Method, apparatus and system for implementing distributed auto-incrementing counting
US12231351B2 (en) Determining resource usage metrics for cloud computing systems
CN105095023A (en) Cloud host establishing device and method and calculating equipment
WO2021022916A1 (en) Charging method, device, and system
CN116628033A (en) Cache preheating and data processing method, service device, electronic equipment and medium
CN115412609B (en) Service processing method, device, server and storage medium
CN111679919A (en) Data interaction method, device, device and storage medium
CN105493444A (en) Fault management apparatus, device and method for network function virtualization (nfv)
CN110377422A (en) A kind of method for managing resource, device, equipment and readable storage medium storing program for executing
CN109214877B (en) Order creation system, method, electronic device and computer-readable storage medium
US20170228408A1 (en) Data management apparatus and method therefor
JP2012089049A (en) Computer system and server
CN107451059A (en) A kind of method for testing software and test device
CN111125232A (en) Method and device for accessing public cloud asset information
US20220327242A1 (en) Data management method and apparatus
CN113347028B (en) Internet of things platform management system developed based on MQTT and RocktMQ
US20150271538A1 (en) System and Method for IPTV Value-added Service Management
KR102137914B1 (en) Group Notification Aggregation Method in IoT/M2M Platform
CN113766442B (en) A traffic resource sharing method, device, computing device and storage medium
CN111355761A (en) System, method, device, electronic device and medium for obtaining directional traffic resource
CN108805741B (en) A method, device and system for fusion of power quality data
CN112085604A (en) A method and device for upgrading smart contracts

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