Method and apparatus for controlling service request

A business request and business technology, applied in the computer field, can solve problems such as being unable to cope with high concurrent business requests, and cannot ensure the atomization of business resources, so as to achieve the effect of realizing distributed traffic and ensuring atomization

Active Publication Date: 2018-12-25
BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF6 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a service request control method and device to solve the problem that the service request processing scheme in the prior art cannot cope with high concurrent service requests and cannot ensure the atomization of accessed service resources

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 apparatus for controlling service request
  • Method and apparatus for controlling service request
  • Method and apparatus for controlling service request

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0057] In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0058] refer to figure 1 , which shows a structural block diagram of an embodiment of a service request control system in the present invention, which may specifically include:

[0059] Client, business interface (including business interface 1, business interface 2... business interface N), business server cluster, Redis server cluster and Zookeeper cluster.

[0060] Wherein, the business server cluster includes multiple business servers, the Redis server cluster includes multiple Redis servers, and the Zookeeper cluster includes multiple Zookeepers.

[0061] Since the functions of each server in the server cluster are the same, here a single server is taken as an example to describe the control system in the embodiment of the p...

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 control method and a device for a service request. The method comprises the following steps: when a service request is received by a service interface, a Redis server automatically increases the quantity of QPS indexes corresponding to the service interface; when a service request is received by a service interface, the Redis server automatically increases the quantity ofQPS indexes corresponding to the service interface; it is judged whether a QPS index corresponding to the service interface after the number of self-increasing exceeds a preset QPS threshold of the service interface; when the QPS index corresponding to the service interface exceeds a preset QPS threshold value of the service interface, the Redis server returns a first preset error message to a service server corresponding to the service interface, wherein the first preset error message is used to indicate that subsequent service logic is prohibited from being executed for a service request currently received by the service interface. The invention realizes the control of the distributed flow and the timely response to the high concurrent service request, and ensures the atomization of theaccessed service resources.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method and device for controlling service requests. Background technique [0002] Traffic limitation is frequently used in the design of background services. The purpose is to reduce the impact of upper-layer service requests on lower-layer core services and prevent core services from being unavailable. Specifically, when there is suddenly a huge amount of access to the same business resource, the system is prone to crash, making it impossible to process any business access request. [0003] In addition, in a high-concurrency scenario, when a large number of business requests access the same limited business resource, there will also be a problem of request oversending. For example, during the Double Eleven period, the customer orders are relatively large, and the inventory of a certain commodity is limited. Then when the commodity is up for grabs, the system can rec...

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): G06Q10/10G06Q30/06G06F17/30
CPCG06Q10/103G06Q30/0635
Inventor 刘硕
Owner BEIJING DAJIA INTERNET INFORMATION TECH 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