CN109614209B - A task processing method, application server and system - Google Patents
A task processing method, application server and system Download PDFInfo
- Publication number
- CN109614209B CN109614209B CN201811261141.3A CN201811261141A CN109614209B CN 109614209 B CN109614209 B CN 109614209B CN 201811261141 A CN201811261141 A CN 201811261141A CN 109614209 B CN109614209 B CN 109614209B
- Authority
- CN
- China
- Prior art keywords
- task
- application server
- tasks
- processed
- pending
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/542—Event management; Broadcasting; Multicasting; Notifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/541—Client-server
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Computer And Data Communications (AREA)
Abstract
本说明书实施例提供一种任务处理方法,在任务创建时,对应的任务信息中包括创建该任务的服务器标识,在进行任务处理时,基于每个任务信息中的用户标识,任务处理装置将任务信息分发至第一应用服务器,第一应用服务器基于任务信息,生成待处理任务列表,将待处理任务列表广播至所有应用服务器,控制每个应用服务器处理所述待处理任务列表中与自身服务器标识一致的待处理任务。这样,就可以将需要处理的任务列表广播到所有应用服务器,接受到任务列表的应用服务器只处理自己创建的任务,丢弃其他任务,从而保证逻辑的一致性,确保任务处理的成功率。
The embodiment of this specification provides a task processing method. When a task is created, the corresponding task information includes the identification of the server that created the task. When performing task processing, based on the user identification in each task information, the task processing device converts the task The information is distributed to the first application server. Based on the task information, the first application server generates a list of tasks to be processed, broadcasts the list of tasks to be processed to all application servers, and controls each application server to process the tasks identified in the list of tasks to be processed. Consistent pending tasks. In this way, the task list that needs to be processed can be broadcast to all application servers, and the application server that receives the task list only processes the tasks created by itself and discards other tasks, thereby ensuring logical consistency and the success rate of task processing.
Description
技术领域technical field
本说明书实施例涉及互联网技术领域,尤其涉及一种任务处理方法、应用服务器及系统。The embodiments of this specification relate to the field of Internet technologies, and in particular, to a task processing method, application server and system.
背景技术Background technique
随着互联网的快速发展,促进了互联网业务系统的不断改进和发展,为人们的生活带来极大的便利。但是随着业务的增多,在开发环境中,为了验证各自的业务,线下部署了多种不同代码逻辑的服务器,各服务器部署的代码可能不一致。许多任务在进行任务处理的过程中很容易被调度到了其他业务的服务器上,被分配的服务器没有处理分配到的任务的代码逻辑,导致任务处理失败。With the rapid development of the Internet, the continuous improvement and development of Internet business systems have been promoted, bringing great convenience to people's lives. However, with the increase of business, in the development environment, in order to verify their respective business, a variety of servers with different code logic are deployed offline, and the code deployed by each server may be inconsistent. Many tasks are easily dispatched to other business servers during task processing, and the assigned server does not have the code logic to process the assigned tasks, resulting in task processing failure.
发明内容Contents of the invention
本说明书实施例提供及一种任务处理方法、应用服务器及系统。The embodiment of this specification provides a task processing method, application server and system.
第一方面,本说明书实施例提供一种任务处理方法,应用于任务处理系统中,所述任务处理系统包括任务处理装置和多个应用服务器,所述任务处理方法包括:In the first aspect, the embodiment of this specification provides a task processing method, which is applied to a task processing system, where the task processing system includes a task processing device and multiple application servers, and the task processing method includes:
所述任务处理装置获取待处理任务的任务信息,并基于所述任务信息中的用户标识,将所述任务信息分发至与所述用户标识对应的第一应用服务器,其中,所述第一应用服务器属于所述多个应用服务器,所述任务信息中包含创建所述待处理任务的第二应用服务器的服务器标识以及所述待处理任务对应的用户标识,所述第二应用服务器中设置有用于处理所述待处理任务的处理模块;The task processing device acquires task information of a task to be processed, and distributes the task information to a first application server corresponding to the user identifier based on a user identifier in the task information, wherein the first application The server belongs to the plurality of application servers, the task information includes the server identification of the second application server that creates the task to be processed and the user identification corresponding to the task to be processed, and the second application server is configured to a processing module for processing the task to be processed;
所述第一应用服务器接收所述任务信息,基于所述任务信息生成待处理任务列表,并将所述待处理任务列表广播至所述多个应用服务器,所述待处理任务列表中携带有所述服务器标识;The first application server receives the task information, generates a list of tasks to be processed based on the task information, and broadcasts the list of tasks to be processed to the multiple application servers, and the list of tasks to be processed carries all the server ID;
所述多个应用服务器中的每个应用服务器接收所述待处理任务列表,并在确认所述待处理任务列表中的所述服务器标识与自身服务器标识一致后,对所述待处理任务进行处理。Each application server in the multiple application servers receives the pending task list, and processes the pending task after confirming that the server ID in the pending task list is consistent with its own server ID .
第二方面,本说明书实施例提供一种任务处理系统,包括任务处理装置和多个应用服务器,其中:In the second aspect, the embodiment of this specification provides a task processing system, including a task processing device and multiple application servers, wherein:
所述任务处理装置用于获取待处理任务的任务信息,并基于所述任务信息中的用户标识,将所述任务信息分发至与所述用户标识对应的第一应用服务器,其中,所述第一应用服务器属于所述多个应用服务器,所述任务信息中包含创建所述待处理任务的第二应用服务器的服务器标识以及所述待处理任务对应的用户标识,所述第二应用服务器中设置有用于处理所述待处理任务的处理模块;The task processing device is configured to acquire task information of a task to be processed, and distribute the task information to a first application server corresponding to the user identifier based on a user identifier in the task information, wherein the second An application server belongs to the plurality of application servers, and the task information includes the server identifier of the second application server that creates the task to be processed and the user identifier corresponding to the task to be processed, and the second application server sets There is a processing module for processing said pending tasks;
所述第一应用服务器接收所述任务信息,基于所述任务信息生成待处理任务列表,并将所述待处理任务列表广播至所述多个应用服务器,所述待处理任务列表中携带有所述服务器标识;The first application server receives the task information, generates a list of tasks to be processed based on the task information, and broadcasts the list of tasks to be processed to the multiple application servers, and the list of tasks to be processed carries all the server ID;
所述多个应用服务器中的每个应用服务器接收所述待处理任务列表,并在确认所述待处理任务列表中的所述服务器标识与自身服务器标识一致后,对所述待处理任务进行处理。Each application server in the multiple application servers receives the pending task list, and processes the pending task after confirming that the server ID in the pending task list is consistent with its own server ID .
第三方面,本说明书实施例提供一种应用于应用服务器,所述方法包括:In a third aspect, the embodiment of this specification provides an application server, the method includes:
创建目标待处理任务,将所述应用服务器的服务器标识添加至所述目标待处理任务的任务信息中;Create a target to-be-processed task, and add the server identifier of the application server to the task information of the target to-be-processed task;
接收待处理任务列表,所述待处理任务列表中存储有每个待处理任务的任务信息;receiving a pending task list, the task information of each pending task is stored in the pending task list;
遍历所述待处理任务列表中每个待处理任务的任务信息,确定任务信息中服务器标识与所述应用服务器的服务器标识一致的所述目标待处理任务;Traverse the task information of each pending task in the pending task list, and determine the target pending task whose server identifier in the task information is consistent with the server identifier of the application server;
对所述目标待处理任务进行处理。Process the target pending task.
第四方面,本说明书实施例提供一种应用服务器,包括:In a fourth aspect, the embodiment of this specification provides an application server, including:
创建单元,用于创建目标待处理任务,将所述应用服务器的服务器标识添加至所述目标待处理任务的任务信息中;A creating unit, configured to create a target pending task, and add the server identifier of the application server to the task information of the target pending task;
接收单元,用于接收待处理任务列表,所述待处理任务列表中存储有每个待处理任务的任务信息;a receiving unit, configured to receive a list of tasks to be processed, wherein task information of each task to be processed is stored in the list of tasks to be processed;
确定单元,用于遍历所述待处理任务列表中每个待处理任务的任务信息,确定任务信息中服务器标识与所述应用服务器的服务器标识一致的所述目标待处理任务;A determining unit, configured to traverse the task information of each pending task in the pending task list, and determine the target pending task whose server identifier in the task information is consistent with the server identifier of the application server;
处理单元,用于对所述目标待处理任务进行处理。A processing unit, configured to process the target task to be processed.
第五方面,本说明书实施例提供一种应用服务器,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述第三方面任务处理方法的步骤。In the fifth aspect, the embodiment of this specification provides an application server, including a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the program, the above-mentioned tasks in the third aspect are realized. The steps of the processing method.
第六方面,本说明书实施例提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述第三方面任务处理方法的步骤。In a sixth aspect, the embodiment of this specification provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of the above-mentioned task processing method in the third aspect are implemented.
本说明书实施例有益效果如下:The beneficial effects of the embodiments of this specification are as follows:
在本说明书实施例提供的应用于任务处理系统的任务处理方法,由于应用服务器在任务创建时,对应的任务信息中包括创建该任务的服务器标识,记录该任务由哪台服务器创建,进而,在进行任务处理时,任务处理装置获取待处理任务的任务信息,并基于任务信息中的用户标识,将任务信息分发至与用户标识对应的第一应用服务器,其中,第一应用服务器属于多个应用服务器,任务信息中包含创建待处理任务的第二应用服务器的服务器标识以及待处理任务对应的用户标识,第二应用服务器中设置有用于处理待处理任务的处理模块,进而,第一应用服务器接收任务信息,基于任务信息生成待处理任务列表,并将待处理任务列表广播至多个应用服务器,待处理任务列表中携带有服务器标识,最后,多个应用服务器中的每个应用服务器接收待处理任务列表,并在确认待处理任务列表中的服务器标识与自身服务器标识一致后,对待处理任务进行处理。这样,就可以将需要处理的任务列表广播到所有应用服务器,接受到任务列表的应用服务器只处理自己创建的任务,丢弃其他任务,从而保证逻辑的一致性,确保任务处理的成功率。In the task processing method applied to the task processing system provided by the embodiment of this specification, when the application server creates a task, the corresponding task information includes the server ID that created the task, and records which server the task was created by, and then, in When performing task processing, the task processing device acquires task information of tasks to be processed, and based on the user identification in the task information, distributes the task information to a first application server corresponding to the user identification, wherein the first application server belongs to multiple application server, the task information includes the server ID of the second application server that creates the task to be processed and the user ID corresponding to the task to be processed, the second application server is provided with a processing module for processing the task to be processed, and then the first application server receives Task information, generate a pending task list based on the task information, and broadcast the pending task list to multiple application servers, the pending task list carries the server identifier, and finally, each application server in the multiple application servers receives the pending task list, and after confirming that the server ID in the pending task list is consistent with its own server ID, the pending task is processed. In this way, the task list that needs to be processed can be broadcast to all application servers, and the application server that receives the task list only processes the tasks created by itself and discards other tasks, thereby ensuring logical consistency and the success rate of task processing.
附图说明Description of drawings
图1为本说明书实施例第一方面提供的任务处理系统示意图;Fig. 1 is a schematic diagram of the task processing system provided by the first aspect of the embodiment of this specification;
图2为本说明书实施例第一方面提供的任务处理系统应用于开户场景示意图;FIG. 2 is a schematic diagram of the application of the task processing system provided in the first aspect of the embodiment of this specification to an account opening scenario;
图3为本说明书实施例第一方面提供的任务处理系统中现有分发方式示意图;FIG. 3 is a schematic diagram of an existing distribution method in the task processing system provided by the first aspect of the embodiment of this specification;
图4为本说明书实施例第一方面提供的任务处理系统中任务处理方式示意图;Fig. 4 is a schematic diagram of a task processing method in the task processing system provided by the first aspect of the embodiment of the present specification;
图5为本说明书实施例第一方面提供的任务处理系统应用到具体示例的系统流程图;Fig. 5 is a system flow chart of the application of the task processing system provided in the first aspect of the embodiment of this specification to a specific example;
图6为本说明书实施例第一方面提供的任务处理系统中将异步任务中的参数信息转换为JOSN格式的一个具体示例;FIG. 6 is a specific example of converting parameter information in an asynchronous task into JSON format in the task processing system provided by the first aspect of the embodiment of this specification;
图7为本说明书实施例第一方面提供的任务处理系统中具体异步任务调度示例图;Fig. 7 is an example diagram of specific asynchronous task scheduling in the task processing system provided by the first aspect of the embodiment of this specification;
图8为本说明书实施例第二方面提供的应用于任务处理系统的任务处理方法流程图;FIG. 8 is a flow chart of a task processing method applied to a task processing system provided by the second aspect of the embodiment of this specification;
图9为本说明书实施例第三方面提供的应用于应用服务器的任务处理方法流程图;FIG. 9 is a flowchart of a task processing method applied to an application server provided by the third aspect of the embodiment of this specification;
图10为本说明书实施例第四方面提供的应用服务器结构示意图;FIG. 10 is a schematic structural diagram of the application server provided by the fourth aspect of the embodiment of this specification;
图11为本说明书实施例第五方面提供的应用服务器结构示意图。Fig. 11 is a schematic structural diagram of the application server provided by the fifth aspect of the embodiment of this specification.
具体实施方式Detailed ways
为了更好的理解上述技术方案,下面通过附图以及具体实施例对本说明书实施例的技术方案做详细的说明,应当理解本说明书实施例以及实施例中的具体特征是对本说明书实施例技术方案的详细的说明,而不是对本说明书技术方案的限定,在不冲突的情况下,本说明书实施例以及实施例中的技术特征可以相互组合。In order to better understand the above technical solutions, the technical solutions of the embodiments of this specification will be described in detail below through the drawings and specific examples. It should be understood that the embodiments of this specification and the specific features in the embodiments are the technical solutions of the embodiments of this specification. It is a detailed description, rather than a limitation to the technical solutions of this specification. In the case of no conflict, the embodiments of this specification and the technical features in the embodiments can be combined with each other.
第一方面,本说明书实施例提供一种任务处理系统,请参考图1,包括任务处理装置101和多个应用服务器102,其中:In the first aspect, the embodiment of this specification provides a task processing system, please refer to FIG. 1 , which includes a task processing device 101 and multiple application servers 102, wherein:
任务处理装置101用于获取待处理任务的任务信息,并基于任务信息中的用户标识,将任务信息分发至与用户标识对应的第一应用服务器,其中,第一应用服务器属于多个应用服务器,任务信息中包含创建待处理任务的第二应用服务器的服务器标识以及待处理任务对应的用户标识,第二应用服务器中设置有用于处理待处理任务的处理模块;The task processing device 101 is configured to acquire task information of a task to be processed, and distribute the task information to a first application server corresponding to the user identification based on the user identification in the task information, wherein the first application server belongs to multiple application servers, The task information includes the server identification of the second application server that creates the task to be processed and the user identification corresponding to the task to be processed, and the second application server is provided with a processing module for processing the task to be processed;
第一应用服务器接收任务信息,基于任务信息生成待处理任务列表,并将待处理任务列表广播至多个应用服务器,待处理任务列表中携带有服务器标识;The first application server receives task information, generates a list of tasks to be processed based on the task information, and broadcasts the list of tasks to be processed to multiple application servers, and the list of tasks to be processed carries a server identifier;
多个应用服务器中的每个应用服务器接收待处理任务列表,并在确认待处理任务列表中的服务器标识与自身服务器标识一致后,对待处理任务进行处理。Each application server among the plurality of application servers receives the list of tasks to be processed, and processes the tasks to be processed after confirming that the server identification in the list of tasks to be processed is consistent with its own server identification.
其中,任务处理系统还包括调度中心103,调度中心103用于周期性地触发异步任务,通知任务处理装置101处理预设任务列表中的待处理任务,以使得任务处理装置101从预设任务列表中获取待处理任务的任务信息。Wherein, the task processing system further includes a scheduling center 103, and the scheduling center 103 is used to periodically trigger asynchronous tasks, and notify the task processing device 101 to process pending tasks in the preset task list, so that the task processing device 101 starts from the preset task list Get the task information of the pending task.
任务处理系统还包括通信装置,通信装置用于在任务处理装置获取待处理任务的任务信息之前,接收用户终端发送的业务请求,并通知与业务请求对应的第二应用服务器创建与业务请求对应的待处理任务。The task processing system also includes a communication device, which is used to receive the service request sent by the user terminal before the task processing device obtains the task information of the task to be processed, and notify the second application server corresponding to the service request to create a service request corresponding to the service request. pending tasks.
其中,第二应用服务器在接收到通信装置的通知后,创建与业务请求对应的待处理任务,添加服务器标识至待处理任务的任务信息中。Wherein, after receiving the notification from the communication device, the second application server creates a task to be processed corresponding to the service request, and adds the server identifier to the task information of the task to be processed.
具体的,在本实施例中,首先通过通信装置接收用户终端发送的业务请求,并通知对应的第二应用服务器创建与业务请求对应的待处理任务,具体的,用户终端发送一些业务请求,系统将其分配至对应的第二应用服务器,第二应用服务器针对用户的业务请求创建待处理任务,为了解决各应用服务器代码逻辑不一致导致任务处理失败的问题,在第二应用服务器创建业务请求对应的待处理任务时,第二服务器具备处理该待处理任务的处理模块(代码逻辑),将自己的服务器标识添加至待处理任务的任务信息中,并将待处理任务与任务信息存储至预设任务表中。Specifically, in this embodiment, the service request sent by the user terminal is first received through the communication device, and the corresponding second application server is notified to create a task to be processed corresponding to the service request. Specifically, the user terminal sends some service requests, and the system Assign it to the corresponding second application server. The second application server creates tasks to be processed for the user's business request. In order to solve the problem that the logic inconsistency of each application server code leads to the failure of task processing, the second application server creates a task corresponding to the business request. When a task is to be processed, the second server has a processing module (code logic) for processing the task to be processed, adds its own server identification to the task information of the task to be processed, and stores the task to be processed and the task information to the preset task table.
然后,调度中心103周期性地触发异步任务,通知任务处理装置103处理预设任务表中预设条数的待处理任务。比如:每次调度1000条待处理任务。通知任务处理装置103处理预设任务表中指定的预设条数的待处理任务。Then, the scheduling center 103 periodically triggers the asynchronous tasks, and notifies the task processing device 103 to process the preset number of pending tasks in the preset task list. For example: schedule 1000 pending tasks each time. The task processing unit 103 is notified to process the preset number of pending tasks specified in the preset task table.
进而,任务处理装置103,在接收调度中心103发送的待处理任务的任务信息后,进行任务的三层分发。首先,进行第一层分发,基于任务信息中的用户标识,将任务信息分发至与该用户标识对应的第一应用服务器。然后,进行第二层分发,第一应用服务器基于分配到的任务信息,按预设策略读取对应的待处理任务,生成待处理任务列表,将待处理任务列表广播至所有应用服务器。最后,进行第三层分发,系统中每个应用服务器处理待处理任务列表中与自身服务器标识一致的待处理任务,丢弃与自身服务器标识不一致的待处理任务。这样,就可以将需要处理的任务列表广播到所有应用服务器,接受到任务列表的应用服务器只处理自己创建的任务,丢弃其他任务,从而保证逻辑的一致性,确保任务处理的成功率。Furthermore, after receiving the task information of the task to be processed sent by the dispatching center 103, the task processing device 103 performs three-tier distribution of tasks. First, the first layer of distribution is performed, and based on the user identifier in the task information, the task information is distributed to the first application server corresponding to the user identifier. Then, the second layer of distribution is performed. Based on the assigned task information, the first application server reads the corresponding tasks to be processed according to the preset strategy, generates a list of tasks to be processed, and broadcasts the list of tasks to be processed to all application servers. Finally, the third layer of distribution is carried out, each application server in the system processes the pending tasks in the pending task list consistent with its own server ID, and discards the pending tasks inconsistent with its own server ID. In this way, the task list that needs to be processed can be broadcast to all application servers, and the application server that receives the task list only processes the tasks created by itself and discards other tasks, thereby ensuring logical consistency and the success rate of task processing.
本实施例中的任务处理系统可以是一个开户服务系统,待处理任务为开户任务,具体的,本实施例主要以开户场景对本实施例中的任务处理系统的任务处理过程进行详细描述。The task processing system in this embodiment may be an account opening service system, and the task to be processed is an account opening task. Specifically, this embodiment mainly describes the task processing process of the task processing system in this embodiment in detail based on an account opening scenario.
请参考图2,本实施例的任务处理系统应用于开户场景示意图。位于用户侧的用户终端1、2……n,在发起开户请求时,都发送给任务处理系统(即:开户服务系统),通过开户服务系统转换为异步任务,控制任务并发数量,向金融机构服务器发起开户请求业务。用户终端1、2……n的数量可以是海量用户在同一时间段的集中开户请求,可以同步被开户服务系统接收,也可以全时段实时被接收。开户服务系统主要包含调度中心103和任务处理装置,用于处理这些用户终端1、2……n的开户请求,通过异步线程将各个用户终端1、2……n的开户请求保存在预设任务表中。然后根据调度中心103配置的时间周期,周期性的触发异步任务以调取预设任务表中保存的开户请求,交由任务处理装置逐层分发给平台内的应用服务器,从而一方面能够将任务均衡派发到平台中所有应用服务器上去执行,显著提升系统整体处理的能力,另一方面控制了向金融机构服务器发起开户业务的任务数量,缓解金融机构服务器的处理负担。Please refer to FIG. 2 , which is a schematic diagram of a scenario where the task processing system of this embodiment is applied to an account opening. User terminals 1, 2...n on the user side, when initiating account opening requests, send them to the task processing system (namely: account opening service system), which converts them into asynchronous tasks through the account opening service system, controls the number of concurrent tasks, and reports to financial institutions The server initiates an account opening request service. The number of user terminals 1, 2...n may be the centralized account opening requests of a large number of users in the same time period, which may be received by the account opening service system synchronously or in real time all the time. The account opening service system mainly includes a dispatch center 103 and a task processing device, which are used to process the account opening requests of these user terminals 1, 2...n, and store the account opening requests of each user terminal 1, 2...n in the preset task through an asynchronous thread table. Then, according to the time period configured by the dispatching center 103, asynchronous tasks are periodically triggered to retrieve the account opening requests stored in the preset task table, and the task processing device distributes them layer by layer to the application servers in the platform, so that the task can be Balanced distribution to all application servers in the platform for execution significantly improves the overall processing capability of the system. On the other hand, it controls the number of tasks for initiating account opening business to financial institution servers and eases the processing burden on financial institution servers.
首先,通信装置接收用户终端发送的开户请求信息。First, the communication device receives account opening request information sent by the user terminal.
其中,发起开户请求的用户终端的数量可能是成千上万,甚至亿万级的海量用户,同时用户终端发起开户请求的时间也是无法准确预估的,在一个实施方式中,可以是接收多个用户终端分别发送的开户请求,具体地,其中,可以同时接收、也可以在一个时间段内集中接收大量的开户请求信息,另外,还可以接收同一个用户终端中由于用户误操作、网络延迟或者网络不稳定等因素,重复发起多个开户请求信息。这样的情况自然带来对海量开户请求的同步受理和高并发处理。Among them, the number of user terminals that initiate an account opening request may be tens of thousands, or even hundreds of millions of massive users. At the same time, the time for a user terminal to initiate an account opening request cannot be accurately estimated. Account opening requests sent by each user terminal respectively, specifically, a large amount of account opening request information can be received at the same time, or can be received collectively within a time period. Or due to factors such as network instability, multiple account opening request messages are repeatedly initiated. Such a situation naturally brings about the simultaneous acceptance and high-concurrency processing of massive account opening requests.
此时,可以在用户终端侧通过支付APP设置重发限制,当监测到用户在短时间内发起多次开户请求(如:重复发起多个开户请求)时,限制开户请求信息向外发送,页面提示用户操作过于频繁,暂缓尝试开户。由此也可以减轻金融机构服务器和应用本方法的开户服务系统的请求负担,同时也杜绝了一些不法分子或恶意用户通过流量风暴的方式给系统造成请求拥塞瘫痪或对系统造成破坏。At this time, you can set the resend limit on the user terminal side through the payment APP. When it is detected that the user initiates multiple account opening requests within a short period of time (such as: repeatedly initiating multiple account opening requests), the account opening request information is restricted from being sent out, and the page Prompt the user to operate too frequently, and suspend the attempt to open an account. This can also reduce the request burden of the financial institution server and the account opening service system applying the method, and also prevent some criminals or malicious users from causing request congestion and paralysis to the system or damage to the system through traffic storms.
然后,将开户请求分配至对应的第二应用服务器,第二应用服务器针对开户请求创建开户任务,将自己的服务器标识添加至该开户任务的任务信息中,将开户任务保存在预设任务表中。Then, assign the account opening request to the corresponding second application server, the second application server creates an account opening task for the account opening request, adds its own server identification to the task information of the account opening task, and saves the account opening task in the preset task table .
其中,可以先对接收到的开户请求信息进行校验,校验开户请求中的交易参数的合法性,将校验通过的开户请求信息对应的开户任务保存在预设任务表中。Wherein, the received account opening request information may be verified first, the validity of the transaction parameters in the account opening request is verified, and the account opening task corresponding to the verified account opening request information is saved in the preset task table.
进一步,校验可以包括对开户请求信息的身份校验,如:对用户身份证号、身份证照片、护照号、护照照片、用户本人近照、银行卡号,和/或出生年月等信息进行基本校验核查。具体比如:身份证号位数/规则,护照号位数/规则,出生年月与身份证号匹配度,通过图片识别手段检测身份证照片/护照照片的真伪,用户本人近照是否为人脸正面图片等。从而保证虚假用户开设金融账户导致的系统资金风险,进一步也可防止发给金融机构服务器的虚假开户请求信息泛滥。Further, verification may include identity verification of account opening request information, such as: user ID number, ID card photo, passport number, passport photo, user's recent photo, bank card number, and/or date of birth and other information. Basic checksum check. Specific examples: ID card number digits/rules, passport number digits/rules, date of birth and ID number matching degree, the authenticity of ID card photos/passport photos through image recognition methods, whether the user's recent photo is a face Frontal pictures etc. In this way, the risk of system funds caused by false users opening financial accounts can be guaranteed, and the flood of false account opening request information sent to financial institution servers can also be prevented.
再进一步地,校验还可以包括安全性校验,如:对开户请求信息进行必要的数据安全检测,以防通过信息中特殊字段或预留扩展字段被篡改,导致携带恶意代码,对系统安全造成极大隐患。Furthermore, the verification can also include security verification, such as: perform necessary data security detection on the account opening request information to prevent tampering through special fields or reserved extension fields in the information, resulting in malicious codes, which is harmful to system security. cause great danger.
其中,预设任务表仅将校验通过的开户请求信息对应的开户任务进行保存。进一步,对未通过校验的开户请求信息予以抛弃,并通知对应的用户终端开户请求校验未通过,请用户重新核实开户填写信息是否准确。Wherein, the preset task table only stores the account opening task corresponding to the account opening request information that passes the verification. Further, the account opening request information that fails the verification is discarded, and the corresponding user terminal is notified that the account opening request verification fails, and the user is asked to re-verify whether the information filled in for account opening is accurate.
另外,可以对于反复校验失败的开户请求信息进行加黑名单处理,提取失败开户请求信息对应的UID和开户填写信息存入黑名单日志信息,同时系统侧下发控制消息,限制该用户终端上支付APP的使用。In addition, the account opening request information that fails repeated verification can be blacklisted, and the UID corresponding to the failed account opening request information and the account opening filling information can be extracted and stored in the blacklist log information. At the same time, the system sends a control message to restrict the user terminal. Pay for the use of the APP.
进一步地,校验通过的开户请求信息对应的开户任务保存在预设任务表之后,通信装置返回用户终端开户请求已被成功受理的消息通知。由此,用户可以及时获知开户请求是否被成功受理的消息,不会因为金融机构服务器的处理时长不确定导致用户体验下降。Further, after the account opening task corresponding to the verified account opening request information is stored in the preset task table, the communication device returns a message notification that the account opening request of the user terminal has been successfully accepted. In this way, the user can promptly know whether the account opening request is successfully accepted, and the user experience will not be degraded due to the uncertain processing time of the financial institution server.
再进一步地,通过异步线程将开户请求信息对应的开户任务保存到预设任务表中。这样使得大量可能同步发送的海量用户终端的开户请求都转换为异步任务,等待后续触发后再进行处理,从而使得时间点比较集中的开户业务申请有条不紊的周期性按批次处理,保证整个系统任务处理负载均衡稳定,对金融机构服务器业务负担的影响不至于加重。Still further, the account opening task corresponding to the account opening request information is saved in the preset task table through the asynchronous thread. In this way, a large number of account opening requests from user terminals that may be sent synchronously are converted into asynchronous tasks, and processed after waiting for subsequent triggers, so that the account opening business applications with relatively concentrated time points are processed in batches in an orderly and periodic manner, ensuring the entire system tasks The processing load is balanced and stable, and the impact on the business burden of financial institutions' servers will not be aggravated.
然后,调度中心103周期性地触发异步任务,提取预设任务表中的开户任务。Then, the scheduling center 103 periodically triggers an asynchronous task to extract the account opening task in the preset task list.
其中,由调度中心103负责周期性地触发异步任务,异步任务用于处理保存在预设任务表中的开户任务,实现开户请求同步受理、异步处理。Among them, the scheduling center 103 is responsible for periodically triggering the asynchronous tasks, which are used to process the account opening tasks stored in the preset task table, so as to realize the synchronous acceptance and asynchronous processing of the account opening request.
进一步地,根据调度中心103配置的CRON表达式,周期性的触发异步任务。具体比如,调度中心103中存有配置文件,基于配置文件中的CRON表达式,按照约定的时间周期来执行异步任务触发消息的发送。异步任务触发消息发送到任务处理装置103,对应预设任务表中的开户任务。Further, according to the CRON expression configured by the dispatching center 103, the asynchronous task is triggered periodically. Specifically, for example, a configuration file is stored in the dispatching center 103, and based on the CRON expression in the configuration file, the sending of the asynchronous task trigger message is executed according to the agreed time period. The asynchronous task trigger message is sent to the task processing device 103, corresponding to the account opening task in the preset task list.
再进一步地,由调度中心103按照配置文件设置每次周期性发送的异步任务数量。异步任务可以对应一条开户请求信息的处理,也可以对应多条开户请求信息的处理。每次发送的异步任务数量也可以设置为一件或特定数量的多件。按照异步任务中的配置要求提取预设任务表中相应数量的开户请求,交由任务处理装置103进行分发处理。Still further, the scheduling center 103 sets the number of asynchronous tasks sent periodically each time according to the configuration file. The asynchronous task can correspond to the processing of one account opening request information, or can correspond to the processing of multiple account opening request information. The number of asynchronous tasks sent each time can also be set to one piece or a specific number of multiple pieces. According to the configuration requirements in the asynchronous task, a corresponding number of account opening requests in the preset task table are extracted and delivered to the task processing device 103 for distribution processing.
其中,任务处理装置103包括接收单元、第一分单元、第二分发单元、第三分发单元。进一步,根据业务规模的扩大,业务模式扩展更加多样性等考虑,任务处理装置103可以扩展到第四、第五或更多层的处理单元,使得任务处理装置103中的各个应用服务器处于任务分配均衡,负载稳定的状态。进一步地,任务处理装置103可以为多层结构的应用服务器集群。Wherein, the task processing device 103 includes a receiving unit, a first sub-unit, a second distribution unit, and a third distribution unit. Further, according to considerations such as the expansion of business scale and the expansion of more diverse business models, the task processing device 103 can be extended to the fourth, fifth or more layers of processing units, so that each application server in the task processing device 103 is in the task distribution Balanced, load stable state. Further, the task processing device 103 may be a multi-tier application server cluster.
以上述三层分发单元为例,第一层是任务处理装置101把调度中心103指示的100个开户任务按用户标识进行拆分。具体的,按照开户任务信息中UID的数值范围将开户请求信息进行拆分,将拆分后的开户请求信息按照UID分发到多个应用服务器中。Taking the above-mentioned three-layer distribution unit as an example, the first layer is that the task processing device 101 divides the 100 account opening tasks instructed by the dispatch center 103 according to user identifiers. Specifically, the account opening request information is split according to the numerical range of the UID in the account opening task information, and the split account opening request information is distributed to multiple application servers according to the UID.
比如:用户的开户数据按照用户标识UID的维度,倒数二,三位分别存储到100个数据库的100个表中。假设系统提供finauth_rz_00~finauth_rz_99总共100个数据库,对应有fa_task_00~fa_task_99总共100个任务表。如果当前用户的用户标识208800000190,由于倒数二三位是19,所以该用户对应的开户任务的相关数据存储到finauth_rz_19数据库的fa_task_19表中。调度中心103调度的100个开户任务对应的用户标识UID=2088000001到2088000991,按照UID倒数二三两位,可以拆分为100份。For example: the user's account opening data is stored in 100 tables of 100 databases according to the dimension of the user identification UID, the last two and three digits respectively. Suppose the system provides a total of 100 databases finauth_rz_00~finauth_rz_99, corresponding to a total of 100 task tables fa_task_00~fa_task_99. If the user ID of the current user is 208800000190, since the last two or three digits are 19, the relevant data of the account opening task corresponding to this user is stored in the fa_task_19 table of the finauth_rz_19 database. The user identifiers UID=2088000001 to 2088000991 corresponding to the 100 account opening tasks dispatched by the dispatching center 103 can be divided into 100 parts according to the last two or three digits of the UID.
具体的,可以根据数值匹配方式将开户任务的开户任务信息分配至指定的第一应用服务器。每台应用服务器可以处理的用户的范围就是通过一个单元配置中心来控制的,假如应用服务器A的处理范围是00,那么用户标识UID倒数二三两位是00的开户任务信息分配给服务器A。Specifically, the account opening task information of the account opening task may be distributed to the specified first application server according to the value matching method. The range of users that each application server can handle is controlled by a unit configuration center. If the processing range of application server A is 00, then the account opening task information with the last two or three digits of the user ID UID being 00 is assigned to server A .
当然,还可以采用随机分发方式。比如:包括200个应用服务器,随机选择100个第一应用服务器,为每个第一应用服务器随机分配一个00-99的数字,接收到该数字的第一应用服务器可处理匹配的用户标识对应的开户任务。如果应用服务器B分配到数字01,表示应用服务器B可从finauth_rz_01数据库的fa_task_01表中读取到用户标识为UID=2088000011的开户任务数据,进行任务处理。Of course, random distribution can also be used. For example: 200 application servers are included, 100 first application servers are randomly selected, and a number from 00-99 is randomly assigned to each first application server, and the first application server receiving the number can process the matching user ID corresponding Account opening task. If the application server B is assigned the number 01, it means that the application server B can read the account opening task data whose user ID is UID=2088000011 from the fa_task_01 table of the finauth_rz_01 database, and perform task processing.
然后进行第二层分发。每个第一应用服务器就分配到的开户任务信息,读取到用户标识,根据用户标识的倒数二三两位确定出进行任务捞取的数据库,假设开户任务信息的用户标识的倒数二三两位为03,该应用服务器可从finauth_rz_03数据库的fa_task_03表中进行开户任务捞取,可每次读取预设数量(如:5个、10个等)的开户任务。针对读取到的开户任务,生成开户任务列表,将其广播至全网所有的应用服务器。在具体实施过程中,预设数量可根据实际需要进行设定,在此,本申请不做限制。Then do the second layer distribution. Each first application server reads the user ID assigned to the account opening task information, and determines the database for task retrieval according to the last two or three digits of the user ID, assuming that the account opening task information has the last two or three user IDs The two digits are 03, and the application server can retrieve account opening tasks from the fa_task_03 table of the finauth_rz_03 database, and can read a preset number of account opening tasks (such as: 5, 10, etc.) each time. Based on the read account opening tasks, an account opening task list is generated and broadcast to all application servers in the entire network. In a specific implementation process, the preset number can be set according to actual needs, which is not limited in this application.
在进行广播之前,第一应用服务器需要判断当前环境,如果当前环境为线下开发环境,由于在线下开发环境中,开发人员可根据也根据业务需求部署应用服务器,各个应用服务器的处理功能并不对等。如示意图3所示,假如三个业务分支代码分别部署在A、B、C三台应用服务器,分别在A、B、C三台服务器上创建了任务ID为1的A银行二类户开户,任务ID为2的A银行二类户查询,任务ID为3的B银行二类户开户任务,三层任务派发时将捞取的任务随机分配,如果把任务ID2分配到应用服务器C,任务ID3分配到应用服务器A,由于A银行和B银行的开户逻辑不一致,因此应用服务器A和应用服务器C的处理器也是不同的,这样会导致接受到任务的应用服务器A与应用服务器C没有合适的处理器来处理任务,由于创建任务的应用服务器是部署了处理该任务的处理程序。因此,在线下开发环境中,才需要将任务分配给创建该任务的应用服务器。在本实施例中,可采用分布式的广播方式,将任务列表发送至多个主节点,再由各个主节点将其广播至多个应用服务器。如果当前环境为线下开发环境,第一应用服务器将读取到的开户任务对应的任务列表发送至全网所有的应用服务器。Before broadcasting, the first application server needs to judge the current environment. If the current environment is an offline development environment, since in the offline development environment, developers can deploy application servers according to business needs, the processing functions of each application server are not correct. wait. As shown in Diagram 3, if the three business branch codes are deployed on three application servers A, B, and C respectively, and the second-class account of bank A with task ID 1 is created on the three servers A, B, and C respectively, Query the second-class account of bank A with task ID 2, and open an account for the second-class account of bank B with task ID 3. When the third-tier task is dispatched, the obtained tasks will be randomly assigned. If task ID2 is assigned to application server C, task ID3 will be assigned To application server A, because the account opening logic of bank A and bank B is inconsistent, the processors of application server A and application server C are also different, which will result in that application server A and application server C receiving the task do not have suitable processors To process the task, because the application server that creates the task deploys a handler to process the task. Therefore, in the offline development environment, the task needs to be assigned to the application server that creates the task. In this embodiment, a distributed broadcast method may be used to send the task list to multiple master nodes, and each master node broadcasts it to multiple application servers. If the current environment is an offline development environment, the first application server sends the read task list corresponding to the account opening task to all application servers in the entire network.
最后,进行第三层分发,如果在线下开发环境,每个应用服务器在接收到该任务列表后,循环遍历该任务列表中每一个任务,判断任务是否由自己创建,即如果待处理任务列表中待处理任务的任务信息中的服务器标识与自身服务器标识一致,表明该任务是由自身创建,获取该任务对应的任务数据进行处理。如果任务不是由自身创建则丢弃,通过这种广播方式实现各种创建的任务各自处理。Finally, the third layer of distribution is carried out. In an offline development environment, after each application server receives the task list, it loops through each task in the task list to determine whether the task is created by itself, that is, if the pending task list The server ID in the task information of the task to be processed is consistent with its own server ID, indicating that the task is created by itself, and the task data corresponding to the task is obtained for processing. If the task is not created by itself, it will be discarded. Through this broadcast method, various created tasks can be processed separately.
针对前述图3中的示例,在采用了本实施例中的系统后,请参看图4,在原来任务模型的基础上增加了Host字段,用于记录服务器标识,该字段记录当前任务由哪台服务器创建,之前的三条任务会打包成为任务列表发送到主节点应用服务器,然后主节点应用服务器会实现对应范围内应用服务器的广播,使得每一台应用服务器都可以获取到全量的1、2、3三条任务,各个服务器判断任务的Host是否和当前服务器的Host一致,如果一致则处理,不一致则丢弃,从而实现了由创建任务的服务器来执行任务。解决了不同服务器代码流不一致,接受到的任务处理不了或者处理逻辑不正确的问题。For the example in Figure 3 mentioned above, after adopting the system in this embodiment, please refer to Figure 4. On the basis of the original task model, a Host field is added to record the server identification. This field records which server the current task is assigned to. When the server is created, the previous three tasks will be packaged into a task list and sent to the main node application server, and then the main node application server will implement the broadcast of the application servers within the corresponding range, so that each application server can obtain the full amount of 1, 2, 3Three tasks, each server judges whether the host of the task is consistent with the host of the current server, if it is consistent, it will be processed, if it is inconsistent, it will be discarded, so that the server that created the task can execute the task. Solved the problem that the code flow of different servers is inconsistent, the received task cannot be processed or the processing logic is incorrect.
如果当前环境不是线下开发环境,可将读取到的任务再次通过远程方法调用随机派发到应用服务器中,应用服务器根据不同的任务类型来进行不同的报文组装,通过网关发送开户或者开户结果查询的任务到金融机构服务器。If the current environment is not an offline development environment, the read tasks can be randomly dispatched to the application server through remote method calls again. The application server assembles different messages according to different task types, and sends the account opening or account opening results through the gateway The query task goes to the financial institution server.
进一步,还可以将开户结果返回给用户终端。其中,开户结果信息可以主动推送给对应的用户终端,也可以等待用户终端发起开户结果查询请求时,再将开户结果返回给用户终端。这样有效避免了系统数据流量负载不均衡的情形。Furthermore, the account opening result may also be returned to the user terminal. Wherein, the account opening result information may be actively pushed to the corresponding user terminal, or the account opening result may be returned to the user terminal after the user terminal initiates an account opening result query request. This effectively avoids the unbalanced load of system data traffic.
图5为本应用到一个具体示例的系统流程图。如图所示,finsignweb是用户终端的支付APP,finauth即为上述实施例二中的开户服务系统中的应用服务器,主要职责包括:面向机构的签约;面向客户类鉴权、核身及签约请求中与机构能力相关的流程服务编排,包括:机构四要素鉴权、三要素鉴权、机构多证件校验能力、机构短信校验、机构免签等能力编排撮合等。开户服务系统由三层分发机制的finauth设备集群构成。用户首先通过finsignweb将填写银行卡信息、身份信息等申请开户的请求信息发送给三层分发机制的finauth应用服务器集群的开户服务系统。由系统校验信息合法性,校验通过的开户请求信息通过异步线程保存开户请求信息到预设任务表中。系统中调度中心103定时触发异步任务,由任务处理装置103处理异步开户任务,调用三层分发机制处理异步任务,对于开户请求封装成报文通过网关发送到银行,银行会反馈受理结果。Fig. 5 is a system flow chart of this application to a specific example. As shown in the figure, finsignweb is the payment APP of the user terminal, and finauth is the application server in the account opening service system in the second embodiment above, and its main responsibilities include: organization-oriented signing; customer-oriented authentication, authentication and signing request The arrangement of process services related to institutional capabilities, including: institutional four-factor authentication, three-element authentication, institutional multi-certificate verification capabilities, institutional SMS verification, and institutional visa-free capacity arrangement and matching, etc. The account opening service system consists of a finauth device cluster with a three-tier distribution mechanism. The user first sends the request information for filling in bank card information, identity information, etc. to apply for account opening through finsignweb to the account opening service system of the finauth application server cluster with a three-tier distribution mechanism. The legality of the information is verified by the system, and the account opening request information that passes the verification is saved in the preset task table through an asynchronous thread. In the system, the scheduling center 103 triggers the asynchronous task regularly, and the task processing device 103 processes the asynchronous account opening task, and invokes the three-layer distribution mechanism to process the asynchronous task. The account opening request is encapsulated into a message and sent to the bank through the gateway, and the bank will feedback the acceptance result.
进一步地,开户服务系统在收到开户请求时会将开户请求信息通过异步线程将其转换为异步任务,异步任务包含了任务类型,业务ID,业务类型,任务状态,任务优先级,触发时间,重试次数,结束时间等参数信息,同时将异步任务中的参数信息转换为JOSN格式存储到扩展信息中(如图6所示),因此这个任务调度模型就可以抽象为通用的异步任务,而不需要去关心具体的业务含义,当调度中心103触发了三层任务的处理时,捞取的任务会按照任务类型找到合适的任务处理器来处理业务,在银行二类户的项目中已经有了开户申请,开户查询的任务。未来还可以根据业务的需要扩展出更多的其他异步任务处理器,任务处理器之间相互隔离,新增的业务也不会对原有业务造成影响。使得异步任务具备很好的扩展能力。Furthermore, when the account opening service system receives an account opening request, it will convert the account opening request information into an asynchronous task through an asynchronous thread. The asynchronous task includes task type, business ID, business type, task status, task priority, trigger time, At the same time, the parameter information in the asynchronous task is converted into JSON format and stored in the extended information (as shown in Figure 6), so this task scheduling model can be abstracted into a general asynchronous task, and There is no need to care about the specific business meaning. When the dispatch center 103 triggers the processing of the three-tier task, the retrieved task will find a suitable task processor to process the business according to the task type. There is already a Account opening application, account opening inquiry tasks. In the future, more other asynchronous task processors can be expanded according to the needs of the business. The task processors are isolated from each other, and the new business will not affect the original business. Make asynchronous tasks have good scalability.
图7所示,为本说明书的方案一个具体异步任务调度示例图。调度中心103根据配置的CRON表达式,周期性的发送消息到消息中心,消息中心将消息投递到finauth应用服务器集群,在第一层分发中,任务处理装置101根据当前应用部署单元的UID处理范围对开户请求信息进行拆分,拆分的开户请求信息通过远程方法调用派发到本应用部署单元的其他finauth应用服务器上。设置集群中的部分设备只为一定范围内的用户终端进行服务,例如:用户终端UID=2088000001到2088000991,按照UID倒数二三两位,可以拆分为100份,每台设备可以处理的用户的范围就是通过一个单元配置中心来控制的,假如当前finauth应用服务器A的处理范围是00-19,那么满足条件的就是指用户UID倒数二三两位是满足00-19区间的。As shown in FIG. 7 , it is an example diagram of a specific asynchronous task scheduling in the solution of this specification. The scheduling center 103 periodically sends messages to the message center according to the configured CRON expression, and the message center delivers the messages to the finauth application server cluster. In the first layer of distribution, the task processing device 101 processes the scope according to the UID of the current application deployment unit The account opening request information is split, and the split account opening request information is dispatched to other finauth application servers of the application deployment unit through remote method calls. Set some devices in the cluster to only serve user terminals within a certain range, for example: user terminal UID = 2088000001 to 2088000991, according to the last two or three digits of UID, it can be divided into 100 parts, each device can handle users The range is controlled by a unit configuration center. If the processing range of the current finauth application server A is 00-19, then the condition is satisfied means that the last two or three digits of the user UID meet the range of 00-19.
在第二层分发中,接收到任务处理装置发送的开户请求信息的finauth应用服务器,根据开户请求信息中的UID和状态信息从对应的数据库中提取满足条件的任务,生成任务列表,任务列表广播至各个应用服务器。In the second layer of distribution, the finauth application server that receives the account opening request information sent by the task processing device extracts tasks that meet the conditions from the corresponding database according to the UID and status information in the account opening request information, generates a task list, and broadcasts the task list to each application server.
在第三层分发中,每个应用服务器再根据从该任务列表中提取到自己创建的任务进行处理。具体的,应用服务器根据对任务进行报文组装,通过网关发送开户或者开户结果查询的任务到金融机构服务器。In the third-tier distribution, each application server processes the tasks created by itself extracted from the task list. Specifically, the application server assembles the message according to the task, and sends the account opening or account opening result query task to the financial institution server through the gateway.
对于开户受理成功的任务,系统会在接下来的任务调度中执行开户结果查询的请求,获取到明确的开户结果后更新任务状态,并且将开户结果信息回写到业务表中,具体地,可以存储到一个数据库的一个表中,该表作为业务表,可以用于存储用户到银行机构服务器申请开户结果信息,例如:开户成功后存储账号。For the task of successfully accepting the account opening, the system will execute the query request of the account opening result in the next task scheduling, update the task status after obtaining the clear account opening result, and write back the account opening result information to the business table. Specifically, you can Stored in a table of a database, this table is used as a business table and can be used to store the result information of the user's application to the server of the banking institution to open an account, for example, to store the account number after the account is successfully opened.
通过本实施例中的系统,在进行三层任务分发时,可以将需要处理的任务列表广播到所有应用服务器,接受到任务列表的应用服务器只处理自己创建的任务,丢弃其他任务,从而保证逻辑的一致性,确保任务处理的成功率。Through the system in this embodiment, when performing three-tier task distribution, the task list that needs to be processed can be broadcast to all application servers, and the application server that receives the task list only processes the tasks created by itself, and discards other tasks, thereby ensuring logic Consistency to ensure the success rate of task processing.
第二方面,基于同一发明构思,本说明书实施例提供一种任务处理方法,应用于任务处理系统中,所述任务处理系统包括任务处理装置和多个应用服务器,请参考图8,所述任务处理方法包括如下步骤:In the second aspect, based on the same inventive concept, the embodiment of this specification provides a task processing method, which is applied to a task processing system. The task processing system includes a task processing device and multiple application servers. Please refer to FIG. 8, the task The processing method includes the following steps:
S801:所述任务处理装置获取待处理任务的任务信息,并基于所述任务信息中的用户标识,将所述任务信息分发至与所述用户标识对应的第一应用服务器,其中,所述第一应用服务器属于所述多个应用服务器,所述任务信息中包含创建所述待处理任务的第二应用服务器的服务器标识以及所述待处理任务对应的用户标识,所述第二应用服务器中设置有用于处理所述待处理任务的处理模块;S801: The task processing device acquires task information of a task to be processed, and based on a user identifier in the task information, distributes the task information to a first application server corresponding to the user identifier, wherein the second An application server belongs to the plurality of application servers, and the task information includes the server identifier of the second application server that creates the task to be processed and the user identifier corresponding to the task to be processed, and the second application server sets There is a processing module for processing said pending tasks;
S802:所述第一应用服务器接收所述任务信息,基于所述任务信息生成待处理任务列表,并将所述待处理任务列表广播至所述多个应用服务器,所述待处理任务列表中携带有所述服务器标识;S802: The first application server receives the task information, generates a list of tasks to be processed based on the task information, and broadcasts the list of tasks to be processed to the multiple application servers, and the list of tasks to be processed carries have said server ID;
S803:所述多个应用服务器中的每个应用服务器接收所述待处理任务列表,并在确认所述待处理任务列表中的所述服务器标识与自身服务器标识一致后,对所述待处理任务进行处理。S803: Each application server in the plurality of application servers receives the list of tasks to be processed, and after confirming that the server ID in the list of tasks to be processed is consistent with its own server ID, executes the task list to be processed to process.
在一种可选方式中,所述任务处理系统还包括调度中心,所述方法还包括:In an optional manner, the task processing system further includes a dispatch center, and the method further includes:
所述调度中心周期性地触发异步任务,通知所述任务处理装置处理预设任务列表中的待处理任务,以使得所述任务处理装置从所述预设任务列表中获取待处理任务的任务信息。The dispatching center periodically triggers asynchronous tasks, and notifies the task processing device to process the pending tasks in the preset task list, so that the task processing device obtains the task information of the pending tasks from the preset task list .
在一种可选方式中,所述任务处理系统还包括通信装置,在所述任务处理装置获取待处理任务的任务信息之前,所述方法还包括:In an optional manner, the task processing system further includes a communication device, and before the task processing device acquires task information of tasks to be processed, the method further includes:
所述通信装置接收用户终端发送的业务请求,并通知与所述业务请求对应的所述第二应用服务器创建与所述业务请求对应的待处理任务;The communication device receives the service request sent by the user terminal, and notifies the second application server corresponding to the service request to create a pending task corresponding to the service request;
所述第二应用服务器创建与所述业务请求对应的待处理任务,添加所述服务器标识至所述待处理任务的任务信息中。The second application server creates a task to be processed corresponding to the service request, and adds the server identifier to task information of the task to be processed.
在一种可选方式中,所述调度中心周期性地触发异步任务,包括:所述调度中心根据配置的CRON表达式,周期性的触发所述异步任务。In an optional manner, the dispatching center periodically triggering the asynchronous task includes: the dispatching center periodically triggering the asynchronous task according to a configured CRON expression.
在一种可选方式中,所述任务处理装置基于所述任务信息中的用户标识,将所述任务信息分发至与所述用户标识对应的第一应用服务器,包括:In an optional manner, the task processing device distributes the task information to the first application server corresponding to the user identifier based on the user identifier in the task information, including:
所述任务处理装置按照所述用户标识的数值范围将所述任务信息进行拆分,将拆分后的任务信息分发至对应的第一应用服务器中。The task processing device splits the task information according to the numerical range of the user identifier, and distributes the split task information to the corresponding first application server.
在一种可选方式中,所述第一应用服务器接收所述任务信息,基于所述任务信息生成待处理任务列表,包括:In an optional manner, the first application server receives the task information, and generates a pending task list based on the task information, including:
所述第一应用服务器从所述任务信息指示的数据库中读取所述待处理任务,基于读取到的待处理任务,生成待处理任务列表。The first application server reads the pending tasks from the database indicated by the task information, and generates a list of pending tasks based on the read pending tasks.
在一种可选方式中,所述第一应用服务器将所述待处理任务列表广播至所述多个应用服务器,包括:In an optional manner, the first application server broadcasts the pending task list to the multiple application servers, including:
所述第一应用服务器确定当前环境,判断所述当前环境是否为线下开发环境,如果是,将所述待处理任务列表广播至所述多个应用服务器。The first application server determines the current environment, judges whether the current environment is an offline development environment, and if so, broadcasts the pending task list to the plurality of application servers.
在一种可选方式中,所述第一应用服务器在所述判断所述当前环境是否为线下开发环境之后,所述方法还包括:In an optional manner, after the first application server determines whether the current environment is an offline development environment, the method further includes:
所述第一应用服务器确定所述当前环境不是线下开发环境情况下,将读取到的待处理任务随机分发到所述多个应用服务器。If the first application server determines that the current environment is not an offline development environment, it randomly distributes the read tasks to be processed to the plurality of application servers.
在一种可选方式中,所述待处理任务为开户任务。In an optional manner, the task to be processed is an account opening task.
本实施例中的任务处理的详细过程已在前述第一方面实施例中详细阐述,具体可参照第一方面实施例中对应的内容,在此,本申请不做赘述。The detailed process of task processing in this embodiment has been described in detail in the above-mentioned embodiment of the first aspect. For details, reference may be made to the corresponding content in the embodiment of the first aspect, which will not be repeated in this application.
第二方面,基于同一发明构思,本说明书实施例提供一种任务处理方法,请参考图8,包括如下步骤:In the second aspect, based on the same inventive concept, the embodiment of this specification provides a task processing method, please refer to FIG. 8, including the following steps:
S801:接收调度中心发送的待处理任务的任务信息,每个任务信息中包括创建对应待处理任务的服务器标识;S801: Receive the task information of the task to be processed sent by the dispatching center, each task information includes creating a server ID corresponding to the task to be processed;
S802:基于每个任务信息中的用户标识,将所述任务信息分发至多个应用服务器;S802: Based on the user identifier in each task information, distribute the task information to multiple application servers;
S803:控制所述多个应用服务器中每个应用服务器基于分配到的任务信息,按第二预设策略读取对应的待处理任务,生成待处理任务列表,将所述待处理任务列表广播至所有应用服务器;S803: Control each application server in the plurality of application servers to read the corresponding task to be processed according to the second preset strategy based on the assigned task information, generate a list of tasks to be processed, and broadcast the list of tasks to be processed to all application servers;
S804:控制每个所述应用服务器处理所述待处理任务列表中与自身服务器标识一致的待处理任务。S804: Control each of the application servers to process pending tasks in the list of pending tasks that are consistent with their own server identifiers.
在一种可选方式中,所述基于每个任务信息中的用户标识,将所述任务信息分发至多个应用服务器,包括:In an optional manner, the distributing the task information to multiple application servers based on the user identifier in each task information includes:
按照所述用户标识的数值范围将所述任务信息进行拆分;Splitting the task information according to the numerical range of the user identifier;
将拆分后的任务信息分发至对应的应用服务器中。Distribute the split task information to corresponding application servers.
在一种可选方式中,所述控制所述多个应用服务器中每个应用服务器基于分配到的任务信息,按第二预设策略读取对应的待处理任务,包括:In an optional manner, the controlling each application server in the plurality of application servers to read the corresponding task to be processed according to the second preset strategy based on the assigned task information includes:
控制所述多个应用服务器中每个应用服务器从分配到的任务信息指示的数据库中读取预设数量的待处理任务。Controlling each of the plurality of application servers to read a preset number of tasks to be processed from a database indicated by the allocated task information.
在一种可选方式中,所述将所述待处理任务列表广播至所有应用服务器,包括:In an optional manner, the broadcasting the pending task list to all application servers includes:
确定当前环境;determine the current environment;
判断所述当前环境是否为线下开发环境;Judging whether the current environment is an offline development environment;
如果是,将所述待处理任务列表广播至所有应用服务器。If yes, broadcast the pending task list to all application servers.
在一种可选方式中,在所述判断所述当前环境是否为线下开发环境之后,所述方法还包括:In an optional manner, after the judging whether the current environment is an offline development environment, the method further includes:
如果所述当前环境不是线下开发环境,所述多个应用服务器中每个应用服务器将读取到的待处理任务随机分发到多个应用服务器。If the current environment is not an offline development environment, each application server in the multiple application servers randomly distributes the read tasks to be processed to multiple application servers.
在一种可选方式中,所述待处理任务为开户任务,所述开户任务存储在预设任务表中,所述调度中心周期性地触发异步任务,提取所述预设任务表中的开户任务中的任务信息。In an optional manner, the task to be processed is an account opening task, and the account opening task is stored in a preset task table, and the dispatch center periodically triggers an asynchronous task to extract the account opening task in the preset task table Task information in the task.
本实施例中的任务处理的详细过程已在前述第一方面实施例中详细阐述,具体可参照第一方面实施例中对应的内容,在此,本申请不做赘述。The detailed process of task processing in this embodiment has been described in detail in the above-mentioned embodiment of the first aspect. For details, reference may be made to the corresponding content in the embodiment of the first aspect, which will not be repeated in this application.
第三方面,基于同一发明构思,本说明书实施例提供一种任务处理方法,应用于应用服务器,请参考图9,包括如下步骤:In the third aspect, based on the same inventive concept, the embodiment of this specification provides a task processing method, which is applied to an application server, please refer to FIG. 9, including the following steps:
S901:创建目标待处理任务,将所述应用服务器的服务器标识添加至所述目标待处理任务的任务信息中;S901: Create a target pending task, and add the server identifier of the application server to the task information of the target pending task;
S902:接收待处理任务列表,所述待处理任务列表中存储有每个待处理任务的任务信息;S902: Receive a to-be-processed task list, where task information of each to-be-processed task is stored;
S903:遍历所述待处理任务列表中每个待处理任务的任务信息,确定任务信息中服务器标识与所述应用服务器的服务器标识一致的所述目标待处理任务;S903: traverse the task information of each pending task in the pending task list, and determine the target pending task whose server ID in the task information is consistent with the server ID of the application server;
S904:对所述目标待处理任务进行处理。S904: Process the target pending task.
具体的,如前述第一实施例所述的内容,应用服务器需要在接收到指派的业务请求时,创建目标待处理任务后,将该应用服务器的服务器标识添加至所述目标待处理任务的任务信息中,表明该目标待处理任务为自己创建。该目标待处理任务会被分发到一个第一应用服务器进行任务捞取,当该第一应用服务器捞取到的任务包括该目标待处理任务后,生成一个待处理任务列表,该待处理任务列表中携带了该目标待处理任务的任务信息,该任务信息中就包含了创建该目标待处理任务的应用服务器的服务器标识,第一应用服务器会将待处理任务列表广播至所有的应用服务器。进而,在当前的应用服务器接收到包含该目标待处理任务的待处理任务列表后,可通过提取任务列表中每个待处理任务的任务信息,匹配出与自身服务器标识一致的目标待处理任务,对该目标待处理任务进行处理。丢弃其他不是自己创建的任务,从而保证逻辑的一致性,确保任务处理的成功率。Specifically, as described in the aforementioned first embodiment, the application server needs to add the server identifier of the application server to the task of the target pending task after receiving the assigned service request after creating the target pending task In the information, it indicates that the target pending task is created for itself. The target to-be-processed task will be distributed to a first application server for task retrieval. When the task retrieved by the first application server includes the target to-be-processed task, a pending task list is generated, and the pending task list carries Once the task information of the target pending task is obtained, the task information includes the server identifier of the application server that created the target pending task, and the first application server will broadcast the list of pending tasks to all application servers. Furthermore, after the current application server receives the pending task list containing the target pending task, it can extract the task information of each pending task in the task list to match the target pending task consistent with its own server ID, Process pending tasks for this target. Discard other tasks that are not created by yourself, so as to ensure the consistency of logic and the success rate of task processing.
进一步,如果本实施例中的应用服务器被选定为进行任务捞取的第一服务器,则会接收到任务处理装置分发的任务信息,基于该任务信息去生成待处理任务列表。具体的,可从任务信息指示的数据库中捞取预设数量的待处理任务,生成待处理任务列表,待处理任务列表中每个待处理任务携带了任务信息,该任务信息中包含了创建该任务的应用服务器的服务器标识。然后,应用服务器会将该待处理任务列表广播至全网所有的应用服务器,每个应用服务器即可处理待处理任务列表中与自身服务器标识一致的待处理任务,丢弃与自身服务器标识不一致的待处理任务。Further, if the application server in this embodiment is selected as the first server for task retrieval, it will receive task information distributed by the task processing device, and generate a pending task list based on the task information. Specifically, a preset number of pending tasks can be retrieved from the database indicated by the task information to generate a list of pending tasks. Each pending task in the list of pending tasks carries task information, and the task information includes information about creating the task. The server ID of the application server. Then, the application server will broadcast the pending task list to all application servers in the whole network, and each application server can process the pending tasks in the pending task list that are consistent with its own server ID, and discard the pending tasks that are inconsistent with its own server ID. Handle tasks.
第四方面,基于同一发明构思,本说明书实施例提供一种应用服务器,请参考图10,包括如下单元:In the fourth aspect, based on the same inventive concept, the embodiment of this specification provides an application server, please refer to FIG. 10 , which includes the following units:
创建单元1001,用于创建目标待处理任务,将所述应用服务器的服务器标识添加至所述目标待处理任务的任务信息中;The creating unit 1001 is configured to create a target pending task, and add the server identifier of the application server to the task information of the target pending task;
接收单元1002,用于接收待处理任务列表,所述待处理任务列表中存储有每个待处理任务的任务信息;The receiving unit 1002 is configured to receive a list of tasks to be processed, and task information of each task to be processed is stored in the list of tasks to be processed;
确定单元1003,用于遍历所述待处理任务列表中每个待处理任务的任务信息,确定任务信息中服务器标识与所述应用服务器的服务器标识一致的所述目标待处理任务;A determining unit 1003, configured to traverse the task information of each pending task in the pending task list, and determine the target pending task whose server identifier in the task information is consistent with the server identifier of the application server;
处理单元1004,用于对所述目标待处理任务进行处理。The processing unit 1004 is configured to process the target pending task.
本实施例中的应用服务器进行任务处理的详细过程已在前述第三方面实施例中详细介绍,在此,本申请不做赘述。The detailed process of task processing performed by the application server in this embodiment has been introduced in detail in the aforementioned embodiment of the third aspect, and will not be repeated in this application.
第五方面,基于与前述实施例中任务处理方法同样的发明构思,本发明还提供一种任务处理装置,如图11所示,包括存储器1104、处理器1102及存储在存储器1104上并可在处理器1102上运行的计算机程序,处理器1102执行程序时实现前文任务处理方法的任一方法的步骤。In the fifth aspect, based on the same inventive concept as the task processing method in the foregoing embodiments, the present invention also provides a task processing device, as shown in FIG. A computer program running on the processor 1102, when the processor 1102 executes the program, implements the steps of any one of the aforementioned task processing methods.
其中,在图11中,总线架构(用总线1100来代表),总线1100可以包括任意数量的互联的总线和桥,总线1100将包括由处理器1102代表的一个或多个处理器和存储器1104代表的存储器的各种电路链接在一起。总线1100还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本实施例中的方法不再对其进行进一步描述。总线接口1106在总线1100和接收器1101和发送器1103之间提供接口。接收器1101和发送器1103可以是同一个元件,即收发机,提供用于在传输介质上与各种其他装置通信的单元。处理器1102负责管理总线1100和通常的处理,而存储器1104可以被用于存储处理器1102在执行操作时所使用的数据。Wherein, in FIG. 11, the bus architecture (represented by bus 1100), bus 1100 may include any number of interconnected buses and bridges, and bus 1100 will include one or more processors represented by processor 1102 and memory 1104 represented The various circuits of the memory are linked together. The bus 1100 can also link together various other circuits such as peripheral devices, voltage regulators and power management circuits, etc., which are well known in the art, therefore, the method in this embodiment will not discuss them described further. The bus interface 1106 provides an interface between the bus 1100 and the receiver 1101 and the transmitter 1103 . Receiver 1101 and transmitter 1103 may be the same element, a transceiver, providing means for communicating with various other devices over a transmission medium. Processor 1102 is responsible for managing bus 1100 and general processing, while memory 1104 may be used to store data used by processor 1102 in performing operations.
第六方面,基于与前述实施例中任务处理方法的发明构思,本发明还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现前文任务处理方法的任一方法的步骤。In the sixth aspect, based on the inventive concept of the task processing method in the foregoing embodiments, the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, any of the above task processing methods can be implemented. the steps of a method.
本说明书是参照根据本说明书实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的设备。The specification is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the specification. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a A device for realizing the functions specified in one or more steps of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令设备的制造品,该指令设备实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
尽管已描述了本说明书的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本说明书范围的所有变更和修改。While the preferred embodiments of the present specification have been described, additional changes and modifications can be made to these embodiments by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be interpreted to cover the preferred embodiment as well as all changes and modifications that fall within the scope of this specification.
显然,本领域的技术人员可以对本说明书进行各种改动和变型而不脱离本说明书的精神和范围。这样,倘若本说明书的这些修改和变型属于本说明书权利要求及其等同技术的范围之内,则本说明书也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to this description without departing from the spirit and scope of this description. In this way, if these modifications and variations of this specification fall within the scope of the claims of this specification and their equivalent technologies, this specification also intends to include these modifications and variations.
Claims (22)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811261141.3A CN109614209B (en) | 2018-10-26 | 2018-10-26 | A task processing method, application server and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811261141.3A CN109614209B (en) | 2018-10-26 | 2018-10-26 | A task processing method, application server and system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109614209A CN109614209A (en) | 2019-04-12 |
| CN109614209B true CN109614209B (en) | 2023-09-05 |
Family
ID=66002381
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811261141.3A Active CN109614209B (en) | 2018-10-26 | 2018-10-26 | A task processing method, application server and system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109614209B (en) |
Families Citing this family (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110209488B (en) * | 2019-06-10 | 2021-12-07 | 北京达佳互联信息技术有限公司 | Task execution method, device, equipment, system and storage medium |
| CN110287266B (en) * | 2019-06-28 | 2026-01-27 | 深圳前海微众银行股份有限公司 | Distributed system and data processing method |
| CN110287033A (en) * | 2019-07-03 | 2019-09-27 | 网易(杭州)网络有限公司 | Batch tasks processing method, device, system, equipment and readable storage medium storing program for executing |
| CN110750419B (en) * | 2019-09-30 | 2023-03-14 | 北京百度网讯科技有限公司 | Offline task processing method, device, electronic device and storage medium |
| CN110795218B (en) * | 2019-10-11 | 2022-03-01 | 口碑(上海)信息技术有限公司 | Task scheduling system and method based on unitization |
| CN111338797B (en) * | 2020-02-19 | 2023-09-05 | 望海康信(北京)科技股份公司 | Task processing method, device, electronic equipment and computer readable storage medium |
| CN111415245B (en) * | 2020-03-31 | 2024-08-02 | 中国建设银行股份有限公司 | Account opening method and device |
| CN111708618A (en) * | 2020-06-12 | 2020-09-25 | 北京思特奇信息技术股份有限公司 | Processing method and device based on Java multithreading |
| CN113986642A (en) * | 2020-07-08 | 2022-01-28 | 阿里巴巴集团控股有限公司 | Task monitoring system, method and device, electronic equipment and storage medium |
| CN113449023A (en) * | 2020-09-01 | 2021-09-28 | 北京新氧科技有限公司 | Service processing method and device and electronic equipment |
| CN113127172A (en) * | 2021-04-21 | 2021-07-16 | 上海销氪信息科技有限公司 | Task execution method and device, electronic equipment and storage medium |
Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2004348549A (en) * | 2003-05-23 | 2004-12-09 | Nippon Telegr & Teleph Corp <Ntt> | Task allocation method, task allocation device, resource allocation method, and resource allocation device |
| CN104253702A (en) * | 2013-06-27 | 2014-12-31 | 华为软件技术有限公司 | Terminal management method and system |
| CN104461747A (en) * | 2014-12-31 | 2015-03-25 | 合一网络技术(北京)有限公司 | Distributed type task scheduling system |
| CN105074686A (en) * | 2013-01-24 | 2015-11-18 | 华美宏道公司 | Systems and methods for creating and sharing tasks |
| CN105531675A (en) * | 2013-06-19 | 2016-04-27 | 日立数据系统工程英国有限公司 | Decentralized distributed computing system |
| CN105550025A (en) * | 2015-12-08 | 2016-05-04 | 北京航空航天大学 | Distributed IaaS (Infrastructure as a Service) scheduling method and system |
| CN106998370A (en) * | 2017-06-15 | 2017-08-01 | 北京微影时代科技有限公司 | Access control method, device and system |
| CN107330069A (en) * | 2017-06-30 | 2017-11-07 | 北京金山安全软件有限公司 | Multimedia data processing method and device, server and storage medium |
| CN107689994A (en) * | 2017-08-29 | 2018-02-13 | 环球智达科技(北京)有限公司 | A kind of mission bit stream processing method |
| CN107861811A (en) * | 2017-10-24 | 2018-03-30 | 平安科技(深圳)有限公司 | Mission bit stream transmission method, device and computer equipment in Workflow system |
| CN108132830A (en) * | 2016-12-01 | 2018-06-08 | 北京金山云网络技术有限公司 | A kind of method for scheduling task, apparatus and system |
| CN108156236A (en) * | 2017-12-22 | 2018-06-12 | 平安养老保险股份有限公司 | Service request processing method, device, computer equipment and storage medium |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| SE0200418D0 (en) * | 2002-02-13 | 2002-02-13 | Ericsson Telefon Ab L M | A method and apparatus for computer load sharing and data distribution |
| JP5512215B2 (en) * | 2009-09-30 | 2014-06-04 | 株式会社日立システムズ | Job processing system and method, and program thereof |
| JP5906950B2 (en) * | 2012-06-06 | 2016-04-20 | 富士通株式会社 | Information processing method and apparatus for content distribution |
-
2018
- 2018-10-26 CN CN201811261141.3A patent/CN109614209B/en active Active
Patent Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2004348549A (en) * | 2003-05-23 | 2004-12-09 | Nippon Telegr & Teleph Corp <Ntt> | Task allocation method, task allocation device, resource allocation method, and resource allocation device |
| CN105074686A (en) * | 2013-01-24 | 2015-11-18 | 华美宏道公司 | Systems and methods for creating and sharing tasks |
| CN105531675A (en) * | 2013-06-19 | 2016-04-27 | 日立数据系统工程英国有限公司 | Decentralized distributed computing system |
| CN104253702A (en) * | 2013-06-27 | 2014-12-31 | 华为软件技术有限公司 | Terminal management method and system |
| CN104461747A (en) * | 2014-12-31 | 2015-03-25 | 合一网络技术(北京)有限公司 | Distributed type task scheduling system |
| CN105550025A (en) * | 2015-12-08 | 2016-05-04 | 北京航空航天大学 | Distributed IaaS (Infrastructure as a Service) scheduling method and system |
| CN108132830A (en) * | 2016-12-01 | 2018-06-08 | 北京金山云网络技术有限公司 | A kind of method for scheduling task, apparatus and system |
| CN106998370A (en) * | 2017-06-15 | 2017-08-01 | 北京微影时代科技有限公司 | Access control method, device and system |
| CN107330069A (en) * | 2017-06-30 | 2017-11-07 | 北京金山安全软件有限公司 | Multimedia data processing method and device, server and storage medium |
| CN107689994A (en) * | 2017-08-29 | 2018-02-13 | 环球智达科技(北京)有限公司 | A kind of mission bit stream processing method |
| CN107861811A (en) * | 2017-10-24 | 2018-03-30 | 平安科技(深圳)有限公司 | Mission bit stream transmission method, device and computer equipment in Workflow system |
| CN108156236A (en) * | 2017-12-22 | 2018-06-12 | 平安养老保险股份有限公司 | Service request processing method, device, computer equipment and storage medium |
Non-Patent Citations (1)
| Title |
|---|
| 面向云计算的小粒度应用容器模型研究与应用;白伟华;《中国博士学位论文全文数据库 信息科技辑》(第5期);I137-1 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109614209A (en) | 2019-04-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109614209B (en) | A task processing method, application server and system | |
| US11645649B2 (en) | Resource transfer method and apparatus, storage medium, and computer device | |
| CN107993149B (en) | Account information management method, system and readable storage medium | |
| CN108197913B (en) | Payment method, system and computer readable storage medium based on block chain | |
| CN113064744B (en) | Task processing method, device, computer readable medium and electronic device | |
| CN105634778B (en) | Method, system, NFVO and VNFM for realizing VNF instantiation | |
| CN111901222B (en) | Information processing method and information processing apparatus | |
| CN111639309B (en) | Data processing method and device, node equipment and storage medium | |
| CN111291060A (en) | Method, device and computer readable medium for managing block chain nodes | |
| CN111884807A (en) | Article reservation method, apparatus, device and medium based on block chain | |
| KR20210029304A (en) | Method and system for allocating virtual articles | |
| CN110677453A (en) | ZooKeeper-based distributed lock service implementation method, device, equipment and storage medium | |
| CN110673933A (en) | ZooKeeper-based distributed asynchronous queue implementation method, device, equipment and medium | |
| US20250392477A1 (en) | Data processing method, computer device, and storage medium | |
| CN110601896A (en) | Data processing method and equipment based on block chain nodes | |
| CN109598603B (en) | Account opening task processing method and account opening service system | |
| CN112799970B (en) | Test data processing method, device, electronic equipment and medium | |
| CN114202329B (en) | Business processing method, device, node equipment and storage medium | |
| CN116804949B (en) | Block chain-based data processing method, device, equipment and readable storage medium | |
| CN112181599A (en) | Model training method, device and storage medium | |
| CN118353628A (en) | Blockchain data processing method, device, computer equipment, medium and product | |
| CN116974764A (en) | Data processing methods, devices, equipment and readable storage media based on blockchain | |
| CN117390666A (en) | Block chain-based data processing method, system, medium and equipment | |
| KR102304954B1 (en) | Peer node, method for processing information executed on peer node and blockchain platform system | |
| CN113806393A (en) | Electronic resource processing method, device, electronic device and readable storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| TA01 | Transfer of patent application right |
Effective date of registration: 20200924 Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands Applicant after: Innovative advanced technology Co.,Ltd. Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands Applicant before: Advanced innovation technology Co.,Ltd. Effective date of registration: 20200924 Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands Applicant after: Advanced innovation technology Co.,Ltd. Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands Applicant before: Alibaba Group Holding Ltd. |
|
| TA01 | Transfer of patent application right | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |