CN107894926B - System and method for synchronizing and distributing bank image input tasks - Google Patents

System and method for synchronizing and distributing bank image input tasks Download PDF

Info

Publication number
CN107894926B
CN107894926B CN201711226923.9A CN201711226923A CN107894926B CN 107894926 B CN107894926 B CN 107894926B CN 201711226923 A CN201711226923 A CN 201711226923A CN 107894926 B CN107894926 B CN 107894926B
Authority
CN
China
Prior art keywords
task
queue
tasks
teller
center
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
CN201711226923.9A
Other languages
Chinese (zh)
Other versions
CN107894926A (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.)
Sinyada Technology Co.,Ltd.
Original Assignee
Sunyard System Engineering 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 Sunyard System Engineering Co ltd filed Critical Sunyard System Engineering Co ltd
Priority to CN201711226923.9A priority Critical patent/CN107894926B/en
Publication of CN107894926A publication Critical patent/CN107894926A/en
Application granted granted Critical
Publication of CN107894926B publication Critical patent/CN107894926B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/544Remote
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a system and a method for synchronizing and distributing bank image input tasks, wherein the system comprises a task refreshing module, a task synchronizing module and a task distributing module, and the method initializes each queue when the system is started and respectively executes task refreshing and synchronizing operation or distributing operation. The invention realizes that when the bank image input task is initiated at a plurality of service centers simultaneously, the multi-center tasks are efficiently and uniformly sequenced and stored, and when an external service processing program is concurrently called, the task information is quickly positioned and returned, thereby realizing the accurate synchronization of the task state, reducing the failure rate of task acquisition, and improving the task processing efficiency through the multi-task queue storage.

Description

System and method for synchronizing and distributing bank image input tasks
Technical Field
The invention relates to the technical field of computer information, in particular to a synchronization and distribution method applied to a bank image input task.
Background
With the rapid development of the global financial industry, financial institutions are changing continuously, particularly banks need to maintain and update their own services under the ever-increasing demands, and they create a system with customers as the center, and through process modification, the business experience of users is improved, which also requires background personnel to be able to quickly process customer business and return the business result to the foreground teller when the bank counter accepts the customer business, and the foreground teller informs the customer result.
The general task synchronization and distribution mechanism is based on a push mechanism, namely, an external service is connected to a task distribution service, information is registered, the state of the external service is maintained in the task distribution service, the external service updates the state of the external service in a near-real-time manner through heartbeat, and the task distribution service actively distributes the external service according to a state list and a distribution rule of the external service. In this mode, the external service needs to establish heartbeat and monitor service processing services, and the resource consumption is high; the task distribution service has complex processing logic, needs to perform task sequencing and multiple element matching at banks, and has low distribution performance; if the state synchronization fails, the pushing of the business to the external service can be repeated, and the problem of increased processing pressure of the external service is caused.
Disclosure of Invention
The method is different from a common pushing mechanism, adopts an external service pulling mode, returns task result information according to calling information of the external service without maintaining the state of the external service, does not need to establish heartbeat and monitoring service by the external calling service, only needs to establish a single service, and obtains task information by the transmission of the service. And the problem of time delay between the acquisition of the previous task and the acquisition of the next task is solved through a task acquisition mechanism in advance. The specific technical scheme is as follows:
a system for synchronizing and distributing bank image entry tasks, the system comprising:
the task refreshing module is used for regularly acquiring a certain number of tasks and corresponding attributes from the image input task pool to be processed and storing the tasks and the corresponding attributes in the temporary task queue;
the task synchronization module synchronizes tasks in the temporary task queue refreshed by the task refreshing module into a corresponding distributed task queue according to task attributes;
and the task allocation module is used for matching according to the attribute transmitted by the external service and the task attribute in the allocation task queue after being called by the external service, modifying the task state in the allocation task queue after the matching is finished, modifying the task attribute of the image to be processed input task pool, and returning the task to the external service.
A synchronization and distribution method for a bank image input task is characterized by comprising the following steps:
the method comprises the following steps: when the system is started, initializing a temporary task queue, allocating the task queue, removing the task queue and a task refreshing mark, and creating an object lock with the task belonging center as a dimension for allocating the task queue;
step two: when the tasks need to be refreshed and synchronized, the following operations are performed:
(1) when the task of the image input task pool to be processed is obtained, a task refreshing mark is opened;
(2) regularly acquiring a certain number of task objects and corresponding attributes thereof from an image input task pool to be processed, and closing a task refreshing mark after the acquisition is finished;
(3) sequencing the tasks in a mode of descending the task priority, the task creation time sequence and the task ending processing time sequence;
(4) after the task ordering is finished, storing the task objects in a temporary task queue in sequence;
(5) opening an object lock, comparing the tasks in the temporary task queue with the tasks in the removal task queue, and if finding out the tasks with the same task numbers, removing the tasks in the temporary task queue to form a filtered temporary task queue;
(6) copying the filtered temporary task queue to a corresponding distribution task queue to which the center belongs according to the center to which the task belongs, and releasing the object lock after the task is completed;
when the task needs to be distributed, the following operations are carried out:
(1) the external service transmits matching elements including a teller center number, a teller skill number and a teller number, and requests to distribute tasks;
(2) according to the input teller center number, opening an object lock corresponding to the input teller center number, traversing a distribution task queue corresponding to the input teller center number, and matching the nearest task according to the principle that the input teller skill number is consistent with the skill number required by the task of the distribution task queue and the same teller can only process the same task once;
(3) after matching is successful, judging whether the task reaches the required processing times, if not, modifying the state of the task in the current distributed task queue, wherein the state comprises the processed times of the task and a task processing personnel list, and if so, removing the task from the distributed task queue;
(4) judging whether the refreshing mark is opened, if so, recording the task number into a task removing queue; if not, the task number is not required to be recorded in the removal task queue; releasing the object lock;
(5) and modifying the task state of the image to be processed, which is recorded into the task pool with the same task number, and returning the information of the task to the external service.
Further, the attributes comprise task priority, task creation time, task ending processing time, task required skill number, task required processing times, task processed times, task processing personnel list and task number.
Compared with the prior art, the beneficial effect of this scheme is as follows:
(1) according to the method, according to the principle of obtaining the external service, the external service task result is quickly returned in a searching and matching mode according to the matching information transmitted by the external service, and the task matching efficiency is improved through the task queue segmentation of the service center;
(2) according to the method, in the task synchronization process, tasks with inconsistent states are recorded through the task refreshing marks, and the problem that task processing fails due to inconsistent task states is solved.
(3) The method of the invention enables the external service to acquire the task only by establishing a single service link, thereby reducing the resource consumption of the client and the server.
Drawings
Fig. 1 is a flow chart of a method for synchronizing and distributing bank image entry tasks according to the invention.
Detailed Description
A system for synchronizing and distributing bank image entry tasks, the system comprising:
the task refreshing module is used for regularly acquiring a certain number of tasks and corresponding attributes from the image input task pool to be processed and storing the tasks and the corresponding attributes in the temporary task queue;
the task synchronization module synchronizes tasks in the temporary task queue refreshed by the task refreshing module into a corresponding distributed task queue according to task attributes;
and the task allocation module is used for matching according to the attribute transmitted by the external service and the task attribute in the allocation task queue after being called by the external service, modifying the task state in the allocation task queue after the matching is finished, modifying the task attribute of the image to be processed input task pool, and returning the task to the external service.
A synchronization and distribution method for a bank image input task is characterized by comprising the following steps:
the method comprises the following steps: when the system is started, initializing a temporary task queue, allocating the task queue, removing the task queue and a task refreshing mark, and creating an object lock with the task belonging center as a dimension for allocating the task queue;
step two: when the tasks need to be refreshed and synchronized, the following operations are performed:
(1) when the task of the image input task pool to be processed is obtained, a task refreshing mark is opened;
(2) regularly acquiring a certain number of task objects and corresponding attributes thereof from an image input task pool to be processed, and closing a task refreshing mark after the acquisition is finished;
(3) sequencing the tasks in a mode of descending the task priority, the task creation time sequence and the task ending processing time sequence;
(4) after the task ordering is finished, storing the task objects in a temporary task queue in sequence;
(5) opening an object lock, comparing the tasks in the temporary task queue with the tasks in the removal task queue, and if finding out the tasks with the same task numbers, removing the tasks in the temporary task queue to form a filtered temporary task queue;
(6) copying the filtered temporary task queue to a corresponding distribution task queue to which the center belongs according to the center to which the task belongs, and releasing the object lock after the task is completed;
when the task needs to be distributed, the following operations are carried out:
(1) the external service carries out heartbeat connection at regular time, when only heartbeat is needed, heartbeat information is transmitted, and when a task needs to be acquired, task matching elements are transmitted; the external service transmits matching elements including teller center number input, teller skill number input and teller number input, and requests to distribute tasks;
(2) according to the input teller center number, opening an object lock corresponding to the input teller center number, traversing a distribution task queue corresponding to the input teller center number, and matching the latest task according to the principle that the input teller skill number is consistent with the skill number required by the task of the distribution task queue and the same teller can only process the same service once;
(3) after matching is successful, judging whether the task reaches the required processing times, if not, modifying the state of the task in the current distributed task queue, wherein the state comprises accumulation of the processing times of the task and addition of a task processing personnel list into the number of the input teller, and if so, removing the task from the distributed task queue;
(4) judging whether the refreshing mark is opened, if so, recording the task number into a task removing queue; if not, the task number is not required to be recorded in the removal task queue; releasing the object lock;
(5) and if the matching is successful, modifying the task state of the image to be processed, which is recorded into the same task number in the task pool, including the accumulation of the number of times the task has been processed and the addition of the task processing personnel list into the number of the recorded teller, returning the information of the task to the external service, and if the task is not matched, returning the information of the unmatched task to the external service.
Further, the attributes comprise task priority, task creation time, task ending processing time, task required skill number, task required processing times, task processed times, task processing personnel list and task number.

Claims (2)

1. A synchronization and distribution method for a bank image input task is characterized by comprising the following steps:
the method comprises the following steps: when the system is started, initializing a temporary task queue, allocating the task queue, removing the task queue and a task refreshing mark, and creating an object lock with the task belonging center as a dimension for allocating the task queue;
step two: when the tasks need to be refreshed and synchronized, the following operations are performed:
(1) when a task of acquiring an image to be processed and inputting the image into a task pool starts, a task refreshing mark is opened;
(2) regularly acquiring a certain number of task objects and corresponding attributes thereof from an image input task pool to be processed, and closing a task refreshing mark after the acquisition is finished;
(3) sequencing the tasks in a mode of descending the task priority, the task creation time sequence and the task ending processing time sequence;
(4) after the task ordering is finished, storing the task objects in a temporary task queue in sequence;
(5) opening an object lock, comparing the tasks in the temporary task queue with the tasks in the removal task queue, and if finding out the tasks with the same task numbers, removing the tasks in the temporary task queue to form a filtered temporary task queue;
(6) copying the filtered temporary task queue to a corresponding distribution task queue to which the center belongs according to the center to which the task belongs, and releasing the object lock after the task is completed;
when the task needs to be distributed, the following operations are carried out:
(1) the external service transmits matching elements including a teller center number, a teller skill number and a teller number, and requests to distribute tasks;
(2) according to the input teller center number, opening an object lock corresponding to the input teller center number, traversing a distribution task queue corresponding to the input teller center number, and matching the latest task according to the principle that the input teller skill number and the skill number required by the task of the distribution task queue can only process the same task once by the same teller;
(3) after matching is successful, judging whether the task reaches the required processing times, if not, modifying the state of the task in the current distributed task queue, wherein the state comprises the processed times of the task and a task processing personnel list, and if so, removing the task from the distributed task queue;
(4) judging whether the refreshing mark is opened, if so, recording the task number into a task removing queue; if not, the task number is not required to be recorded in the removal task queue; releasing the object lock;
(5) and modifying the task state of the image to be processed, which is recorded into the task pool with the same task number, and returning the information of the task to the external service.
2. The method for synchronizing and distributing bank image entry tasks according to claim 1, wherein the attributes include task priority, task creation time, task expiration processing time, task required skill number, number of times tasks need to be processed, number of times tasks have been processed, task handler list, and task number.
CN201711226923.9A 2017-11-29 2017-11-29 System and method for synchronizing and distributing bank image input tasks Active CN107894926B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711226923.9A CN107894926B (en) 2017-11-29 2017-11-29 System and method for synchronizing and distributing bank image input tasks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711226923.9A CN107894926B (en) 2017-11-29 2017-11-29 System and method for synchronizing and distributing bank image input tasks

Publications (2)

Publication Number Publication Date
CN107894926A CN107894926A (en) 2018-04-10
CN107894926B true CN107894926B (en) 2020-11-10

Family

ID=61806670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711226923.9A Active CN107894926B (en) 2017-11-29 2017-11-29 System and method for synchronizing and distributing bank image input tasks

Country Status (1)

Country Link
CN (1) CN107894926B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110895485A (en) * 2018-09-12 2020-03-20 北京奇虎科技有限公司 Task scheduling system
CN109491810B (en) * 2018-11-20 2020-06-23 泰华智慧产业集团股份有限公司 Method and system for extensible multi-time-effect level message forwarding
CN114422594B (en) * 2020-10-13 2024-09-27 顺丰科技有限公司 Service processing method, device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7165256B2 (en) * 2001-09-11 2007-01-16 Sun Microsystems, Inc. Task grouping in a distributed processing framework system and methods for implementing the same
CN104077701A (en) * 2014-06-09 2014-10-01 中国建设银行股份有限公司 Task processing method and device used for e-business platform
CN104463482A (en) * 2014-12-16 2015-03-25 用友软件股份有限公司 Task allocation method and task allocation device
CN104935658A (en) * 2015-06-17 2015-09-23 交通银行股份有限公司 Bank task allocation method and device
CN105809323A (en) * 2016-02-23 2016-07-27 平安科技(深圳)有限公司 Task allocation method and system
CN107180050A (en) * 2016-03-11 2017-09-19 精硕科技(北京)股份有限公司 A kind of data grabber system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7165256B2 (en) * 2001-09-11 2007-01-16 Sun Microsystems, Inc. Task grouping in a distributed processing framework system and methods for implementing the same
CN104077701A (en) * 2014-06-09 2014-10-01 中国建设银行股份有限公司 Task processing method and device used for e-business platform
CN104463482A (en) * 2014-12-16 2015-03-25 用友软件股份有限公司 Task allocation method and task allocation device
CN104935658A (en) * 2015-06-17 2015-09-23 交通银行股份有限公司 Bank task allocation method and device
CN105809323A (en) * 2016-02-23 2016-07-27 平安科技(深圳)有限公司 Task allocation method and system
CN107180050A (en) * 2016-03-11 2017-09-19 精硕科技(北京)股份有限公司 A kind of data grabber system and method

Also Published As

Publication number Publication date
CN107894926A (en) 2018-04-10

Similar Documents

Publication Publication Date Title
CN106503132B (en) A kind of distributed transaction management method and system
US10698891B2 (en) MxN dispatching in large scale distributed system
Zhang et al. Poseidon: An efficient communication architecture for distributed deep learning on {GPU} clusters
EP3120261B1 (en) Dependency-aware transaction batching for data replication
CN107894926B (en) System and method for synchronizing and distributing bank image input tasks
KR101993432B1 (en) Systems and methods for supporting transaction recovery based on a strict ordering of two-phase commit calls
US8671074B2 (en) Logical replication in clustered database system with adaptive cloning
US9747356B2 (en) Eager replication of uncommitted transactions
CN109643310A (en) System and method for fast resampling in database
US10152499B1 (en) Database replication scaling
US10268643B2 (en) Systems and methods for facilitation communications among customer relationship management users
CN110019469B (en) Distributed database data processing method and device, storage medium and electronic device
US11573974B2 (en) System and method for automatic correction/rejection in an analysis applications environment
KR20140147812A (en) Systems and methods for supporting inline delegation of middle-tier transaction logs to database
US9430219B2 (en) Revision safe upgrade in a hybrid cloud landscape
CN108132837A (en) A kind of distributed type assemblies dispatch system and method
JP6975153B2 (en) Data storage service processing method and equipment
CN110704465A (en) Method, device and storage medium for processing service work order table
CN111666144A (en) Batch processing task execution method and system and machine room deployment system
CN113076304A (en) Distributed version management method, device and system
CN109582445A (en) Message treatment method, device, electronic equipment and computer readable storage medium
CN106844727B (en) Mass image characteristic data distributed acquisition processing and grading application system and method
CN110532069A (en) A kind of distributed transaction submission method and device
CN106874341A (en) A kind of database synchronization method
CN109871394B (en) Full-distributed high-concurrency calculation method and device

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
CP01 Change in the name or title of a patent holder

Address after: Xinyada technology building, 3888 Jiangnan Avenue, Binjiang District, Hangzhou City, Zhejiang Province 310051

Patentee after: Sinyada Technology Co.,Ltd.

Address before: Xinyada technology building, 3888 Jiangnan Avenue, Binjiang District, Hangzhou City, Zhejiang Province 310051

Patentee before: SUNYARD SYSTEM ENGINEERING Co.,Ltd.

CP01 Change in the name or title of a patent holder