Method for changing synchronous service call to asynchronous parallel call with self-expanding choking algorithm

A service invocation and self-expansion technology, applied in the direction of concurrent instruction execution, machine execution device, program startup/switching, etc., can solve the problems of time waste and low resource utilization, and achieve improved throughput, reliable time-limited response, and guaranteed time-limited effect of response

Inactive Publication Date: 2013-06-19
PCI TECH GRP CO LTD
View PDF5 Cites 39 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When a service calls a service that can be split in batches, it can only be executed serially to wait for the result, resulting in waste of time and low resource utilization;

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for changing synchronous service call to asynchronous parallel call with self-expanding choking algorithm
  • Method for changing synchronous service call to asynchronous parallel call with self-expanding choking algorithm
  • Method for changing synchronous service call to asynchronous parallel call with self-expanding choking algorithm

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0017] Embodiment one, see figure 1 ,

[0018] The present invention provides a method for converting a synchronous service call into an asynchronous parallel call using a self-expanding blocking algorithm, decoupling a long time-consuming blocked synchronous service call into an independent multi-threaded non-blocking asynchronous call, and improving service efficiency. Throughput, parallel processing can be split when facing splittable batch service requests, which can ensure reliable time-limited response;

[0019] For a schematic diagram of the structure and principle of converting synchronous service calls into asynchronous parallel calls, see figure 1 , including the following sections:

[0020] S101 in the figure means: the main tune entry part,

[0021] This part includes a single-thread scheduling main calling thread and a custom distribution strategy, which is used for: when there is a request to call the synchronous service method, the main calling thread will sp...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for changing a synchronous service call to an asynchronous parallel call with a self-expanding choking algorithm. The synchronous service call which is long in consumed time and obstructed is enabled to be decoupled into an independent multithreading non-blocking asynchronous call, throughput of service is improved, timeout blocking waiting time is set, and a reliable response speed is guaranteed. The method for changing the synchronous service call to the asynchronous parallel call with the self-expanding choking algorithm includes three steps of service delivery and blocking waiting, resource service calling and response waking and merging. The self-expanding choking algorithm is adopted and is a waiting and informing algorithm which is used for expanding implementation and synchronizing objects, the self-expanding choking algorithm is used in a shifting mechanism of synchronization and asynchronization and used for carrying out blocking waiting and response waking on a caller threading. The method for changing the synchronous service call to the asynchronous parallel call with the self-expanding choking algorithm has the advantages of being capable shortening response time and supplying the throughput and the like, capable of carrying out processing in an unusually batch-by-batch and parallel-quickened mode when separable batches of service requests are faced, such as database manipulation, file transfer, batches of messages and emails sending, and capable of guaranteeing reliable time-limiting response.

Description

technical field [0001] The present invention relates to the field of web environment applications, in particular to a method for converting synchronous service calls into asynchronous parallel calls using a self-expanding blocking algorithm, so as to realize the decoupling of long-time-consuming and blocked synchronous service calls into independent multi-thread non- Blocking asynchronous calls, by using the present invention in the Web field, when facing detachable batch service requests, such as database operations, file transfers, batch short message email sending, etc., the asynchronous parallel processing in batches can improve service efficiency. Throughput, and there is a set timeout blocking waiting time to ensure reliable response speed. Background technique [0002] Web developers are well aware that a synchronous service call request is often in the trivial synchronous blocking process of "receiving messages -> processing messages -> sending back messages". ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/48G06F9/38
Inventor 黄智彬汤湛成丁保剑
Owner PCI TECH GRP CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products