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

Data buffering method, device and storage medium

A data buffering and data buffering technology, applied in the information field, can solve problems such as poor experience, high resource utilization, crash, etc., and achieve the effects of reducing data infinite loops, increasing computing speed, and improving real-time performance.

Active Publication Date: 2018-06-05
GUANGDONG DECHENG NETWORK TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For example, the performance of servers and databases has dropped sharply, and the response of clients is slow, etc., which directly affect the experience of users. In the case of large amounts of multi-threaded data and high update frequency, it often causes an infinite loop of the system, resulting in the utilization of various resources. High utilization rate, such as CPU (Central Processing Unit) utilization rate is high, which will cause overheating or crash of the server, which brings bad experience to users and needs to be improved.

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
  • Data buffering method, device and storage medium
  • Data buffering method, device and storage medium
  • Data buffering method, device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0039] figure 1 It is an application environment diagram for the operation of the data buffering method in an embodiment. Such as figure 1 As shown, the application environment includes a terminal 110 and a server 120, wherein the terminal 110 and the server 120 communicate through a network.

[0040] The terminal 110 may be a client such as a smart phone, a tablet computer, a notebook computer, or a desktop computer, but is not limited thereto. The terminal 110 can receive data from the server 120 through the network, such as audio and video data, or send data to the server 120 , and the server 120 can respond to the video transmission request sent by the terminal 110 . The terminal 110 may have a storage medium on which this method can be used.

[0041] The server 120 can be multiple concurrently, or a single server can be used as a buffer to connect with other servers and database servers. There is a storage medium on the server 120 on which this approach can also be us...

Embodiment 2

[0052] The difference between this embodiment and Embodiment 1 is that the values ​​of n and k are given, n=16, k=0.75. That is to say, it is divided into 16 sub-data buffers at the beginning, and 16 data buffers are used according to the size of the data packet. When the 12th one is used, that is, when the value of k*n is large. This method automatically increases the number of regions to 32. By analogy, when 32 is not enough, it can be increased to 64, and so on. According to the above introduction, it can be seen that the maximum value of k is 1. It is tested in practice, with n=16, k=0.75 as parameters. Because repartitioning the sub-data buffer is also very resource-intensive, but it is better than not increasing it. An embodiment in which n=16 and k=0.75 is better utilized resources.

Embodiment 3

[0054] Such as Figure 4 As shown, it is a schematic diagram of the framework of the data buffering module of the present invention. The data buffering device includes an acquisition module 10 , a data buffering module 20 , a locking module 30 and a transmission module 40 .

[0055] The acquiring module 10 receives data packets and processing requests of the database;

[0056] The data buffer module 20 divides the data buffer into n sub-data buffers, wherein the sub-data buffers are correspondingly provided with a sub-data buffer sequence identifier and a sub-data buffer lock identifier, and the data packets of the database are placed in each sub-data in the buffer zone;

[0057] The locking module 30, when each sub-data buffer receives a processing request, locks the data of the sub-data buffer according to the sequence identifier of the sub-data buffer and modifies the locking identifier of the sub-data buffer, stores or reads the sub-data according to the processing reques...

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 embodiment of the invention discloses a data buffering method, which comprises the steps that firstly, data packages and processing requests from a database are obtained; then data buffering areas are divided into a plurality of sub-data buffering areas which is correspondingly provided with sequence identifiers and locking identifiers of sub-data buffering areas, meanwhile, data packages from the database are placed inside every sub-data buffering area; when the sub-data buffering areas receive processing requests, according to the sequence identifiers of the sub-data buffering areas, data of the sub-data buffering areas are locked and the locking identifiers of the sub-data buffering areas are modified; according to the processing requests, the data of sub-data buffering areas are saved or read, afterwards, the data of sub-data buffering areas are unlocked and the locking identifiers of sub-data buffering areas are reset; finally, data of the all sub-data buffering areas are sent out of the data buffering areas. The embodiment of the invention also discloses a data buffering device and a storage medium thereof. By the means of the method, device and storage medium for data buffering, the purpose of smoothly disposing multiple high-concurrency data requests can be achieved.

Description

technical field [0001] The invention belongs to the field of information technology, specifically, mainly relates to a data buffering method, device and storage medium. Background technique [0002] In a traditional network application system, after the client sends a request, it directly performs a connection query operation on the database through the service layer of the server, obtains business data, and then transmits the data to the client. This mechanism can handle a small amount of data and a system with low concurrency in peace, but encounters a WEB system with a relatively large amount of data and high concurrency, especially for systems that require frequent information changes and high real-time data requirements. This processing method will encounter a bottleneck. For example, the performance of servers and databases has dropped sharply, and the response of clients is slow, etc., which directly affect the experience of users. In the case of large amounts of mul...

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 Patents(China)
IPC IPC(8): G06F9/50
CPCG06F9/5038
Inventor 胡永春谢刚强柯维海黄伟强
Owner GUANGDONG DECHENG NETWORK TECH CO LTD
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