Unlock instant, AI-driven research and patent intelligence for your innovation.

Request processing method and device

A request processing and processor technology, applied in the computer field, can solve problems such as adding distributed lock logic

Pending Publication Date: 2021-05-14
BEIJING WODONG TIANJUN INFORMATION TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In view of this, the embodiment of the present invention provides a request processing method and device, which can at least solve the problem of adding distributed lock logic in the original business code in the prior art

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
  • Request processing method and device
  • Request processing method and device
  • Request processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0044] It should be noted that the embodiment of the present invention is mainly applicable to Nginx (using Nginx at the access layer is a relatively mainstream solution at present), and realizes distributed lock front-end on some existing mechanisms. Among them, Nginx (engine x) is a high-performance HTTP and reverse proxy web server, which has the characteristics of less...

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 request processing method and device, and relates to the technical field of computers. A specific embodiment of the method comprises the following steps: receiving a request to be processed by an access layer, determining a calling method corresponding to the request, and obtaining a distributed lock key name corresponding to the calling method; determining a service node corresponding to the distributed lock key name, and distributing the request to the service node; and locking the request through the service node so as to forward the request to an application corresponding to the service node for processing. According to the embodiment, the distributed lock logic can be realized by configuring the distributed lock on the Nginx access layer, the distributed lock logic does not need to be embedded into a service code, and requests of the same distributed lock key can be sent to the same Nginx node by combining the consistent hash with the local lock.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a request processing method and device. Background technique [0002] At present, large-scale websites and applications are deployed in a distributed manner, and there will be data consistency problems in distributed scenarios. Based on the distributed CAP theory "no distributed system can satisfy Consistency, Availability, and Partition tolerance at the same time, and can only satisfy two at the same time", many systems will be designed at the beginning Make a trade-off between the three. [0003] In most scenarios in the Internet field, it is usually chosen to sacrifice strong consistency in exchange for high reliability, that is, the system only needs to maintain "final consistency". And this requires the support of many technical solutions, such as database distributed transactions, distributed locks, etc., to ensure that a method (that is, a piece of business cod...

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): H04L29/08
CPCH04L67/10H04L67/63
Inventor 张开涛杨嗦
Owner BEIJING WODONG TIANJUN INFORMATION TECH CO LTD