WO2019000995A1 - System and method for data call between associated systems - Google Patents

System and method for data call between associated systems Download PDF

Info

Publication number
WO2019000995A1
WO2019000995A1 PCT/CN2018/077657 CN2018077657W WO2019000995A1 WO 2019000995 A1 WO2019000995 A1 WO 2019000995A1 CN 2018077657 W CN2018077657 W CN 2018077657W WO 2019000995 A1 WO2019000995 A1 WO 2019000995A1
Authority
WO
WIPO (PCT)
Prior art keywords
threads
access requests
client
data
access request
Prior art date
Application number
PCT/CN2018/077657
Other languages
French (fr)
Chinese (zh)
Inventor
刘四根
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019000995A1 publication Critical patent/WO2019000995A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Definitions

  • the present application relates to the field of data calling, and in particular, to a data calling system and method between related systems.
  • the industry-based workflow-based data processing method is to refine the minimum elements of the process definition to nodes; the definition of the process definition and the task acquisition permission are divided into two independent modules, which are no longer dependent on each other;
  • the module the query operation for most tasks is provided by the module, which reduces the pressure on the DB;
  • the historical data distribution BAM module is added, and the historical data is distributed to the first systems for storage and maintenance according to the system to which the task belongs.
  • the present application provides a data invoking system and method between related systems, the main purpose of which is to solve the problem that a large number of threads of the first system are remotely called due to a large number of threads of the first system, resulting in a large number of threads being occupied by the first system, and the second system.
  • the present application provides a method for invoking data between associated systems, the method comprising the following steps:
  • the received access request is allocated to the plurality of threads.
  • the step of creating a plurality of threads according to the number of servers configured by the first system comprises:
  • a corresponding plurality of threads are created according to the number of servers configured by the first system.
  • the present application further provides a server, the server including a storage device, a processor, a display, and a data call between the associated systems stored on the storage device and operable on the processor
  • the server including a storage device, a processor, a display, and a data call between the associated systems stored on the storage device and operable on the processor
  • the received access request is allocated to the plurality of threads.
  • the present application further provides a computer readable storage medium storing a data invoking system between associated systems, where the data invoking system between the interrelated systems is executed by at least one processor The following steps:
  • the received access request is allocated to the plurality of threads.
  • the data calling system and method between the associated systems can simultaneously set a data calling system between the first system and the second system, and utilize the data calling system between the related systems.
  • the access request occurs to limit the flow.
  • the first system receives the large-volume access request
  • the first system calls a large number of threads to remotely call the data of the second system in an unlimited manner, so that a large number of threads of the first system are occupied.
  • the second system is remotely called by a large number of threads without restriction, thereby causing the first system and the second system to be overwhelmed.
  • FIG. 1 is an application environment diagram of a preferred embodiment of a data invoking system between associated systems of the present application.
  • FIG. 2 is a block diagram of a program of a preferred embodiment of a data invoking system between associated systems of the present application.
  • FIG. 3 is a hardware architecture diagram of a preferred embodiment of a data invocation system between associated systems of the present application.
  • FIG. 4 is a flow chart of a preferred embodiment of a method for invoking data between associated systems of the present application.
  • FIG. 5 is a detailed flowchart of step S10 in the preferred embodiment of the data invoking method between the associated systems of the present application.
  • FIG. 6 is a detailed flowchart of step S20 in the preferred embodiment of the data invoking method between the associated systems of the present application.
  • FIG. 1 it is an application environment diagram of a preferred embodiment of the data invoking system 10 between the related systems of the present application.
  • the data invoking system 10 between the associated systems is installed between two or more associated systems, such as the first system A and the second system B.
  • the first system A and the second system B are each configured with one or more servers 1.
  • Data interaction between the first system A and the second system B is possible.
  • the data invoking system is applied to one or more servers 1 configured by the first system A, and the one or more servers 1 are connected to one or more clients 3 via the network 2.
  • the first system A may be a service system, such as a business system of a financial service organization
  • the second system B may be a workflow system, such as a system for managing various workflow nodes of the financial service organization.
  • the first system A may also be a business system of other organizations.
  • the one or more servers 1 configured by the first system A are connected to the storage device 11.
  • the storage device 11 stores information of all customers of the financial service institution, such as customer identity information, account information, and insurance purchase information.
  • the storage device 11 to which the one or more servers 1 are connected may be a local storage device or a storage device connected through the network 2.
  • the one or more servers 4 configured by the second system B are connected to the storage device 21.
  • the storage device 21 stores data such as the status of all policy flow nodes of the financial service institution.
  • the storage device 21 connected to the one or more servers 2 may be a local storage device or a storage device connected through the network 2.
  • the data invoking system 10 between the associated systems may be configured in a storage space provided by one or more servers 1 configured by the first system A.
  • the storage space may be located in one of the one or more servers 1 of the first system A, or may be composed of storage space fragments of different servers 1 of one or more servers 1 of the first system A. a storage space.
  • the data invoking system 10 between the associated systems can also be configured on a single server 1.
  • the network 2 can be a local area network (LAN), a wide area network (WAN), and a metropolitan area network (MAN), and can be a wired network or a fiber network.
  • LAN local area network
  • WAN wide area network
  • MAN metropolitan area network
  • Optical Fiber Network can also be a wireless network.
  • Client 3 can be a desktop computer, a notebook, a tablet, a smart phone, an e-book reader, a MP3 (Moving Picture Experts Group Audio Layer III) player, MP4 (Moving Picture Experts) Group Audio Layer IV, dynamic video expert compresses standard audio layer 4)
  • a terminal device that can communicate with server 1 via network 2, such as a player or a portable computer.
  • FIG. 2 it is a program module diagram of a preferred embodiment of the data invoking system 10 between the associated systems of the present application.
  • the associated system is a first system A and a second system B, and a data invoking system 10 between the associated systems is disposed between the first system A and the second system B, where the One system A is a business system, and the second system B is a workflow system.
  • the data invoking system 10 between the associated systems includes a thread creation module 110, a request allocation module 120, and a request execution module 130.
  • the thread creation module 110 is configured to create a plurality of threads according to the number of servers 1 configured by the first system A.
  • the thread creation module 110 creates a corresponding plurality of threads according to the number of servers 1 configured by the first system A, and the number of the multiple threads is an integer multiple of the number of servers 1 configured by the first system A. For example, if the number of servers 1 configured by the business system is five, the thread creation module 110 creates a plurality of threads, which may be five, ten, fifteen, and the like.
  • the thread creation module 110 is further configured to determine the number of servers 1 configured by the first system A. Taking the service system as an example, in the process of creating a service system, for the number of servers 1 configured in the service system, the engineer will consider the maximum number of concurrent transactions that the service system may face in the future, and configure the number of servers 1 accordingly. If the number of concurrent concurrency of the service system is large, the number of servers 1 configured by the corresponding service system will increase accordingly. Of course, the number of servers 1 does not increase indefinitely due to the increase in the number of concurrent. Therefore, the thread creation module 110 may query the number of servers 1 configured by the service system from the configuration file of the service system, or query the number of servers 1 configured by the service system from related records of the service system.
  • the request allocation module 120 is configured to allocate the received access request to the plurality of threads when the first system A receives a large number of access requests sent by the client 3.
  • the number of servers 1 configured by the business system is 5, and the thread creation module 110 creates 10 threads, and the 10 threads are sequentially numbered: 0 thread, thread 1 thread, thread 2, ... Thread No. 9, when the service system receives a large number of access requests from the client 3, the request allocation module 120 allocates a large number of access requests to the 10 threads as evenly as possible.
  • the request allocation module 120 includes an operation module 121 and a task assignment module 122.
  • the operation module 121 is configured to perform a remainder (MOD) operation on the number of access requests received by the first system A and the number of the plurality of threads. For example, when the service system receives 25 access requests from the client 3, the operation module 121 performs a remainder operation on the number of access requests 25 received and the number of threads 10, and the result of the remainder of 25 and 10 is 5.
  • MOD remainder
  • the task assignment module 122 is configured to allocate an access request to the plurality of threads according to the operation result. If the result of the operation is 0, the task assignment module 122 distributes the plurality of access requests equally to the plurality of threads. If the operation result is a, and a ⁇ 0, then after subtracting a from the number of received access requests, it is evenly distributed to the plurality of threads, and then the remaining a access requests are sequentially assigned to number 0 to Thread (a-1) until the end of the division.
  • the operation module 121 receives the number of access requests received by the service system into 20, the number of threads is 10, and the result of performing the remainder operation is 0. Then, the task assignment module 122 averages 20 access requests. Assigned to 10 threads, each thread averages 2 data requests.
  • the task assignment module 122 first distributes the 20 access requests to 10 threads, and the remaining 5 threads are sequentially assigned to the 0th thread, the 1st thread, and the 2nd thread. , thread 3 and thread 4.
  • the task assignment module 122 also allocates a new access request according to the current access request processing status of each thread. For example, the business system receives 12 new access requests, and the processing requirements of the unfinished access requests of each thread are as follows: thread 1: 1; thread 3: 1; access requests assigned by other threads have been completed. deal with. Then, the number of new access requests received by the service system is 12, the number of threads is 10. The result of the operation module 121 performing the remainder operation is 2, and then the 12 access requests received are subtracted from the remaining 2 There are 10 access requests after the access request, and the task assignment module 122 first distributes the 10 access requests to 10 threads, and since the thread 1 has an unprocessed access request, the remaining 2 threads are left. It is assigned to thread 0 and thread 2 in turn.
  • the request execution module 130 is configured to invoke the multiple threads to perform an access request obtained by the second thread, and access the second system B through the network 2, and feed back the data acquired from the second system B to the first system A, by the first system.
  • the life insurance process includes the following nodes: insurance - underwriting - underwriting.
  • Each life insurance business personnel accesses the business system through the client 3 and performs related operations, and the workflow system manages the various process nodes of the life insurance.
  • the request execution module 130 calls the thread to access the workflow system through the network 2, The data related to the life insurance order with the number xx is read, and the result is fed back to the business system, and the life insurance business personnel of the client 3 are informed that the life insurance order of the single number is currently under-warranty.
  • the life insurance business personnel check the life insurance order with the number xx to ensure that the order information is accurate and can enter the next node—the underwriting node. Then, the life insurance business personnel perform corresponding operations on the business system.
  • the request execution module 130 sends the signal to the workflow system, causes the life insurance order processing status to enter the next node, and then feeds back the processing result of the life insurance order to the business system, informing the life insurance business personnel of the client 3 that the order has been Enter the underwriting node.
  • FIG. 3 it is a hardware architecture diagram of a preferred embodiment of the data invoking system 10 between the associated systems of the present application.
  • the data invoking system 10 between the associated systems is applied to the server 1, which includes, but is not limited to, the storage device 11, the processor 12, and the display 13.
  • the storage device 11 stores program code of the data invoking system 10 between the associated systems, and the storage device 11 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (for example, SD) Or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM) , magnetic storage, magnetic disks, optical disks, and so on.
  • a flash memory a hard disk
  • a multimedia card for example, SD) Or DX memory, etc.
  • RAM random access memory
  • SRAM static random access memory
  • ROM read only memory
  • EEPROM electrically erasable programmable read only memory
  • PROM programmable read only memory
  • the processor 12 may be a central processing unit (CPU), a microprocessor or other data processing chip, and a program for reading and running the stored data between the associated systems of the associated system from the storage device 11 .
  • CPU central processing unit
  • microprocessor or other data processing chip
  • the display 13 can be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch sensor, or the like. Display 13 is used to display a visualized user interface.
  • the server 1 may further include a user interface
  • the user interface may include a display, an input unit such as a keyboard, and optionally, the user interface may further include a standard wired interface and a wireless interface.
  • Figure 3 shows only the server 1 with the components 11-13 and the data invoking system 10 between the associated systems, but it should be understood that not all of the illustrated components may be implemented, and that more or fewer implementations may be implemented instead. Component.
  • FIG. 4 it is a flowchart of a preferred embodiment of a data invocation method between associated systems of the present application.
  • the data calling method between the associated systems includes: steps S10, S20, and step S30.
  • step S10 a plurality of threads are created according to the number of servers 1 configured by the first system A.
  • a data invoking system 10 is set up between the first system A and the second system B.
  • the thread creation module 110 creates a corresponding plurality of threads according to the number of servers 1 configured by the first system A.
  • the number of the plurality of threads is an integer multiple of the number of servers 1 configured by the first system A.
  • step S10 includes steps S11 and S12.
  • step S11 the number of servers 1 configured by the first system A is determined.
  • the engineer will consider the maximum number of concurrent transactions that the service system may face in the future, and configure the number of servers 1 accordingly. If the number of concurrent concurrency of the service system is large, the number of servers 1 configured by the corresponding service system will increase accordingly. Of course, the number of servers 1 does not increase indefinitely due to the increase in the number of concurrent. Therefore, the thread creation module 110 may query the number of servers 1 configured by the service system from the configuration file of the service system, or query the number of servers 1 configured by the service system from related records of the service system.
  • Step S12 Create a corresponding plurality of threads according to the number of servers 1 configured by the first system A.
  • the number of the plurality of threads is an integer multiple of the number of servers 1 configured by the first system A. For example, if the number of servers 1 configured by the first system A is five, the thread creation module 110 creates a plurality of threads, which may be five, ten, fifteen, and the like.
  • Step S20 When the first system A receives a large number of access requests from the client 3, the access request is received to the plurality of threads.
  • the number of servers 1 configured by the business system is 5, and the thread creation module 110 creates 10 threads, and the 10 threads are sequentially numbered: 0 thread, thread 1 thread, thread 2, ... Thread No. 9, when the service system receives a large number of access requests from the client 3, the request allocation module 120 allocates a large number of access requests to the 10 threads as evenly as possible.
  • step S20 includes steps S21 and S22.
  • step S21 the operation module 121 performs a remainder (MOD) operation on the number of access requests issued by the client 3 received by the first system A and the number of the plurality of threads. For example, when the service system receives 25 access requests from the client 3, the operation module 121 performs a remainder operation on the number of access requests 25 received and the number of threads 10, and the result of the remainder of 25 and 10 is 5.
  • MOD remainder
  • step S22 the task assignment module 122 allocates an access request to the plurality of threads according to the operation result. If the result of the operation is 0, the task assignment module 122 distributes the plurality of access requests equally to the plurality of threads. If the operation result is a, and a ⁇ 0, then after subtracting a from the number of received access requests, it is evenly distributed to the plurality of threads, and then the remaining a access requests are sequentially assigned to number 0 to Thread (a-1) until the end of the division.
  • the operation module 121 receives the number of access requests received by the service system into 20, the number of threads is 10, and the result of performing the remainder operation is 0. Then, the task assignment module 122 averages 20 access requests. Assigned to 10 threads, each thread averages 2 data requests.
  • the operation module 121 receives the number of access requests received by the first system A into 25, the number of threads is 10, and the result of performing the remainder operation is 5, then the 25 access requests received are subtracted. There are 20 access requests after the remaining 5 access requests, and the task assignment module 122 first distributes the 20 access requests to 10 threads, and the remaining 5 threads are sequentially assigned to the 0th thread and the 1st. Thread, thread 2, thread 3, and thread 4.
  • step S22 also allocates a new access request according to the current access request processing status of each thread.
  • the business system receives 12 new access requests, and the processing requirements of the unfinished access requests of each thread are as follows: thread 1: 1; thread 3: 1; access requests assigned by other threads have been completed. deal with. Then, the number of new access requests received by the service system is 12, the number of threads is 10. The result of the operation module 121 performing the remainder operation is 2, and then the 12 access requests received are subtracted from the remainder. After two access requests, there are 10 access requests.
  • the task assignment module 122 first distributes the 10 access requests to 10 threads, and since the thread 1 has an unprocessed access request, the remaining 2 will be left. The threads are assigned to the 0th thread and the 2nd thread in turn.
  • step S30 the request execution module 130 calls the multiple threads to perform the allocated access request, accesses the second system B through the network 2, and feeds back the data acquired from the second system B to the first system A.
  • the first system A feeds back to the client 3.
  • the life insurance process includes the following nodes: insurance - underwriting - underwriting.
  • Each life insurance business personnel accesses the business system through the client 3 and performs related operations, and the workflow system manages the various process nodes of the life insurance.
  • the request execution module 130 calls the thread to access the workflow system through the network 2, The data related to the life insurance order with the number xx is read, and the result is fed back to the business system, and the life insurance business personnel of the client 3 are informed that the life insurance order of the single number is currently under-warranty.
  • the life insurance business personnel check the life insurance order with the number xx to ensure that the order information is accurate and can enter the next node—the underwriting node. Then, the life insurance business personnel perform corresponding operations on the business system.
  • the request execution module 130 sends the signal to the workflow system, causes the life insurance order processing status to enter the next node, and then feeds back the processing result of the life insurance order to the business system, informing the life insurance business personnel of the client 3 that the order has been Enter the underwriting node.
  • the application further includes a computer readable storage medium storing a data invoking system 10 between associated systems.
  • the data invoking system 10 between the associated systems is executed by at least one processor 12 to implement steps S10, S20, and S30.
  • step S10 a plurality of threads are created according to the number of servers 1 configured by the first system A.
  • a data invoking system 10 is set up between the first system A and the second system B.
  • the thread creation module 110 creates a corresponding plurality of threads according to the number of servers 1 configured by the first system A.
  • the number of the plurality of threads is an integer multiple of the number of servers 1 configured by the first system A.
  • step S10 includes: step S11 and step S12.
  • step S11 the number of servers 1 configured by the first system A is determined.
  • the engineer will consider the maximum number of concurrent operations that the service system may face in the future, and configure the number of servers 1 in this way. If the number of concurrent concurrency of the service system is large, the number of servers 1 configured by the corresponding service system will increase accordingly. Of course, the number of servers 1 does not increase indefinitely due to the increase in the number of concurrent. Therefore, the thread creation module 110 may query the number of servers 1 configured by the service system from the configuration file of the service system, or query the number of servers 1 configured by the service system from related records of the service system.
  • Step S12 Create a corresponding plurality of threads according to the number of servers 1 configured by the first system A.
  • the number of the plurality of threads is an integer multiple of the number of servers 1 configured by the first system A. For example, if the number of servers 1 configured by the first system A is five, the thread creation module 110 creates a plurality of threads, which may be five, ten, fifteen, and the like.
  • Step S20 When the first system A receives a large number of access requests from the client 3, the access request is received to the plurality of threads.
  • the number of servers 1 configured by the business system is 5, and the thread creation module 110 creates 10 threads, and the 10 threads are sequentially numbered: 0 thread, thread 1 thread, thread 2, ... Thread No. 9, when the service system receives a large number of access requests from the client 3, the request allocation module 120 allocates a large number of access requests to the 10 threads as evenly as possible.
  • step S20 includes: step S21 and step S22.
  • step S21 the operation module 121 performs a remainder (MOD) operation on the number of access requests issued by the client 3 received by the first system A and the number of the plurality of threads. For example, when the service system receives 25 access requests from the client 3, the operation module 121 performs a remainder operation on the number of access requests 25 received and the number of threads 10, and the result of the remainder of 25 and 10 is 5.
  • MOD remainder
  • step S22 the task assignment module 122 allocates an access request to the plurality of threads according to the operation result. If the result of the operation is 0, the task assignment module 122 distributes the plurality of access requests equally to the plurality of threads. If the operation result is a, and a ⁇ 0, then after subtracting a from the number of received access requests, it is evenly distributed to the plurality of threads, and then the remaining a access requests are sequentially assigned to number 0 to Thread (a-1) until the end of the division.
  • the operation module 121 receives the number of access requests received by the service system into 20, the number of threads is 10, and the result of performing the remainder operation is 0. Then, the task assignment module 122 averages 20 access requests. Assigned to 10 threads, each thread averages 2 data requests.
  • the operation module 121 receives the number of access requests received by the first system A into 25, the number of threads is 10, and the result of performing the remainder operation is 5, then the 25 access requests received are subtracted. There are 20 access requests after the remaining 5 access requests, and the task assignment module 122 first distributes the 20 access requests to 10 threads, and the remaining 5 threads are sequentially assigned to the 0th thread and the 1st. Thread, thread 2, thread 3, and thread 4.
  • step S22 also allocates a new access request according to the current access request processing status of each thread.
  • the business system receives 12 new access requests, and the processing requirements of the unfinished access requests of each thread are as follows: thread 1: 1; thread 3: 1; access requests assigned by other threads have been completed. deal with. Then, the number of new access requests received by the service system is 12, the number of threads is 10. The result of the operation module 121 performing the remainder operation is 2, and then the 12 access requests received are subtracted from the remainder. After two access requests, there are 10 access requests.
  • the task assignment module 122 first distributes the 10 access requests to 10 threads, and since the thread 1 has an unprocessed access request, the remaining 2 will be left. The threads are assigned to the 0th thread and the 2nd thread in turn.
  • step S30 the request execution module 130 calls the multiple threads to perform the allocated access request, accesses the second system B through the network 2, and feeds back the data acquired from the second system B to the first system A.
  • the first system A feeds back to the client 3.
  • the life insurance process includes the following nodes: insurance - underwriting - underwriting.
  • Each life insurance business personnel accesses the business system through the client 3 and performs related operations, and the workflow system manages the various process nodes of the life insurance.
  • the request execution module 130 calls the thread to access the workflow system through the network 2, The data related to the life insurance order with the number xx is read, and the result is fed back to the business system, and the life insurance business personnel of the client 3 are informed that the life insurance order of the single number is currently under-warranty.
  • the life insurance business personnel check the life insurance order with the number xx to ensure that the order information is accurate and can enter the next node—the underwriting node. Then, the life insurance business personnel perform corresponding operations on the business system.
  • the request execution module 130 sends the signal to the workflow system, causes the life insurance order processing status to enter the next node, and then feeds back the processing result of the life insurance order to the business system, informing the life insurance business personnel of the client 3 that the order has been Enter the underwriting node.

Abstract

The present application provides a method for data call between associated systems. The method comprises: creating a plurality of threads according to the number of servers configured by a first system; when the first system receives a great number of access requests sent by a client, assigning the received access requests to the plurality of threads; and calling the plurality of threads to execute the assigned access requests, accessing a second system via a network, feeding back data obtained by the second system to the first system, and feeding back the data to the client by the first system. According to the method, a great number of access requests made at the same time are limited, and the technical problem of overload of the first system and of the second system caused by occupation of a great number of threads of the first system and unlimited remote call of the second system by the great number of threads because the great number of threads remotely call the data of the second system without limit after the first system receives the great number of access requests can be resolved. The present invention also provides a server and a computer-readable storage medium.

Description

关联系统间的数据调用系统及方法Data calling system and method between related systems
本申请要求于2017年6月25日提交中国专利局、申请号为201710490402.8、发明名称为“关联系统间的数据调用系统及方法”的中国专利申请的优先权,其全部内容通过引用结合在申请中。This application claims the priority of the Chinese Patent Application filed on June 25, 2017, the Chinese Patent Office, the application number is 201710490402.8, and the invention is entitled "Data Calling System and Method between Related Systems", the entire contents of which are incorporated by reference. in.
技术领域Technical field
本申请涉及数据调用领域,尤其涉及一种关联系统间的数据调用系统及方法。The present application relates to the field of data calling, and in particular, to a data calling system and method between related systems.
背景技术Background technique
复杂的应用场景下,两个或两个以上的关联系统之间需要频繁地进行远程实时数据交互,容易造成关联系统因被无限制的大量远程调用数据而被压垮的问题。如某业务系统中的大量的流程节点需要调用某工作流系统的数据,进行流程的流转,且需要流程流转的时效性很高。一般的做法是业务系统的工作节点直接远程调用工作流系统,容易造成工作流系统被无限制的大量远程调用直到被压垮甚至崩溃。In a complex application scenario, frequent real-time data interaction between two or more associated systems is required, which easily causes the associated system to be overwhelmed by an unlimited number of remotely invoked data. For example, a large number of process nodes in a business system need to invoke the data of a workflow system to perform the flow of the process, and the process flow is required to be highly time-sensitive. The general practice is that the working node of the business system directly calls the workflow system remotely, which is easy to cause the workflow system to be called by a large number of remote calls without restriction until it is crushed or even crashed.
目前,业界基于工作流的数据处理方法是,将流程定义的最小元素细化到节点;将流程定义和任务获取权限的定义分成两个独立的模块,相互之间不再依赖;增加任务缓存Cache模块,对绝大多数任务的查询操作由该模块提供,降低DB的压力;增加历史数据分发BAM模块,根据任务所属的系统不同将历史数据分发给各第一系统自行保管并维护。尽管这种方法可以灵活的定义流程模式、支持流程间通信、可以快速响应业务权限调整,但未解决第一系统的工作节点大量远程调用第二系统的数据,造成第二系统被无限制的大量远程调用而被压垮的问题。At present, the industry-based workflow-based data processing method is to refine the minimum elements of the process definition to nodes; the definition of the process definition and the task acquisition permission are divided into two independent modules, which are no longer dependent on each other; The module, the query operation for most tasks is provided by the module, which reduces the pressure on the DB; the historical data distribution BAM module is added, and the historical data is distributed to the first systems for storage and maintenance according to the system to which the task belongs. Although this method can flexibly define the process mode, support the inter-process communication, and can quickly respond to the adjustment of the service authority, the working node of the first system does not solve the large number of remotely calling the data of the second system, resulting in the second system being unrestricted. The problem of being remotely invoked and being crushed.
发明内容Summary of the invention
本申请提供一种关联系统间的数据调用系统及方法,其主要目的在于解决因第一系统的大量线程无限制地远程调用第二系统的数据,导致第一系统大量线程被占用、第二系统被大量线程无限制地远程调用,而造成第一系统 及第二系统被压垮的技术问题。The present application provides a data invoking system and method between related systems, the main purpose of which is to solve the problem that a large number of threads of the first system are remotely called due to a large number of threads of the first system, resulting in a large number of threads being occupied by the first system, and the second system. A technical problem caused by a large number of threads remotely calling without restriction, causing the first system and the second system to be compressed.
为实现上述目的,本申请提供一种关联系统间的数据调用方法,该方法包括以下步骤:To achieve the above objective, the present application provides a method for invoking data between associated systems, the method comprising the following steps:
根据第一系统配置的服务器数量创建多个线程;Create multiple threads according to the number of servers configured in the first system;
当第一系统收到客户端发送的大量访问请求时,将收到的所述访问请求分配给所述多个线程;及When the first system receives a large number of access requests sent by the client, the received access request is allocated to the plurality of threads; and
调用所述多个线程执行分配得到的访问请求,通过网络访问第二系统,将从第二系统获取的数据反馈给所述第一系统,由第一系统反馈给客户端。优选地,所述根据第一系统配置的服务器数量创建多个线程的步骤包括:Invoking the plurality of threads to execute the allocated access request, accessing the second system through the network, and feeding back the data acquired from the second system to the first system, and the first system feeds back to the client. Preferably, the step of creating a plurality of threads according to the number of servers configured by the first system comprises:
确定第一系统所配置的服务器数量;及Determining the number of servers configured in the first system; and
根据所述第一系统所配置的服务器数量创建相应的多个线程。A corresponding plurality of threads are created according to the number of servers configured by the first system.
另外,为实现上述目的,本申请还提供一种服务器,所述服务器包括存储设备、处理器、显示器及存储在所述存储设备上并可在所述处理器上运行的关联系统间的数据调用系统,所述处理器执行所述关联系统间的数据调用系统时,可实现如下步骤:In addition, to achieve the above object, the present application further provides a server, the server including a storage device, a processor, a display, and a data call between the associated systems stored on the storage device and operable on the processor The system, when the processor executes the data invoking system between the associated systems, the following steps may be implemented:
根据第一系统配置的服务器数量创建多个线程;Create multiple threads according to the number of servers configured in the first system;
当第一系统收到客户端发送的大量访问请求时,将收到的所述访问请求分配给所述多个线程;及When the first system receives a large number of access requests sent by the client, the received access request is allocated to the plurality of threads; and
调用所述多个线程执行分配得到的访问请求,通过网络访问第二系统,将从第二系统获取的数据反馈给所述第一系统,由第一系统反馈给客户端。Invoking the plurality of threads to execute the allocated access request, accessing the second system through the network, and feeding back the data acquired from the second system to the first system, and the first system feeds back to the client.
此外,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质存储有关联系统间的数据调用系统,所述关联系统间的数据调用系统被至少一个处理器执行时,可实现如下步骤:In addition, the present application further provides a computer readable storage medium storing a data invoking system between associated systems, where the data invoking system between the interrelated systems is executed by at least one processor The following steps:
根据第一系统配置的服务器数量创建多个线程;Create multiple threads according to the number of servers configured in the first system;
当第一系统收到客户端发送的大量访问请求时,将收到的所述访问请求分配给所述多个线程;及When the first system receives a large number of access requests sent by the client, the received access request is allocated to the plurality of threads; and
调用所述多个线程执行分配得到的访问请求,通过网络访问第二系统,将从第二系统获取的数据反馈给所述第一系统,由第一系统反馈给客户端。Invoking the plurality of threads to execute the allocated access request, accessing the second system through the network, and feeding back the data acquired from the second system to the first system, and the first system feeds back to the client.
相较现有技术,本申请提供的关联系统间的数据调用系统及方法,通过在第一系统与第二系统之间设置一数据调用系统,利用该关联系统间的数据 调用系统,可以对同时发生的访问请求起到限流的作用,解决现有技术中第一系统收到大批量访问请求时,调用大量线程无限制地远程调用第二系统的数据,使第一系统大量线程被占用、第二系统被大量线程无限制远程调用,从而造成第一系统及第二系统不堪重负的问题。Compared with the prior art, the data calling system and method between the associated systems provided by the present application can simultaneously set a data calling system between the first system and the second system, and utilize the data calling system between the related systems. The access request occurs to limit the flow. When the first system receives the large-volume access request, the first system calls a large number of threads to remotely call the data of the second system in an unlimited manner, so that a large number of threads of the first system are occupied. The second system is remotely called by a large number of threads without restriction, thereby causing the first system and the second system to be overwhelmed.
附图说明DRAWINGS
图1为本申请关联系统间的数据调用系统较佳实施例的应用环境图。1 is an application environment diagram of a preferred embodiment of a data invoking system between associated systems of the present application.
图2为本申请关联系统间的数据调用系统较佳实施例的程序模块图。2 is a block diagram of a program of a preferred embodiment of a data invoking system between associated systems of the present application.
图3为本申请关联系统间的数据调用系统较佳实施例的硬件架构图。3 is a hardware architecture diagram of a preferred embodiment of a data invocation system between associated systems of the present application.
图4为本申请关联系统间的数据调用方法较佳实施例的流程图。4 is a flow chart of a preferred embodiment of a method for invoking data between associated systems of the present application.
图5为本申请关联系统间的数据调用方法较佳实施例中步骤S10的细化流程图。FIG. 5 is a detailed flowchart of step S10 in the preferred embodiment of the data invoking method between the associated systems of the present application.
图6为本申请关联系统间的数据调用方法较佳实施例中步骤S20的细化流程图。FIG. 6 is a detailed flowchart of step S20 in the preferred embodiment of the data invoking method between the associated systems of the present application.
附图标记:Reference mark:
1、41, 4 服务器 server
22 网络The internet
33 客户端 Client
11、2111, 21 存储设备Storage device
1212 处理器processor
1313 显示器monitor
1010 关联系统间的数据调用系统Data calling system between associated systems
110110 线程创建模块Thread creation module
120120 请求分配模块Request allocation module
130130 请求执行模块Request execution module
121121 运算模块Arithmetic module
122122 任务分配模块Task allocation module
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features and advantages of the present application will be further described with reference to the accompanying drawings.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
如图1所示,是本申请关联系统间的数据调用系统10较佳实施例的应用环境图。As shown in FIG. 1, it is an application environment diagram of a preferred embodiment of the data invoking system 10 between the related systems of the present application.
在本实施例中,所述关联系统间的数据调用系统10架设于两个或两个以上关联系统之间,如:第一系统A与第二系统B。所述第一系统A及所述第二系统B均配置有一台或多台服务器1,该第一系统A及该第二系统B之间可以进行数据交互。所述数据调用系统应用于该第一系统A配置的一台或多台服务器1,所述一台或多台服务器1通过网络2连接一个或多个客户端3。In this embodiment, the data invoking system 10 between the associated systems is installed between two or more associated systems, such as the first system A and the second system B. The first system A and the second system B are each configured with one or more servers 1. Data interaction between the first system A and the second system B is possible. The data invoking system is applied to one or more servers 1 configured by the first system A, and the one or more servers 1 are connected to one or more clients 3 via the network 2.
在本实施例中,所述第一系统A可以是业务系统,如某金融服务机构的业务系统,所述第二系统B可以是工作流系统,如管理该金融服务机构各个工作流程节点的系统。在其他实施例中,所述第一系统A也可以是其他机构的业务系统。In this embodiment, the first system A may be a service system, such as a business system of a financial service organization, and the second system B may be a workflow system, such as a system for managing various workflow nodes of the financial service organization. . In other embodiments, the first system A may also be a business system of other organizations.
所述第一系统A配置的所述一台或多台服务器1连接存储设备11。该存储设备11存储了该金融服务机构所有客户的资料,例如客户身份信息、账号信息及保险购买信息等资料。所述一台或多台服务器1连接的存储设备11可以是本地的存储设备,也可以是通过网络2连接的存储设备。The one or more servers 1 configured by the first system A are connected to the storage device 11. The storage device 11 stores information of all customers of the financial service institution, such as customer identity information, account information, and insurance purchase information. The storage device 11 to which the one or more servers 1 are connected may be a local storage device or a storage device connected through the network 2.
所述第二系统B配置的所述一台或多台服务器4连接存储设备21。该存储设备21存储了该金融服务机构所有保单流程节点状况等数据。所述一台或多台服务器2连接的存储设备21可以是本地的存储设备,也可以是通过网络2连接的存储设备。The one or more servers 4 configured by the second system B are connected to the storage device 21. The storage device 21 stores data such as the status of all policy flow nodes of the financial service institution. The storage device 21 connected to the one or more servers 2 may be a local storage device or a storage device connected through the network 2.
其中,所述关联系统间的数据调用系统10可以配置于所述第一系统A所配置的一台或多台服务器1提供的存储空间。该存储空间可以位于第一系统A的一台或多台服务器1中的某一台服务器1,也可以是由第一系统A的一台 或多台服务器1中不同服务器1的存储空间碎片组成的一个存储空间。The data invoking system 10 between the associated systems may be configured in a storage space provided by one or more servers 1 configured by the first system A. The storage space may be located in one of the one or more servers 1 of the first system A, or may be composed of storage space fragments of different servers 1 of one or more servers 1 of the first system A. a storage space.
优选地,所述关联系统间的数据调用系统10还可以配置于单一的服务器1。Preferably, the data invoking system 10 between the associated systems can also be configured on a single server 1.
网络2可以为局域网(Local Area Network,LAN)、广域网(Wide Area Network,WAN)和城域网(Metropolitan Area Network,MAN)等等类型的网络,可以为有线网络(Wired network),光纤网络(Optical Fiber Network),也可以为无线网络(wireless network)。The network 2 can be a local area network (LAN), a wide area network (WAN), and a metropolitan area network (MAN), and can be a wired network or a fiber network. Optical Fiber Network) can also be a wireless network.
客户端3可以为桌上型计算机、笔记本、平板电脑、智能手机、电子书阅读器、MP3(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)播放器、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、便携计算机等可以通过网络2与服务器1进行通信的终端设备。 Client 3 can be a desktop computer, a notebook, a tablet, a smart phone, an e-book reader, a MP3 (Moving Picture Experts Group Audio Layer III) player, MP4 (Moving Picture Experts) Group Audio Layer IV, dynamic video expert compresses standard audio layer 4) A terminal device that can communicate with server 1 via network 2, such as a player or a portable computer.
如图2所示,是本申请关联系统间的数据调用系统10较佳实施例的程序模块图。As shown in FIG. 2, it is a program module diagram of a preferred embodiment of the data invoking system 10 between the associated systems of the present application.
在本实施例中,所述关联系统为第一系统A与第二系统B,关联系统间的数据调用系统10架设在所述第一系统A及所述第二系统B之间,所述第一系统A为业务系统,所述第二系统B为工作流系统。所述关联系统间的数据调用系统10包括:线程创建模块110、请求分配模块120及请求执行模块130。In this embodiment, the associated system is a first system A and a second system B, and a data invoking system 10 between the associated systems is disposed between the first system A and the second system B, where the One system A is a business system, and the second system B is a workflow system. The data invoking system 10 between the associated systems includes a thread creation module 110, a request allocation module 120, and a request execution module 130.
线程创建模块110,用于根据第一系统A配置的服务器1数量创建多个线程。所述线程创建模块110则依据所述第一系统A配置的服务器1数量,创建相应的多个线程,该多个线程的数量为所述第一系统A配置的服务器1数量的整数倍。例如,若业务系统配置的服务器1数量为5台,那么,线程创建模块110创建多个线程,可以是5个、10个、15个等。The thread creation module 110 is configured to create a plurality of threads according to the number of servers 1 configured by the first system A. The thread creation module 110 creates a corresponding plurality of threads according to the number of servers 1 configured by the first system A, and the number of the multiple threads is an integer multiple of the number of servers 1 configured by the first system A. For example, if the number of servers 1 configured by the business system is five, the thread creation module 110 creates a plurality of threads, which may be five, ten, fifteen, and the like.
具体地,所述线程创建模块110还用于确定所述第一系统A配置的服务器1数量。以业务系统为例,在业务系统创建过程中,对于该业务系统所配置的服务器1数量,工程师会考虑到该业务系统未来可能要面对的最大并发数量,并以此来配置服务器1数量。若该业务系统未来的并发数量较大,那么相应的该业务系统配置的服务器1数量会相应增加。当然,服务器1数量并不会因并发数量增大而无限增加。故所述线程创建模块110可从所述业务系统的配置文件中查询该业务系统配置的服务器1数量,或者从该业务系统 的相关记录中查询该业务系统配置的服务器1数量。Specifically, the thread creation module 110 is further configured to determine the number of servers 1 configured by the first system A. Taking the service system as an example, in the process of creating a service system, for the number of servers 1 configured in the service system, the engineer will consider the maximum number of concurrent transactions that the service system may face in the future, and configure the number of servers 1 accordingly. If the number of concurrent concurrency of the service system is large, the number of servers 1 configured by the corresponding service system will increase accordingly. Of course, the number of servers 1 does not increase indefinitely due to the increase in the number of concurrent. Therefore, the thread creation module 110 may query the number of servers 1 configured by the service system from the configuration file of the service system, or query the number of servers 1 configured by the service system from related records of the service system.
请求分配模块120,用于当第一系统A收到客户端3发送的大量访问请求时,将收到的所述访问请求分配给所述多个线程。以业务系统为例,业务系统配置的服务器1数量为5台、所述线程创建模块110创建10个线程,将该10个线程依次进行编号:0号线程、1号线程、2号线程、…、9号线程,当业务系统收到来自客户端3的大量访问请求时,所述请求分配模块120将大量访问请求尽可能均匀地分配给该10个线程。The request allocation module 120 is configured to allocate the received access request to the plurality of threads when the first system A receives a large number of access requests sent by the client 3. Taking the business system as an example, the number of servers 1 configured by the business system is 5, and the thread creation module 110 creates 10 threads, and the 10 threads are sequentially numbered: 0 thread, thread 1 thread, thread 2, ... Thread No. 9, when the service system receives a large number of access requests from the client 3, the request allocation module 120 allocates a large number of access requests to the 10 threads as evenly as possible.
进一步地,所述请求分配模块120包括:运算模块121及任务分配模块122。Further, the request allocation module 120 includes an operation module 121 and a task assignment module 122.
运算模块121,用于将所述第一系统A收到的访问请求数量与所述多个线程的数量执行求余(MOD)运算。例如,当所述业务系统收到来自客户端3的25条访问请求时,所述运算模块121将收到的访问请求数量25与线程数量10进行求余运算,25与10的求余结果为5。The operation module 121 is configured to perform a remainder (MOD) operation on the number of access requests received by the first system A and the number of the plurality of threads. For example, when the service system receives 25 access requests from the client 3, the operation module 121 performs a remainder operation on the number of access requests 25 received and the number of threads 10, and the result of the remainder of 25 and 10 is 5.
任务分配模块122,用于根据运算结果将访问请求分配给所述多个线程。若运算结果为0,那么所述任务分配模块122将该大量的访问请求平均分配给所述多个线程。若运算结果为a,且a≠0,那么,将收到的访问请求的数量减去a后,平均分配给所述多个线程,然后将剩下的a条访问请求依次分配给0号至(a-1)号线程,直至分完为止。The task assignment module 122 is configured to allocate an access request to the plurality of threads according to the operation result. If the result of the operation is 0, the task assignment module 122 distributes the plurality of access requests equally to the plurality of threads. If the operation result is a, and a ≠ 0, then after subtracting a from the number of received access requests, it is evenly distributed to the plurality of threads, and then the remaining a access requests are sequentially assigned to number 0 to Thread (a-1) until the end of the division.
例如,所述运算模块121将业务系统接收到的访问请求数量为20条,线程数量为10个,执行求余运算得到的结果为0,那么,所述任务分配模块122将20条访问请求平均分配给10个线程,每个线程平均分到2条数据请求。For example, the operation module 121 receives the number of access requests received by the service system into 20, the number of threads is 10, and the result of performing the remainder operation is 0. Then, the task assignment module 122 averages 20 access requests. Assigned to 10 threads, each thread averages 2 data requests.
若所述运算模块121将业务系统接收到的访问请求数量为25条,线程数量为10个,执行求余运算得到的结果为5,那么收到的25条访问请求减去求余的5条访问请求后有20条访问请求,所述任务分配模块122先将该20条访问请求平均分配给10个线程后,剩下的5条线程依次分给0号线程、1号线程、2号线程、3号线程及4号线程。If the operation module 121 receives 25 access requests from the service system, the number of threads is 10, and the result of performing the remainder operation is 5, then the 25 access requests received are subtracted from the remaining 5 After the access request, there are 20 access requests. The task assignment module 122 first distributes the 20 access requests to 10 threads, and the remaining 5 threads are sequentially assigned to the 0th thread, the 1st thread, and the 2nd thread. , thread 3 and thread 4.
具体地,所述任务分配模块122还根据各线程目前的访问请求处理情况对新的访问请求进行分配。例如,业务系统收到12条新的访问请求,且各线程未完成的访问请求处理情况如下,1号线程:1条;3号线程:1条;其他线程所分配到的访问请求均已完成处理。那么,业务系统接收到的新的访问 请求数量12,线程数量为10个,所述运算模块121执行求余运算得到的结果为2,那么收到的12条访问请求减去求余的2条访问请求后有10条访问请求,所述任务分配模块122先将该10条访问请求平均分配给10个线程后,因1号线程还有未处理的访问请求,故将剩下的2条线程依次分给0号线程及2号线程。Specifically, the task assignment module 122 also allocates a new access request according to the current access request processing status of each thread. For example, the business system receives 12 new access requests, and the processing requirements of the unfinished access requests of each thread are as follows: thread 1: 1; thread 3: 1; access requests assigned by other threads have been completed. deal with. Then, the number of new access requests received by the service system is 12, the number of threads is 10. The result of the operation module 121 performing the remainder operation is 2, and then the 12 access requests received are subtracted from the remaining 2 There are 10 access requests after the access request, and the task assignment module 122 first distributes the 10 access requests to 10 threads, and since the thread 1 has an unprocessed access request, the remaining 2 threads are left. It is assigned to thread 0 and thread 2 in turn.
请求执行模块130,用于调用所述多个线程执行其分配得到的访问请求,通过网络2访问第二系统B,将从第二系统B获取的数据反馈给第一系统A,由第一系统A反馈给客户端3。以寿险行业为例,寿险流程包括以下几个节点:投保-核保-承保。每个寿险业务人员均通过客户端3访问业务系统、进行相关操作,工作流系统则对寿险各流程节点进行管理。若寿险业务人员欲从业务系统上查询单号为xx的寿险订单目前的处理情况,那么,业务系统接收到这个访问请求后,所述请求执行模块130调用线程,通过网络2访问工作流系统,读取到与单号为xx的寿险订单相关的数据,并将该结果反馈至业务系统,告知客户端3的寿险业务人员该单号的寿险订单目前处于核保状态。再比如,该寿险业务人员对单号为xx的寿险订单进行了核对,确保该订单信息准确无误,可以进入下一个节点—承保节点,那么,寿险业务人员在业务系统上进行相应操作,所述请求执行模块130将该信号发送至工作流系统,使该寿险订单处理状态进入到下一个节点,然后,将该寿险订单的处理结果反馈至业务系统,告知客户端3的寿险业务人员该订单已进入承保节点。The request execution module 130 is configured to invoke the multiple threads to perform an access request obtained by the second thread, and access the second system B through the network 2, and feed back the data acquired from the second system B to the first system A, by the first system. A feedback to client 3. Taking the life insurance industry as an example, the life insurance process includes the following nodes: insurance - underwriting - underwriting. Each life insurance business personnel accesses the business system through the client 3 and performs related operations, and the workflow system manages the various process nodes of the life insurance. If the life insurance business personnel wants to query the current processing situation of the life insurance order number xx from the business system, after the business system receives the access request, the request execution module 130 calls the thread to access the workflow system through the network 2, The data related to the life insurance order with the number xx is read, and the result is fed back to the business system, and the life insurance business personnel of the client 3 are informed that the life insurance order of the single number is currently under-warranty. For another example, the life insurance business personnel check the life insurance order with the number xx to ensure that the order information is accurate and can enter the next node—the underwriting node. Then, the life insurance business personnel perform corresponding operations on the business system. The request execution module 130 sends the signal to the workflow system, causes the life insurance order processing status to enter the next node, and then feeds back the processing result of the life insurance order to the business system, informing the life insurance business personnel of the client 3 that the order has been Enter the underwriting node.
如图3所示,是本申请关联系统间的数据调用系统10较佳实施例的硬件架构图。As shown in FIG. 3, it is a hardware architecture diagram of a preferred embodiment of the data invoking system 10 between the associated systems of the present application.
在本实施例中,所述关联系统间的数据调用系统10应用于服务器1,该服务器1包括,但不仅限于,存储设备11、处理器12及显示器13。In the present embodiment, the data invoking system 10 between the associated systems is applied to the server 1, which includes, but is not limited to, the storage device 11, the processor 12, and the display 13.
存储设备11存储有关联系统间的数据调用系统10的程序代码,该存储设备11可以包括至少一种类型的存储介质,所述存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等等。The storage device 11 stores program code of the data invoking system 10 between the associated systems, and the storage device 11 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (for example, SD) Or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM) , magnetic storage, magnetic disks, optical disks, and so on.
处理器12可以是一中央处理器(Central Processing Unit,CPU),微处理器或其他数据处理芯片,用于从存储设备11中读取并运行其存储的关联系统 间的数据调用系统10的程序。The processor 12 may be a central processing unit (CPU), a microprocessor or other data processing chip, and a program for reading and running the stored data between the associated systems of the associated system from the storage device 11 .
显示器13可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。显示器13用于显示可视化的用户界面。The display 13 can be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch sensor, or the like. Display 13 is used to display a visualized user interface.
优选地,该服务器1还可以包括用户接口,用户接口可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选的,用户接口还可以包括标准的有线接口、无线接口。Preferably, the server 1 may further include a user interface, and the user interface may include a display, an input unit such as a keyboard, and optionally, the user interface may further include a standard wired interface and a wireless interface.
图3仅示出了具有组件11-13以及关联系统间的数据调用系统10的服务器1,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。Figure 3 shows only the server 1 with the components 11-13 and the data invoking system 10 between the associated systems, but it should be understood that not all of the illustrated components may be implemented, and that more or fewer implementations may be implemented instead. Component.
如图4所示,是本申请关联系统间的数据调用方法较佳实施例的流程图。As shown in FIG. 4, it is a flowchart of a preferred embodiment of a data invocation method between associated systems of the present application.
在本实施例中,所述关联系统间的数据调用方法包括:步骤S10、S20及步骤S30。In this embodiment, the data calling method between the associated systems includes: steps S10, S20, and step S30.
步骤S10,根据第一系统A配置的服务器1数量创建多个线程。在第一系统A及第二系统B之间架设一个关联系统间的数据调用系统10,所述线程创建模块110则依据所述第一系统A配置的服务器1数量,创建相应的多个线程,该多个线程的数量为所述第一系统A配置的服务器1数量的整数倍。In step S10, a plurality of threads are created according to the number of servers 1 configured by the first system A. A data invoking system 10 is set up between the first system A and the second system B. The thread creation module 110 creates a corresponding plurality of threads according to the number of servers 1 configured by the first system A. The number of the plurality of threads is an integer multiple of the number of servers 1 configured by the first system A.
具体地,如图5所示,步骤S10包括:步骤S11及步骤S12。Specifically, as shown in FIG. 5, step S10 includes steps S11 and S12.
步骤S11,确定第一系统A所配置的服务器1数量。以业务系统为例,在业务系统创建过程中,对于该业务系统所配置的服务器1数量,工程师会考虑到该业务系统未来可能要面对的最大并发数量,并以此来配置服务器1数量。若该业务系统未来的并发数量较大,那么相应的该业务系统配置的服务器1数量会相应增加。当然,服务器1数量并不会因并发数量增大而无限增加。故所述线程创建模块110可从所述业务系统的配置文件中查询该业务系统配置的服务器1数量,或者从该业务系统的相关记录中查询该业务系统配置的服务器1数量。In step S11, the number of servers 1 configured by the first system A is determined. Taking the service system as an example, in the process of creating a service system, for the number of servers 1 configured in the service system, the engineer will consider the maximum number of concurrent transactions that the service system may face in the future, and configure the number of servers 1 accordingly. If the number of concurrent concurrency of the service system is large, the number of servers 1 configured by the corresponding service system will increase accordingly. Of course, the number of servers 1 does not increase indefinitely due to the increase in the number of concurrent. Therefore, the thread creation module 110 may query the number of servers 1 configured by the service system from the configuration file of the service system, or query the number of servers 1 configured by the service system from related records of the service system.
步骤S12,根据所述第一系统A所配置的服务器1数量创建相应的多个线程。该多个线程的数量为所述第一系统A配置的服务器1数量的整数倍。例如,若第一系统A配置的服务器1数量为5台,那么,线程创建模块110创建多个线程,可以是5个、10个、15个等。Step S12: Create a corresponding plurality of threads according to the number of servers 1 configured by the first system A. The number of the plurality of threads is an integer multiple of the number of servers 1 configured by the first system A. For example, if the number of servers 1 configured by the first system A is five, the thread creation module 110 creates a plurality of threads, which may be five, ten, fifteen, and the like.
步骤S20,当第一系统A收到客户端3发出的大量访问请求时,将收到的所述访问请求分配给所述多个线程。以业务系统为例,业务系统配置的服务器1数量为5台、所述线程创建模块110创建10个线程,将该10个线程依次进行编号:0号线程、1号线程、2号线程、…、9号线程,当业务系统收到来自客户端3的大量访问请求时,所述请求分配模块120将大量访问请求尽可能均匀地分配给该10个线程。Step S20: When the first system A receives a large number of access requests from the client 3, the access request is received to the plurality of threads. Taking the business system as an example, the number of servers 1 configured by the business system is 5, and the thread creation module 110 creates 10 threads, and the 10 threads are sequentially numbered: 0 thread, thread 1 thread, thread 2, ... Thread No. 9, when the service system receives a large number of access requests from the client 3, the request allocation module 120 allocates a large number of access requests to the 10 threads as evenly as possible.
进一步地,如图6所示,步骤S20包括:步骤S21及步骤S22。Further, as shown in FIG. 6, step S20 includes steps S21 and S22.
步骤S21,所述运算模块121将所述第一系统A收到的客户端3发出的访问请求数量与所述多个线程的数量执行求余(MOD)运算。例如,当所述业务系统收到来自客户端3的25条访问请求时,所述运算模块121将收到的访问请求数量25与线程数量10进行求余运算,25与10的求余结果为5。In step S21, the operation module 121 performs a remainder (MOD) operation on the number of access requests issued by the client 3 received by the first system A and the number of the plurality of threads. For example, when the service system receives 25 access requests from the client 3, the operation module 121 performs a remainder operation on the number of access requests 25 received and the number of threads 10, and the result of the remainder of 25 and 10 is 5.
步骤S22,所述任务分配模块122根据运算结果将访问请求分配给所述多个线程。若运算结果为0,那么所述任务分配模块122将该大量的访问请求平均分配给所述多个线程。若运算结果为a,且a≠0,那么,将收到的访问请求的数量减去a后,平均分配给所述多个线程,然后将剩下的a条访问请求依次分配给0号至(a-1)号线程,直至分完为止。In step S22, the task assignment module 122 allocates an access request to the plurality of threads according to the operation result. If the result of the operation is 0, the task assignment module 122 distributes the plurality of access requests equally to the plurality of threads. If the operation result is a, and a ≠ 0, then after subtracting a from the number of received access requests, it is evenly distributed to the plurality of threads, and then the remaining a access requests are sequentially assigned to number 0 to Thread (a-1) until the end of the division.
例如,所述运算模块121将业务系统接收到的访问请求数量为20条,线程数量为10个,执行求余运算得到的结果为0,那么,所述任务分配模块122将20条访问请求平均分配给10个线程,每个线程平均分到2条数据请求。For example, the operation module 121 receives the number of access requests received by the service system into 20, the number of threads is 10, and the result of performing the remainder operation is 0. Then, the task assignment module 122 averages 20 access requests. Assigned to 10 threads, each thread averages 2 data requests.
再例如,若所述运算模块121将第一系统A接收到的访问请求数量为25条,线程数量为10个,执行求余运算得到的结果为5,那么收到的25条访问请求减去求余的5条访问请求后有20条访问请求,所述任务分配模块122先将该20条访问请求平均分配给10个线程后,剩下的5条线程依次分给0号线程、1号线程、2号线程、3号线程及4号线程。For another example, if the operation module 121 receives the number of access requests received by the first system A into 25, the number of threads is 10, and the result of performing the remainder operation is 5, then the 25 access requests received are subtracted. There are 20 access requests after the remaining 5 access requests, and the task assignment module 122 first distributes the 20 access requests to 10 threads, and the remaining 5 threads are sequentially assigned to the 0th thread and the 1st. Thread, thread 2, thread 3, and thread 4.
具体地,步骤S22还根据各线程目前的访问请求处理情况对新的访问请求进行分配。例如,业务系统收到12条新的访问请求,且各线程未完成的访问请求处理情况如下,1号线程:1条;3号线程:1条;其他线程所分配到的访问请求均已完成处理。那么,业务系统接收到的新的访问请求数量为12条,线程数量为10个,所述运算模块121执行求余运算得到的结果为2,那么收到的12条访问请求减去求余的2条访问请求后有10条访问请求,所述 任务分配模块122先将该10条访问请求平均分配给10个线程后,因1号线程还有未处理的访问请求,故将剩下的2条线程依次分给0号线程及2号线程。Specifically, step S22 also allocates a new access request according to the current access request processing status of each thread. For example, the business system receives 12 new access requests, and the processing requirements of the unfinished access requests of each thread are as follows: thread 1: 1; thread 3: 1; access requests assigned by other threads have been completed. deal with. Then, the number of new access requests received by the service system is 12, the number of threads is 10. The result of the operation module 121 performing the remainder operation is 2, and then the 12 access requests received are subtracted from the remainder. After two access requests, there are 10 access requests. The task assignment module 122 first distributes the 10 access requests to 10 threads, and since the thread 1 has an unprocessed access request, the remaining 2 will be left. The threads are assigned to the 0th thread and the 2nd thread in turn.
步骤S30,所述请求执行模块130调用所述多个线程执行分配得到的访问请求,通过网络2访问第二系统B,将从第二系统B获取的数据反馈给所述第一系统A,由第一系统A反馈给客户端3。以寿险行业为例,寿险流程包括以下几个节点:投保-核保-承保。每个寿险业务人员均通过客户端3访问业务系统、进行相关操作,工作流系统则对寿险各流程节点进行管理。若寿险业务人员欲从业务系统上查询单号为xx的寿险订单目前的处理情况,那么,业务系统接收到这个访问请求后,所述请求执行模块130调用线程,通过网络2访问工作流系统,读取到与单号为xx的寿险订单相关的数据,并将该结果反馈至业务系统,告知客户端3的寿险业务人员该单号的寿险订单目前处于核保状态。再比如,该寿险业务人员对单号为xx的寿险订单进行了核对,确保该订单信息准确无误,可以进入下一个节点—承保节点,那么,寿险业务人员在业务系统上进行相应操作,所述请求执行模块130将该信号发送至工作流系统,使该寿险订单处理状态进入到下一个节点,然后,将该寿险订单的处理结果反馈至业务系统,告知客户端3的寿险业务人员该订单已进入承保节点。In step S30, the request execution module 130 calls the multiple threads to perform the allocated access request, accesses the second system B through the network 2, and feeds back the data acquired from the second system B to the first system A. The first system A feeds back to the client 3. Taking the life insurance industry as an example, the life insurance process includes the following nodes: insurance - underwriting - underwriting. Each life insurance business personnel accesses the business system through the client 3 and performs related operations, and the workflow system manages the various process nodes of the life insurance. If the life insurance business personnel wants to query the current processing situation of the life insurance order number xx from the business system, after the business system receives the access request, the request execution module 130 calls the thread to access the workflow system through the network 2, The data related to the life insurance order with the number xx is read, and the result is fed back to the business system, and the life insurance business personnel of the client 3 are informed that the life insurance order of the single number is currently under-warranty. For another example, the life insurance business personnel check the life insurance order with the number xx to ensure that the order information is accurate and can enter the next node—the underwriting node. Then, the life insurance business personnel perform corresponding operations on the business system. The request execution module 130 sends the signal to the workflow system, causes the life insurance order processing status to enter the next node, and then feeds back the processing result of the life insurance order to the business system, informing the life insurance business personnel of the client 3 that the order has been Enter the underwriting node.
此外,本申请还包括一种计算机可读存储介质,该计算机可读存储介质存储有关联系统间的数据调用系统10。Moreover, the application further includes a computer readable storage medium storing a data invoking system 10 between associated systems.
在本实施例中,该关联系统间的数据调用系统10被至少一个处理器12执行,以实现:步骤S10、S20及步骤S30。In this embodiment, the data invoking system 10 between the associated systems is executed by at least one processor 12 to implement steps S10, S20, and S30.
步骤S10,根据第一系统A配置的服务器1数量创建多个线程。在第一系统A及第二系统B之间架设一个关联系统间的数据调用系统10,所述线程创建模块110则依据所述第一系统A配置的服务器1数量,创建相应的多个线程,该多个线程的数量为所述第一系统A配置的服务器1数量的整数倍。In step S10, a plurality of threads are created according to the number of servers 1 configured by the first system A. A data invoking system 10 is set up between the first system A and the second system B. The thread creation module 110 creates a corresponding plurality of threads according to the number of servers 1 configured by the first system A. The number of the plurality of threads is an integer multiple of the number of servers 1 configured by the first system A.
具体地,步骤S10包括:步骤S11及步骤S12。Specifically, step S10 includes: step S11 and step S12.
步骤S11,确定第一系统A所配置的服务器1数量。以业务系统为例,在业务系统创建过程中,对于该业务系统所配置的服务器1数量,工程师会考虑到该业务系统未来可能要面对的最大并发数量,并以此来配置服务器1 数量。若该业务系统未来的并发数量较大,那么相应的该业务系统配置的服务器1数量会相应增加。当然,服务器1数量并不会因并发数量增大而无限增加。故所述线程创建模块110可从所述业务系统的配置文件中查询该业务系统配置的服务器1数量,或者从该业务系统的相关记录中查询该业务系统配置的服务器1数量。In step S11, the number of servers 1 configured by the first system A is determined. Taking the service system as an example, in the process of creating a service system, for the number of servers 1 configured in the service system, the engineer will consider the maximum number of concurrent operations that the service system may face in the future, and configure the number of servers 1 in this way. If the number of concurrent concurrency of the service system is large, the number of servers 1 configured by the corresponding service system will increase accordingly. Of course, the number of servers 1 does not increase indefinitely due to the increase in the number of concurrent. Therefore, the thread creation module 110 may query the number of servers 1 configured by the service system from the configuration file of the service system, or query the number of servers 1 configured by the service system from related records of the service system.
步骤S12,根据所述第一系统A所配置的服务器1数量创建相应的多个线程。该多个线程的数量为所述第一系统A配置的服务器1数量的整数倍。例如,若第一系统A配置的服务器1数量为5台,那么,线程创建模块110创建多个线程,可以是5个、10个、15个等。Step S12: Create a corresponding plurality of threads according to the number of servers 1 configured by the first system A. The number of the plurality of threads is an integer multiple of the number of servers 1 configured by the first system A. For example, if the number of servers 1 configured by the first system A is five, the thread creation module 110 creates a plurality of threads, which may be five, ten, fifteen, and the like.
步骤S20,当第一系统A收到客户端3发出的大量访问请求时,将收到的所述访问请求分配给所述多个线程。以业务系统为例,业务系统配置的服务器1数量为5台、所述线程创建模块110创建10个线程,将该10个线程依次进行编号:0号线程、1号线程、2号线程、…、9号线程,当业务系统收到来自客户端3的大量访问请求时,所述请求分配模块120将大量访问请求尽可能均匀地分配给该10个线程。Step S20: When the first system A receives a large number of access requests from the client 3, the access request is received to the plurality of threads. Taking the business system as an example, the number of servers 1 configured by the business system is 5, and the thread creation module 110 creates 10 threads, and the 10 threads are sequentially numbered: 0 thread, thread 1 thread, thread 2, ... Thread No. 9, when the service system receives a large number of access requests from the client 3, the request allocation module 120 allocates a large number of access requests to the 10 threads as evenly as possible.
进一步地,步骤S20包括:步骤S21及步骤S22。Further, step S20 includes: step S21 and step S22.
步骤S21,所述运算模块121将所述第一系统A收到的客户端3发出的访问请求数量与所述多个线程的数量执行求余(MOD)运算。例如,当所述业务系统收到来自客户端3的25条访问请求时,所述运算模块121将收到的访问请求数量25与线程数量10进行求余运算,25与10的求余结果为5。In step S21, the operation module 121 performs a remainder (MOD) operation on the number of access requests issued by the client 3 received by the first system A and the number of the plurality of threads. For example, when the service system receives 25 access requests from the client 3, the operation module 121 performs a remainder operation on the number of access requests 25 received and the number of threads 10, and the result of the remainder of 25 and 10 is 5.
步骤S22,所述任务分配模块122根据运算结果将访问请求分配给所述多个线程。若运算结果为0,那么所述任务分配模块122将该大量的访问请求平均分配给所述多个线程。若运算结果为a,且a≠0,那么,将收到的访问请求的数量减去a后,平均分配给所述多个线程,然后将剩下的a条访问请求依次分配给0号至(a-1)号线程,直至分完为止。In step S22, the task assignment module 122 allocates an access request to the plurality of threads according to the operation result. If the result of the operation is 0, the task assignment module 122 distributes the plurality of access requests equally to the plurality of threads. If the operation result is a, and a ≠ 0, then after subtracting a from the number of received access requests, it is evenly distributed to the plurality of threads, and then the remaining a access requests are sequentially assigned to number 0 to Thread (a-1) until the end of the division.
例如,所述运算模块121将业务系统接收到的访问请求数量为20条,线程数量为10个,执行求余运算得到的结果为0,那么,所述任务分配模块122将20条访问请求平均分配给10个线程,每个线程平均分到2条数据请求。For example, the operation module 121 receives the number of access requests received by the service system into 20, the number of threads is 10, and the result of performing the remainder operation is 0. Then, the task assignment module 122 averages 20 access requests. Assigned to 10 threads, each thread averages 2 data requests.
再例如,若所述运算模块121将第一系统A接收到的访问请求数量为25条,线程数量为10个,执行求余运算得到的结果为5,那么收到的25条访问 请求减去求余的5条访问请求后有20条访问请求,所述任务分配模块122先将该20条访问请求平均分配给10个线程后,剩下的5条线程依次分给0号线程、1号线程、2号线程、3号线程及4号线程。For another example, if the operation module 121 receives the number of access requests received by the first system A into 25, the number of threads is 10, and the result of performing the remainder operation is 5, then the 25 access requests received are subtracted. There are 20 access requests after the remaining 5 access requests, and the task assignment module 122 first distributes the 20 access requests to 10 threads, and the remaining 5 threads are sequentially assigned to the 0th thread and the 1st. Thread, thread 2, thread 3, and thread 4.
具体地,步骤S22还根据各线程目前的访问请求处理情况对新的访问请求进行分配。例如,业务系统收到12条新的访问请求,且各线程未完成的访问请求处理情况如下,1号线程:1条;3号线程:1条;其他线程所分配到的访问请求均已完成处理。那么,业务系统接收到的新的访问请求数量为12条,线程数量为10个,所述运算模块121执行求余运算得到的结果为2,那么收到的12条访问请求减去求余的2条访问请求后有10条访问请求,所述任务分配模块122先将该10条访问请求平均分配给10个线程后,因1号线程还有未处理的访问请求,故将剩下的2条线程依次分给0号线程及2号线程。Specifically, step S22 also allocates a new access request according to the current access request processing status of each thread. For example, the business system receives 12 new access requests, and the processing requirements of the unfinished access requests of each thread are as follows: thread 1: 1; thread 3: 1; access requests assigned by other threads have been completed. deal with. Then, the number of new access requests received by the service system is 12, the number of threads is 10. The result of the operation module 121 performing the remainder operation is 2, and then the 12 access requests received are subtracted from the remainder. After two access requests, there are 10 access requests. The task assignment module 122 first distributes the 10 access requests to 10 threads, and since the thread 1 has an unprocessed access request, the remaining 2 will be left. The threads are assigned to the 0th thread and the 2nd thread in turn.
步骤S30,所述请求执行模块130调用所述多个线程执行分配得到的访问请求,通过网络2访问第二系统B,将从第二系统B获取的数据反馈给所述第一系统A,由第一系统A反馈给客户端3。以寿险行业为例,寿险流程包括以下几个节点:投保-核保-承保。每个寿险业务人员均通过客户端3访问业务系统、进行相关操作,工作流系统则对寿险各流程节点进行管理。若寿险业务人员欲从业务系统上查询单号为xx的寿险订单目前的处理情况,那么,业务系统接收到这个访问请求后,所述请求执行模块130调用线程,通过网络2访问工作流系统,读取到与单号为xx的寿险订单相关的数据,并将该结果反馈至业务系统,告知客户端3的寿险业务人员该单号的寿险订单目前处于核保状态。再比如,该寿险业务人员对单号为xx的寿险订单进行了核对,确保该订单信息准确无误,可以进入下一个节点—承保节点,那么,寿险业务人员在业务系统上进行相应操作,所述请求执行模块130将该信号发送至工作流系统,使该寿险订单处理状态进入到下一个节点,然后,将该寿险订单的处理结果反馈至业务系统,告知客户端3的寿险业务人员该订单已进入承保节点。In step S30, the request execution module 130 calls the multiple threads to perform the allocated access request, accesses the second system B through the network 2, and feeds back the data acquired from the second system B to the first system A. The first system A feeds back to the client 3. Taking the life insurance industry as an example, the life insurance process includes the following nodes: insurance - underwriting - underwriting. Each life insurance business personnel accesses the business system through the client 3 and performs related operations, and the workflow system manages the various process nodes of the life insurance. If the life insurance business personnel wants to query the current processing situation of the life insurance order number xx from the business system, after the business system receives the access request, the request execution module 130 calls the thread to access the workflow system through the network 2, The data related to the life insurance order with the number xx is read, and the result is fed back to the business system, and the life insurance business personnel of the client 3 are informed that the life insurance order of the single number is currently under-warranty. For another example, the life insurance business personnel check the life insurance order with the number xx to ensure that the order information is accurate and can enter the next node—the underwriting node. Then, the life insurance business personnel perform corresponding operations on the business system. The request execution module 130 sends the signal to the workflow system, causes the life insurance order processing status to enter the next node, and then feeds back the processing result of the life insurance order to the business system, informing the life insurance business personnel of the client 3 that the order has been Enter the underwriting node.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装 置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes those elements. It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, article, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
本实施方式中提到的“一个实施例”、“另一个实施例”可以为相同的实施例,也可以为不同的实施例。The "one embodiment" and "another embodiment" mentioned in the embodiment may be the same embodiment or different embodiments.
最后所应说明的是,以上实施例仅用以说明本申请的技术方案而非限制,尽管参照较佳实施例对本申请进行了详细说明,本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或等同替换,而不脱离本申请技术方案的精神和范围。It should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to be limiting, although the present application is described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technology of the present application can be applied. Modifications or equivalents are made without departing from the spirit and scope of the technical solutions of the present application.

Claims (20)

  1. 一种关联系统间的数据调用方法,其特征在于,所述方法包括:A method for invoking data between associated systems, the method comprising:
    根据第一系统配置的服务器数量创建多个线程;Create multiple threads according to the number of servers configured in the first system;
    当第一系统收到客户端发送的大量访问请求时,将收到的所述访问请求分配给所述多个线程;及When the first system receives a large number of access requests sent by the client, the received access request is allocated to the plurality of threads; and
    调用所述多个线程执行分配得到的访问请求,通过网络访问第二系统,将从第二系统获取的数据反馈给所述第一系统,由第一系统反馈给客户端。Invoking the plurality of threads to execute the allocated access request, accessing the second system through the network, and feeding back the data acquired from the second system to the first system, and the first system feeds back to the client.
  2. 如权利要求1所述的关联系统间的数据调用方法,其特征在于,所述根据第一系统配置的服务器数量创建多个线程的步骤包括:The method for invoking data between the associated systems according to claim 1, wherein the step of creating a plurality of threads according to the number of servers configured by the first system comprises:
    确定第一系统所配置的服务器数量;及Determining the number of servers configured in the first system; and
    根据所述第一系统所配置的服务器数量创建相应的多个线程。A corresponding plurality of threads are created according to the number of servers configured by the first system.
  3. 如权利要求1所述的关联系统间的数据调用方法,其特征在于,所述当第一系统收到客户端发送的大量访问请求时,将收到的所述访问请求分配给所述多个线程的步骤包括:The method for invoking data between the associated systems according to claim 1, wherein when the first system receives a large number of access requests sent by the client, the received access request is allocated to the plurality of The steps of the thread include:
    将所述第一系统收到的客户端发送的访问请求数量与所述多个线程的数量执行求余运算;Performing a remainder operation on the number of access requests sent by the client received by the first system and the number of the plurality of threads;
    根据运算结果将访问请求分配给所述多个线程。An access request is allocated to the plurality of threads according to the result of the operation.
  4. 如权利要求2所述的关联系统间的数据调用方法,其特征在于,所述当第一系统收到客户端发送的大量访问请求时,将收到的所述访问请求分配给所述多个线程的步骤包括:The method for invoking data between the associated systems according to claim 2, wherein when the first system receives a large number of access requests sent by the client, the received access request is allocated to the plurality of The steps of the thread include:
    将所述第一系统收到的客户端发送的访问请求数量与所述多个线程的数量执行求余运算;Performing a remainder operation on the number of access requests sent by the client received by the first system and the number of the plurality of threads;
    根据运算结果将访问请求分配给所述多个线程。An access request is allocated to the plurality of threads according to the result of the operation.
  5. 如权利要求1所述的关联系统间的数据调用方法,其特征在于,所述多个线程的数量为所述第一系统配置的服务器数量的整数倍。The method for invoking data between associated systems according to claim 1, wherein the number of the plurality of threads is an integer multiple of the number of servers configured by the first system.
  6. 如权利要求2所述的关联系统间的数据调用方法,其特征在于,所述多个线程的数量为所述第一系统配置的服务器数量的整数倍。The method for invoking data between associated systems according to claim 2, wherein the number of the plurality of threads is an integer multiple of the number of servers configured by the first system.
  7. 如权利要求3或4所述的关联系统间的数据调用方法,其特征在于,所述多个线程的数量为所述第一系统配置的服务器数量的整数倍。The method for invoking data between associated systems according to claim 3 or 4, wherein the number of the plurality of threads is an integer multiple of the number of servers configured by the first system.
  8. 一种服务器,所述服务器包括:存储设备、处理器、显示器及存储在所述存储设备上并可在所述处理器上运行的关联系统间的数据调用系统,所述处理器执行所述关联系统间的数据调用系统时,可实现如下步骤:A server comprising: a storage device, a processor, a display, and a data invoking system stored between the associated systems on the storage device and operative on the processor, the processor executing the association When the data between the systems calls the system, the following steps can be implemented:
    根据第一系统配置的服务器数量创建多个线程;Create multiple threads according to the number of servers configured in the first system;
    当第一系统收到客户端发送的大量访问请求时,将收到的所述访问请求分配给所述多个线程;及When the first system receives a large number of access requests sent by the client, the received access request is allocated to the plurality of threads; and
    调用所述多个线程执行分配得到的访问请求,通过网络访问第二系统,将从第二系统获取的数据反馈给所述第一系统,由第一系统反馈给客户端。Invoking the plurality of threads to execute the allocated access request, accessing the second system through the network, and feeding back the data acquired from the second system to the first system, and the first system feeds back to the client.
  9. 如权利要求8所述的服务器,其特征在于,所述根据第一系统配置的服务器数量创建多个线程的步骤包括:The server according to claim 8, wherein the step of creating a plurality of threads according to the number of servers configured by the first system comprises:
    确定第一系统所配置的服务器数量;及Determining the number of servers configured in the first system; and
    根据所述第一系统所配置的服务器数量创建相应的多个线程。A corresponding plurality of threads are created according to the number of servers configured by the first system.
  10. 如权利要求8所述的服务器,其特征在于,所述当第一系统收到客户端发送的大量访问请求时,将收到的所述访问请求分配给所述多个线程的步骤包括:The server according to claim 8, wherein when the first system receives a large number of access requests sent by the client, the step of assigning the received access requests to the plurality of threads comprises:
    将所述第一系统收到的客户端发送的访问请求数量与所述多个线程的数量执行求余运算;Performing a remainder operation on the number of access requests sent by the client received by the first system and the number of the plurality of threads;
    根据运算结果将访问请求分配给所述多个线程。An access request is allocated to the plurality of threads according to the result of the operation.
  11. 如权利要求9所述的服务器,其特征在于,所述当第一系统收到客户端发送的大量访问请求时,将收到的所述访问请求分配给所述多个线程的步骤包括:The server according to claim 9, wherein when the first system receives a large number of access requests sent by the client, the step of assigning the received access request to the plurality of threads comprises:
    将所述第一系统收到的客户端发送的访问请求数量与所述多个线程的数量执行求余运算;Performing a remainder operation on the number of access requests sent by the client received by the first system and the number of the plurality of threads;
    根据运算结果将访问请求分配给所述多个线程。An access request is allocated to the plurality of threads according to the result of the operation.
  12. 如权利要求8所述的服务器,其特征在于,所述多个线程的数量为所述第一系统配置的服务器数量的整数倍。The server of claim 8, wherein the number of the plurality of threads is an integer multiple of the number of servers configured by the first system.
  13. 如权利要求9所述的服务器,其特征在于,所述多个线程的数量为所述第一系统配置的服务器数量的整数倍。The server of claim 9, wherein the number of the plurality of threads is an integer multiple of the number of servers configured by the first system.
  14. 如权利要求10或11所述的服务器,其特征在于,所述多个线程的 数量为所述第一系统配置的服务器数量的整数倍。A server according to claim 10 or 11, wherein the number of said plurality of threads is an integer multiple of the number of servers configured by said first system.
  15. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有数据调用系统,所述数据调用系统可被至少一个处理器执行,以实现以下步骤:A computer readable storage medium, characterized in that the computer readable storage medium stores a data invoking system, the data invoking system being executable by at least one processor to implement the following steps:
    根据第一系统配置的服务器数量创建多个线程;Create multiple threads according to the number of servers configured in the first system;
    当第一系统收到客户端发送的大量访问请求时,将收到的所述访问请求分配给所述多个线程;及When the first system receives a large number of access requests sent by the client, the received access request is allocated to the plurality of threads; and
    调用所述多个线程执行分配得到的访问请求,通过网络访问第二系统,将从第二系统获取的数据反馈给所述第一系统,由第一系统反馈给客户端。Invoking the plurality of threads to execute the allocated access request, accessing the second system through the network, and feeding back the data acquired from the second system to the first system, and the first system feeds back to the client.
  16. 如权利要求15所述的计算机可读存储介质,其特征在于,所述根据第一系统配置的服务器数量创建多个线程的步骤包括:The computer readable storage medium of claim 15, wherein the step of creating a plurality of threads according to the number of servers configured by the first system comprises:
    确定第一系统所配置的服务器数量;及Determining the number of servers configured in the first system; and
    根据所述第一系统所配置的服务器数量创建相应的多个线程。A corresponding plurality of threads are created according to the number of servers configured by the first system.
  17. 如权利要求15所述的计算机可读存储介质,其特征在于,所述当第一系统收到客户端发送的大量访问请求时,将收到的所述访问请求分配给所述多个线程的步骤包括:The computer readable storage medium according to claim 15, wherein when the first system receives a large number of access requests sent by the client, the received access request is allocated to the plurality of threads. The steps include:
    将所述第一系统收到的客户端发送的访问请求数量与所述多个线程的数量执行求余运算;Performing a remainder operation on the number of access requests sent by the client received by the first system and the number of the plurality of threads;
    根据运算结果将访问请求分配给所述多个线程。An access request is allocated to the plurality of threads according to the result of the operation.
  18. 如权利要求16所述的计算机可读存储介质,其特征在于,所述当第一系统收到客户端发送的大量访问请求时,将收到的所述访问请求分配给所述多个线程的步骤包括:The computer readable storage medium according to claim 16, wherein when the first system receives a large number of access requests sent by the client, the received access request is allocated to the plurality of threads. The steps include:
    将所述第一系统收到的客户端发送的访问请求数量与所述多个线程的数量执行求余运算;Performing a remainder operation on the number of access requests sent by the client received by the first system and the number of the plurality of threads;
    根据运算结果将访问请求分配给所述多个线程。An access request is allocated to the plurality of threads according to the result of the operation.
  19. 如权利要求15或16所述的计算机可读存储介质,其特征在于,所述多个线程的数量为所述第一系统配置的服务器数量的整数倍。The computer readable storage medium of claim 15 or 16, wherein the number of the plurality of threads is an integer multiple of the number of servers configured by the first system.
  20. 如权利要求17或18所述的计算机可读存储介质,其特征在于,所述多个线程的数量为所述第一系统配置的服务器数量的整数倍。The computer readable storage medium of claim 17 or 18, wherein the number of the plurality of threads is an integer multiple of the number of servers configured by the first system.
PCT/CN2018/077657 2017-06-25 2018-02-28 System and method for data call between associated systems WO2019000995A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710490402.8A CN108429780B (en) 2017-06-25 2017-06-25 Data calling system and method between associated systems
CN201710490402.8 2017-06-25

Publications (1)

Publication Number Publication Date
WO2019000995A1 true WO2019000995A1 (en) 2019-01-03

Family

ID=63155430

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/077657 WO2019000995A1 (en) 2017-06-25 2018-02-28 System and method for data call between associated systems

Country Status (2)

Country Link
CN (1) CN108429780B (en)
WO (1) WO2019000995A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112541027A (en) * 2020-11-24 2021-03-23 国网商旅云技术有限公司 Data processing method and device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113259261B (en) * 2021-03-25 2023-04-18 中国铁道科学研究院集团有限公司电子计算技术研究所 Network flow control method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090006520A1 (en) * 2007-06-28 2009-01-01 Microsoft Corporation Multiple Thread Pools for Processing Requests
CN101753552A (en) * 2008-12-01 2010-06-23 鸿富锦精密工业(深圳)有限公司 Network communication system and method
CN102904964A (en) * 2012-10-26 2013-01-30 南京信息工程大学 Mass concentrator concurrent processing method based on completion port model
CN103731476A (en) * 2013-12-10 2014-04-16 乐视网信息技术(北京)股份有限公司 Method and device for improving information push speed
CN104133724A (en) * 2014-04-03 2014-11-05 腾讯科技(深圳)有限公司 Concurrent task scheduling method and concurrent task scheduling device
US20170048307A1 (en) * 2015-08-12 2017-02-16 Fujitsu Limited Apparatus and method to perform post-initialization control on applications in a server

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9680764B2 (en) * 2013-04-06 2017-06-13 Citrix Systems, Inc. Systems and methods for diameter load balancing
CN106330987A (en) * 2015-06-15 2017-01-11 交通银行股份有限公司 Dynamic load balancing method
CN105930216A (en) * 2016-04-15 2016-09-07 平安科技(深圳)有限公司 Automatic scheduling method and system for electronic signature system and server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090006520A1 (en) * 2007-06-28 2009-01-01 Microsoft Corporation Multiple Thread Pools for Processing Requests
CN101753552A (en) * 2008-12-01 2010-06-23 鸿富锦精密工业(深圳)有限公司 Network communication system and method
CN102904964A (en) * 2012-10-26 2013-01-30 南京信息工程大学 Mass concentrator concurrent processing method based on completion port model
CN103731476A (en) * 2013-12-10 2014-04-16 乐视网信息技术(北京)股份有限公司 Method and device for improving information push speed
CN104133724A (en) * 2014-04-03 2014-11-05 腾讯科技(深圳)有限公司 Concurrent task scheduling method and concurrent task scheduling device
US20170048307A1 (en) * 2015-08-12 2017-02-16 Fujitsu Limited Apparatus and method to perform post-initialization control on applications in a server

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112541027A (en) * 2020-11-24 2021-03-23 国网商旅云技术有限公司 Data processing method and device
CN112541027B (en) * 2020-11-24 2024-03-22 国网商旅云技术有限公司 Data processing method and device

Also Published As

Publication number Publication date
CN108429780A (en) 2018-08-21
CN108429780B (en) 2021-05-07

Similar Documents

Publication Publication Date Title
US9569276B2 (en) System and method for dynamic user assignment in a virtual desktop environment
US9645856B2 (en) Resource health based scheduling of workload tasks
US11010197B2 (en) Dynamic allocation of physical computing resources amongst virtual machines
US10193977B2 (en) System, device and process for dynamic tenant structure adjustment in a distributed resource management system
CN102495857B (en) Load balancing method for distributed database
US10678757B2 (en) Reliable generation of a unique key in a distributed system
US20060143608A1 (en) Thread monitoring using shared memory
JP2014142928A (en) Method and system for managing cloud computing environment
US9747130B2 (en) Managing nodes in a high-performance computing system using a node registrar
US11573946B2 (en) Management of memory usage using usage analytics
US11257012B1 (en) Automatic analysis of process and/or operations data related to a benefit manager organization
US20190332315A1 (en) In-memory service with plural buffer type assignment
US20230006891A1 (en) Techniques and architectures for efficient allocation of under-utilized resources
WO2019024235A1 (en) Electronic device, server allocation control method and computer readable storage medium
WO2019062180A1 (en) Network-based task transfer method, and device and storage medium
WO2019000995A1 (en) System and method for data call between associated systems
US20150332280A1 (en) Compliant auditing architecture
US8886890B2 (en) Adaptive configuration of cache
CN110569114B (en) Service processing method, device, equipment and storage medium
US11150939B2 (en) Composite batching to manage throughput for online commerce applications
US10963311B2 (en) Techniques and architectures for protection of efficiently allocated under-utilized resources
US20230114321A1 (en) Cloud Data Ingestion System
US9703601B2 (en) Assigning levels of pools of resources to a super process having sub-processes
US20180095664A1 (en) Techniques and architectures for efficient allocation of under-utilized resources
US20120323840A1 (en) Data flow cost modeling

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18824524

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 23/06/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18824524

Country of ref document: EP

Kind code of ref document: A1