Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for handling with service request

A technology for processing services and processing requests, applied in the field of network computing, can solve problems such as unproposed solutions and complex programming models, and achieve the effects of easy maintenance, improved TPS concurrency, and simple hierarchical structure

Inactive Publication Date: 2014-09-24
CENTURY HEGUANG TECH DEV BEIJING
View PDF2 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The negative effect of introducing Jetty continuation is that various IO tasks need to be carefully cut, and the programming model will become complicated
[0005] For the above-mentioned problems existing in related technologies, effective solutions have not yet been proposed

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 and device for handling with service request
  • Method and device for handling with service request
  • Method and device for handling with service request

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The following and accompanying appendices illustrating the principles of the invention Figure 1 A detailed description of one or more embodiments of the invention is provided together. The invention is described in connection with such embodiments, but the invention is not limited to any embodiment. The scope of the invention is limited only by the claims and the invention encompasses numerous alternatives, modifications and equivalents. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. These details are provided for the purpose of example and the invention may be practiced according to the claims without some or all of these specific details.

[0039] figure 1 is a flowchart of a method for processing a service request according to an embodiment of the present invention. The method provided by the invention comprises:

[0040] 1. Establish an asynchronous hierarchical struc...

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 provides a method and device for handling with a service request. The method comprises the following steps: establishing an asynchronous hierarchical structure in a Jetty Continuation request handling, wherein the asynchronous hierarchical structure comprises a transmission layer, an inner data converting layer, an outer data converting layer and an output layer; asynchronously handling with the request through Continuation; asynchronously sending the request by levels in the asynchronous hierarchical structure; asynchronously returning the handling result; informing the releasing request. According to the method and device for handling with the service request, the hierarchical structure is simple and clear, the maintenance is easily carried out, the coupling is minimized, and the system performance is improved.

Description

technical field [0001] The invention relates to the field of network computing, in particular to a method and device for asynchronously processing API service requests. Background technique [0002] As an open source servlet container, Jetty provides a runtime environment for Java-based web content. Jetty's API is distributed as a set of JAR packages. Developers can instantiate the Jetty container as an object, which can quickly provide network and web connections for some independently running Java applications. In the server-client architecture, all requests are connected to Jetty's servlet. If the back-end processing speed is slow, a large number of requests will time out. Conventional programs usually wait in this situation (assuming no timeout is set), and the thread will waste time at this time. Once the number of requests increases, the thread pool and waiting queue will become full, causing the website to be unable to serve. At present, there are programs that use...

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
IPC IPC(8): H04L29/08H04L29/06
Inventor 王子武刘泉
Owner CENTURY HEGUANG TECH DEV BEIJING
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products