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

A small file read-write optimization method based on HTTP

An optimization method and small file technology, applied in electrical components, transmission systems, etc., can solve problems such as poor customer experience and live broadcast freeze, and achieve high reading efficiency, reasonable cache configuration, and optimized storage read and write delays.

Inactive Publication Date: 2019-05-10
HANGZHOU ARCVIDEO TECHNOLOGY CO LTD
View PDF6 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When generating live broadcasts, many systems will use HTTP-PUT to input HTTP services built using third-party open source software such as Nginx or Tomcat, and then directly write to the disk. If the disk writes jitter, it will cause live broadcasts. Caton and other phenomena, the customer experience is very poor

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
  • A small file read-write optimization method based on HTTP
  • A small file read-write optimization method based on HTTP
  • A small file read-write optimization method based on HTTP

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0044] An HTTP-based small file reading and writing optimization method specifically includes the following steps:

[0045] (1) Write execution: when data is written, it is first written to the cache and then asynchronously written to storage;

[0046] Such as figure 1 As shown, the specific steps of writing execution are as follows:

[0047] (11) The HTTP container module receives the write request from the client and adopts the PUT method;

[0048] (12) Write to the cache and set the cache duration;

[0049] (13) Add asynchronous write storage tasks; if there are multiple output storages, multiple asynchronous write tasks are required;

[0050] Among them: the specific steps for asynchronously writing to storage are as follows:

[0051] (131) Check whether the file expires in the cache;

[0052] (132) If it has expired, exit the write s...

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 small file read-write optimization method based on HTTP. The method specifically comprises the following steps: (1) write-in execution: when data is written in, writing the data into a cache, and asynchronously writing the data into storage; (2) reading execution: during data reading, reading the data from a cache firstly, and if the cache does not exist, reading the datafrom actual storage; And (3) deletion execution: when the data is deleted, deleting the data from the cache, and then asynchronously deleting the stored data. The method has the beneficial effects that according to the service scene, the cache configuration is reasonable, the reading efficiency is high, the storage read-write delay problem is optimized, and the problem that the live stream cannotbe smoothly played when the storage write-in possibly jitters is solved.

Description

technical field [0001] The invention relates to the related technical field of file reading and writing, in particular to an HTTP-based small file reading and writing optimization method. Background technique [0002] At present, in the field of live video broadcasting, the HLS (HTTP Live Streaming) format occupies a relatively large market share due to its good compatibility, convenience for CDN acceleration, and ease of replaying when it is formed. Therefore, many service providers will convert the live stream to HLS, then time-shift it back to the viewing system, and finally distribute it to end users through CDN acceleration. When generating live broadcasts, many systems will use HTTP-PUT to input HTTP services built using third-party open source software such as Nginx or Tomcat, and then directly write to the disk. If the disk writes jitter, it will cause live broadcasts. Caton and other phenomena, the customer experience is very poor. Contents of the invention [0...

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
Inventor 李妃军孙彦龙
Owner HANGZHOU ARCVIDEO TECHNOLOGY CO LTD