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

Data request processing method and device and computer readable storage medium

A data request processing and data block technology, applied in the field of distributed services, can solve problems such as service output decline, affect user usability, and stop services, so as to improve service availability, ensure service stability, and reduce resource occupation.

Pending Publication Date: 2021-01-22
上海豹云网络信息服务有限公司
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the existing technology, there is a data download requirement in the application service. When the data is loaded frequently and the amount of data is large, the service will face greater pressure, which will easily cause performance bottlenecks, resulting in a decline in service output or service stoppage, seriously affecting users. Usability; In addition, the pull-down data function of each application service has repeated development, and if there is a large amount of data, it cannot be plugged and isolated from the original service function, which will cause memory overflow or even downtime risks to 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
  • Data request processing method and device and computer readable storage medium
  • Data request processing method and device and computer readable storage medium
  • Data request processing method and device and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0068] An embodiment of the present invention provides a data request processing method, which can be applied to a data request processing device. The data request processing device communicates with each service in the distributed service. The data request processing device can use an independent server or Server clusters are implemented. Such as figure 1 As shown, the data request processing method may include steps:

[0069] 101. Receive a task request sent by a target service among multiple services, where the task request is generated by the target service in response to a download request of a client for a target data file.

[0070] In this embodiment, the target service may be any one of multiple services included in the distributed service. The user can request the target service to download the target data file through the client, wherein the data download request includes one or more parameters related to the data to be downloaded, including but not limited to the ...

Embodiment 2

[0108] An embodiment of the present invention provides a data request processing device, such as Figure 4 As shown, the device includes:

[0109] The receiving module 401 is configured to receive a task request sent by a target service among multiple services, wherein the task request is generated by the target service in response to a download request of a client for a target data file;

[0110] Creating module 402, for creating the task for downloading the target data file according to the task request;

[0111] The adding module 403 is configured to determine the task weight of the task, and add the task to the task queue according to the task weight of the task;

[0112] A processing module 404, configured to asynchronously process the tasks in the task queue to download the target data file;

[0113] The sending module 405 is configured to return the storage path of the target data file to the client.

[0114] Further, the task request includes one or more relevant pa...

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 data request processing method and device, and a computer readable storage medium, and belongs to the technical field of distributed services, the method comprises the stepsof receiving a task request sent by a target service in a plurality of services, the task request being generated by the target service in response to a download request of a client for a target datafile; creating a task for downloading the target data file according to the task request, determining a task weight of the task, and adding the task into a task queue according to the task weight of the task; performing asynchronous processing on the tasks in the task queue to download a target data file; and returning the storage path of the target data file to the client. According to the method, decoupling of a data downloading function in the application service can be realized, repeated development is not needed, sharing of the function service is achieved, resource occupation of the target service is reduced in the file downloading process, the service availability is improved, large-data-volume data downloading can be supported, and the service stability can be guaranteed.

Description

technical field [0001] The present invention relates to the technical field of distributed services, in particular to a data request processing method, device and computer-readable storage medium. Background technique [0002] With the advent of the big data era, the amount of information to be processed continues to increase, causing more and more enterprises to adopt a distributed service architecture, and the number and complexity of application services are also increasing. [0003] In the existing technology, there is a data download requirement in the application service. When the data is loaded frequently and the amount of data is large, the service will face greater pressure, which will easily cause performance bottlenecks, resulting in a decline in service output or service stoppage, seriously affecting users. Usability; In addition, there is repeated development of the pull-down data function of each application service, and if there is a large amount of data, it c...

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): G06F9/48G06F9/50G06F16/953
CPCG06F9/4881G06F9/5016G06F9/5027G06F16/953
Inventor 杨彬喻阳
Owner 上海豹云网络信息服务有限公司
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