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

Object processing method and device

A processing method and object technology, applied in the computer field, can solve problems such as unreadable request processing, unavailability of business access, and request timeout.

Active Publication Date: 2017-10-24
GUANGZHOU HUADUO NETWORK TECH
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the process of realizing the present invention, the inventors found that the above-mentioned technology has at least the following problems: when the key hash distribution of the m read requests stored in the request queue 12 is uneven, or there are a large number of read requests with the same When reading the key, the load of the Redis instance corresponding to a certain Redis port will be too high
Since the Redis instance only supports single-threaded serial processing of read requests, this makes it impossible to process a large number of read requests in a timely manner, resulting in a backlog of requests, request timeouts, and unavailable business access

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0091] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0092] Please refer to figure 2 , which shows a schematic structural diagram of an implementation environment involved in various embodiments of the present invention. The implementation environment includes at least one terminal 210 and a server 220 .

[0093] The terminal 210 can be a mobile phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III, moving picture expert compression standard audio level 3) player, MP4 (Moving Picture Experts Group Audio Layer IV, a moving picture expert compression standard audio Level 4) Players, laptops and desktops, etc.

[0094] A client runs in the terminal 210, and the client is used to send the object to be processed to the server 220 through a wireles...

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 an object processing method and an object processing device and belongs to the technical field of computers. The method comprises the steps of obtaining an object from a receiving queue; assigning a processing unit for the object from at least one processing unit; obtaining a load of the processing unit which is assigned for the object; if the load is greater than a cache threshold value, adding the object into a cache queue; carrying out delay processing on the object according to the cache queue. According to the object processing method and the object processing device, the problems that when a lot of requests simultaneously need a Redis example with a Redis port for processing in the background art, the requests are overstocked, the requests are overtime, and the business access is unavailable are solved; when the load of the processing unit (for example the Redis example with the Redis port) is over high, the object, corresponding to the processing unit, in the receiving queue is added into the cache queue, and then the object is subjected to the delay processing, the overstock problem is prevented from being caused in the receiving queue, the mutual influence of objects corresponding to different processing units is avoided, and the processing speed is guaranteed.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to an object processing method and device. Background technique [0002] Redis is an open source, network-enabled, memory-based key-value (key-value pair) database. The data types supported by Redis include string (string), list (linked list), set (set), zset (ordered set) and hash (hash type). In the process of accessing the Redis database, it can be roughly divided into two types: read request and write request. [0003] Please refer to figure 1 , which shows a schematic diagram involved in accessing the Redis database. Taking read requests as an example, m read requests are stored in the request queue 12, where m≥1. In order to cope with large-scale business access, multiple Redis instances 14 need to be deployed, and each Redis instance 14 occupies a Redis port. The read requests in the request queue 12 are processed by n threads corresponding to the request queue 12, whe...

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): G06F17/30
CPCG06F16/24578
Inventor 邱吉雄林道强
Owner GUANGZHOU HUADUO NETWORK TECH
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