[go: up one dir, main page]

CN106534281B - Data request response method, device and system - Google Patents

Data request response method, device and system Download PDF

Info

Publication number
CN106534281B
CN106534281B CN201610942148.6A CN201610942148A CN106534281B CN 106534281 B CN106534281 B CN 106534281B CN 201610942148 A CN201610942148 A CN 201610942148A CN 106534281 B CN106534281 B CN 106534281B
Authority
CN
China
Prior art keywords
data
request
processing
cloud server
data processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610942148.6A
Other languages
Chinese (zh)
Other versions
CN106534281A (en
Inventor
张海龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610942148.6A priority Critical patent/CN106534281B/en
Publication of CN106534281A publication Critical patent/CN106534281A/en
Priority to PCT/CN2017/093048 priority patent/WO2018076812A1/en
Application granted granted Critical
Publication of CN106534281B publication Critical patent/CN106534281B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method, a device and a system for responding a data request, wherein the method comprises the steps of receiving at least one data processing request sent by a client; acquiring attribute information of request data indicated by the data processing request; determining a corresponding processing sequence of the request data according to a preset processing strategy and the attribute information of the request data; the corresponding data processing requests are responded to based on the processing order of the requested data. According to the embodiment of the invention, the processing priority is set for the request data according to the attribute information of the request data, so that the cloud server is prevented from processing a large number of data processing requests in a short time, the load of the cloud server is reduced, the efficiency of processing the data processing requests by the server is effectively improved, and the response speed of the server to the client data is improved.

Description

一种数据请求的响应方法、装置及系统A method, device and system for responding to a data request

技术领域technical field

本发明属于通信技术领域,尤其涉及一种数据请求的响应方法、装置及系统。The invention belongs to the field of communication technologies, and in particular relates to a method, device and system for responding to a data request.

背景技术Background technique

云端服务,又称网络服务,是指运用网络沟通多台计算机的运算工作,或是透过网络联机取得由远程主机提供的服务等。云端服务器基于云端服务产生,是轻量级通讯及信息化管理营销平台,具有高度分布式、高度虚拟化等特点,使得网络资源得到充分的利用。Cloud service, also known as network service, refers to the use of network to communicate computing work of multiple computers, or to obtain services provided by remote hosts through network connection. The cloud server is generated based on cloud services. It is a lightweight communication and information management and marketing platform. It has the characteristics of high distribution and high virtualization, so that network resources can be fully utilized.

目前,云端服务器主要用于处理客户端的数据请求,如备份、存储以及同步等等;但是,当云端服务器宕机后,再次启动时需要短时间内处理多个客户端的数据请求,受限于服务器负荷,有可能导致部分请求响应缓慢,数据处理效率较低的问题。At present, the cloud server is mainly used to process data requests from clients, such as backup, storage, synchronization, etc.; however, when the cloud server goes down, it needs to process data requests from multiple clients in a short period of time when it is restarted, which is limited by the server load, which may result in slow response to some requests and low data processing efficiency.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于提供一种数据请求的响应方法、装置及系统,旨在解决云端服务器对数据处理请求的响应缓慢,数据处理效率低的问题。The purpose of the present invention is to provide a method, device and system for responding to a data request, aiming at solving the problems of slow response of a cloud server to a data processing request and low data processing efficiency.

为解决上述技术问题,本发明实施例提供以下技术方案:In order to solve the above-mentioned technical problems, the embodiments of the present invention provide the following technical solutions:

第一方面,本发明提供一种数据请求的响应方法,其中包括:In a first aspect, the present invention provides a method for responding to a data request, including:

接收客户端发送的至少一个数据处理请求;Receive at least one data processing request sent by the client;

获取所述数据处理请求指示的请求数据的属性信息;Obtain attribute information of the request data indicated by the data processing request;

按照预设处理策略,根据所述请求数据的属性信息,确定相应的请求数据的处理次序;According to the preset processing strategy, according to the attribute information of the request data, determine the processing order of the corresponding request data;

基于所述请求数据的处理次序响应相应的数据处理请求。A corresponding data processing request is responded to based on the processing order of the requested data.

第二方面,本发明提供一种数据请求的响应装置,其中包括:In a second aspect, the present invention provides a device for responding to a data request, including:

接收单元,用于接收客户端发送的至少一个数据处理请求;a receiving unit, configured to receive at least one data processing request sent by the client;

获取单元,用于获取所述数据处理请求指示的请求数据的属性信息;an acquisition unit, configured to acquire attribute information of the request data indicated by the data processing request;

确定单元,用于按照预设处理策略,根据所述请求数据的属性信息,确定相应的请求数据的处理次序;a determining unit, configured to determine the processing order of the corresponding request data according to the attribute information of the request data according to the preset processing strategy;

响应单元,用于基于所述请求数据的处理次序响应相应的数据处理请求。A response unit, configured to respond to a corresponding data processing request based on the processing order of the requested data.

第三方面,本发明提供一种数据请求的响应系统,包括云端服务器以及至少一个客户端,所述云端服务器为如第二方面提供的数据请求的响应装置;In a third aspect, the present invention provides a system for responding to a data request, including a cloud server and at least one client, where the cloud server is the device for responding to the data request provided in the second aspect;

所述客户端用于,向所述云端服务器发送数据处理请求。The client is configured to send a data processing request to the cloud server.

相对于现有技术,本发明实施例,在云端服务器接收客户端发送的多个数据处理请求时,根据数据处理请求指示的请求数据的属性信息,然后确定处理次序,并基于该处理次序响应相应的数据处理请求;即根据请求数据的属性信息对请求数据设置处理优先级,避免云端服务器需要短时间内处理大量的数据处理请求,降低云端服务器负荷,有效提高服务器处理数据处理请求的效率,提高对客户端数据的响应速度。Compared with the prior art, in this embodiment of the present invention, when the cloud server receives multiple data processing requests sent by the client, it determines the processing order according to the attribute information of the requested data indicated by the data processing request, and responds accordingly based on the processing order. That is, according to the attribute information of the requested data, the processing priority is set for the requested data, so as to avoid the need for the cloud server to process a large number of data processing requests in a short time, reduce the load of the cloud server, effectively improve the efficiency of the server processing data processing requests, and improve the Responsiveness to client data.

附图说明Description of drawings

下面结合附图,通过对本发明的具体实施方式详细描述,将使本发明的技术方案及其它有益效果显而易见。The technical solutions and other beneficial effects of the present invention will be apparent through the detailed description of the specific embodiments of the present invention with reference to the accompanying drawings.

图1是本发明实施例提供的数据请求的响应系统的场景示意图。FIG. 1 is a schematic diagram of a scenario of a data request response system provided by an embodiment of the present invention.

图2是本发明实施例提供的数据请求的响应方法的流程示意图。FIG. 2 is a schematic flowchart of a method for responding to a data request provided by an embodiment of the present invention.

图3为本发明实施例提供的数据请求的响应方法的另一流程示意图。FIG. 3 is another schematic flowchart of a method for responding to a data request provided by an embodiment of the present invention.

图4为本发明实施例提供的数据请求的响应装置的结构示意图。FIG. 4 is a schematic structural diagram of an apparatus for responding to a data request provided by an embodiment of the present invention.

图5为本发明实施例提供的数据请求的响应装置的另一结构示意图。FIG. 5 is another schematic structural diagram of an apparatus for responding to a data request provided by an embodiment of the present invention.

图6为本发明实施例提供的服务器的结构示意图。FIG. 6 is a schematic structural diagram of a server provided by an embodiment of the present invention.

具体实施方式Detailed ways

请参照图式,其中相同的组件符号代表相同的组件,本发明的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本发明具体实施例,其不应被视为限制本发明未在此详述的其它具体实施例。Please refer to the drawings, in which the same reference numerals represent the same components, and the principles of the present invention are exemplified by being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the invention and should not be construed as limiting other embodiments of the invention not detailed herein.

在以下的说明中,本发明的具体实施例将参考由一部或多部计算机所执行的步骤及符号来说明,除非另有述明。因此,这些步骤及操作将有数次提到由计算机执行,本文所指的计算机执行包括了由代表了以一结构化型式中的数据的电子信号的计算机处理单元的操作。此操作转换该数据或将其维持在该计算机的内存系统中的位置处,其可重新配置或另外以本领域测试人员所熟知的方式来改变该计算机的运作。该数据所维持的数据结构为该内存的实体位置,其具有由该数据格式所定义的特定特性。但是,本发明原理以上述文字来说明,其并不代表为一种限制,本领域测试人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。In the following description, specific embodiments of the present invention will be described with reference to steps and symbols performed by one or more computers, unless otherwise stated. Accordingly, the steps and operations will be referred to several times as being performed by a computer, which reference herein includes operations by a computer processing unit of electronic signals representing data in a structured format. This operation transforms the data or maintains it in a location in the computer's memory system, which can be reconfigured or otherwise change the operation of the computer in a manner well known to testers in the art. The data structures maintained by the data are physical locations of the memory that have specific characteristics defined by the data format. However, the principles of the present invention are described by the above text, which is not meant to be a limitation, and testers in the art will understand that various steps and operations described below can also be implemented in hardware.

本发明的原理使用许多其它泛用性或特定目的运算、通信环境或组态来进行操作。所熟知的适合用于本发明的运算系统、环境与组态的范例可包括(但不限于)手持电话、个人计算机、服务器、多处理器系统、微电脑为主的系统、主架构型计算机、及分布式运算环境,其中包括了任何的上述系统或装置。The principles of the present invention operate using numerous other general-purpose or special-purpose computing, communication environments, or configurations. Well-known examples of computing systems, environments, and configurations suitable for use in the present invention may include, but are not limited to, hand-held telephones, personal computers, servers, multiprocessor systems, microcomputer-based systems, mainframe computers, and A distributed computing environment including any of the above systems or apparatus.

以下将分别进行详细说明。The detailed descriptions will be given below.

本发明实施例提供的数据请求的响应系统,主要包括数据请求的响应装置以及客户端,其中,该数据请求的响应装置具体可以集成在服务器或网关等网络设备中,如云端服务器等等,该客户端可以具体为如台式电脑、平板电脑,手机等终端,该服务器与客户端可通过无线网络进行连接。The data request response system provided by the embodiment of the present invention mainly includes a data request response device and a client, wherein the data request response device may be specifically integrated in a network device such as a server or a gateway, such as a cloud server, etc. The client can be specifically a terminal such as a desktop computer, a tablet computer, a mobile phone, etc., and the server and the client can be connected through a wireless network.

比如,请参考图1,图1为本发明提供的数据请求的响应系统的场景示意图,该数据请求的响应装置具体集成在云端服务器中,主要用于接收客户端发送的至少一个数据处理请求,如可以由多个客户端向服务器发送数据处理请求,也可以由一个客户端向服务器发送多个数据处理请求,等等;然后,云端服务器获取数据处理请求指示的请求数据的属性信息,如请求数据的大小、以及请求数据的类型,等等;其后,按照预设处理策略,并根据请求数据的属性信息,确定出相应的请求数据的处理次序,即确定出请求数据的处理优先级;最后,基于请求数据的处理次序响应相应的数据处理请求,如进行数据同步、数据传输、数据备份等等。For example, please refer to FIG. 1. FIG. 1 is a schematic diagram of a data request response system provided by the present invention. The data request response device is specifically integrated in the cloud server, and is mainly used to receive at least one data processing request sent by the client. For example, multiple clients can send data processing requests to the server, or one client can send multiple data processing requests to the server, etc.; then, the cloud server obtains the attribute information of the requested data indicated by the data processing request, such as the request The size of the data, the type of the requested data, etc.; then, according to the preset processing strategy, and according to the attribute information of the requested data, determine the processing order of the corresponding requested data, that is, determine the processing priority of the requested data; Finally, the corresponding data processing requests are responded to based on the processing order of the requested data, such as data synchronization, data transmission, data backup, and the like.

如图1所示,该数据请求的响应系统还可以包括客户端,其中,该客户端用于接收用户通过点击、触摸、滑动等方式输入的数据处理请求,并将该数据处理请求发送至云端服务器,该数据处理请求可具体为数据同步和/或数据传输和/或数据备份请求等等;或者,接收云端服务器返回的请求响应结果,等等。As shown in FIG. 1 , the system for responding to the data request may further include a client, where the client is configured to receive the data processing request input by the user through clicking, touching, sliding, etc., and send the data processing request to the cloud For the server, the data processing request may specifically be a data synchronization and/or data transmission and/or data backup request, etc.; or, receive a request response result returned by the cloud server, and so on.

另外,该数据请求的响应系统还可以包括存储器,其中该存储器存储有预设处理策略,以在云端服务器获取到请求数据的属性信息后,供云端服务器调用,以对数据处理请求进行响应。In addition, the data request response system may further include a memory, wherein the memory stores a preset processing strategy, so that after the cloud server obtains the attribute information of the requested data, the cloud server can call it to respond to the data processing request.

在本实施例中,将从数据请求的响应装置的角度进行描述,该数据请求的响应装置具体可以集成在服务器或网关等网络设备中,如云端服务器等等。In this embodiment, description will be made from the perspective of a device for responding to a data request. The device for responding to a data request may specifically be integrated in a network device such as a server or a gateway, such as a cloud server and the like.

一种数据请求的响应方法,包括:接收客户端发送的至少一个数据处理请求;获取数据处理请求指示的请求数据的属性信息;按照预设处理策略,根据请求数据的属性信息,确定相应的请求数据的处理次序;基于请求数据的处理次序响应相应的数据处理请求。A method for responding to a data request, comprising: receiving at least one data processing request sent by a client; acquiring attribute information of the request data indicated by the data processing request; and determining a corresponding request according to a preset processing strategy and the attribute information of the request data Data processing order; respond to the corresponding data processing request based on the processing order of the requested data.

请参阅图2,图2是本发明实施例提供的数据请求的响应方法的流程示意图。所述方法包括:Please refer to FIG. 2, which is a schematic flowchart of a method for responding to a data request provided by an embodiment of the present invention. The method includes:

在步骤S101中,接收客户端发送的至少一个数据处理请求。In step S101, at least one data processing request sent by the client is received.

比如,客户端可预先设置有输入接口,如用于数据处理的终端应用APP(Application),或者输入控件,用户可通过点击、触摸、滑动等方式触发该输入接口,以向客户端输入数据处理请求,且由客户端将该数据处理请求发送至云端服务器。For example, the client can be preset with an input interface, such as a terminal application APP (Application) for data processing, or an input control, and the user can trigger the input interface by clicking, touching, sliding, etc. to input data processing to the client request, and the client sends the data processing request to the cloud server.

可以理解的是,该至少一个数据处理请求可以是由多个客户端向云端服务器发送的数据处理请求,也可以由一个客户端向云端服务器发送的多个数据处理请求,此处不作具体限定。It can be understood that the at least one data processing request may be a data processing request sent by multiple clients to the cloud server, or may be multiple data processing requests sent by one client to the cloud server, which is not specifically limited here.

在某些实施方式中,接收客户端发送的至少一个数据处理请求(即步骤S101)可具体包括:In some embodiments, receiving at least one data processing request sent by the client (ie, step S101 ) may specifically include:

在云端服务器重新启动后,接收重新启动期间客户端发送的至少一个数据处理请求。After the cloud server is restarted, at least one data processing request sent by the client during the restart is received.

其中,当云端服务器宕机、或者停电、或者业务调整时,均需要重新启动服务器,在这段期间内,客户端可能会向云端服务器发送多个数据处理请求;因此,在云端服务器重新启动后,需要接收重新启动期间客户端发送的多个数据处理请求。Among them, when the cloud server is down, or the power is cut off, or the business is adjusted, the server needs to be restarted. During this period, the client may send multiple data processing requests to the cloud server; therefore, after the cloud server restarts , needs to receive multiple data processing requests sent by the client during the restart.

在某些实施方式中,接收客户端发送的至少一个数据处理请求(即步骤S101)之后,还可以包括:In some embodiments, after receiving at least one data processing request sent by the client (ie, step S101 ), the method may further include:

(1)计算数据处理请求的数量。(1) Calculate the number of data processing requests.

(2)当确定出数据处理请求的数量大于预设阈值时,触发执行获取数据处理请求指示的请求数据的属性信息。(2) When it is determined that the number of data processing requests is greater than a preset threshold, trigger execution to obtain attribute information of the request data indicated by the data processing request.

也就是说,云端服务器在确定接收到的数据处理请求的数量大于预设阈值时,才会根据请求数据的属性信息确定数据处理请求响应的顺序。That is to say, when the cloud server determines that the number of received data processing requests is greater than the preset threshold, it will determine the sequence of the data processing request responses according to the attribute information of the requested data.

在步骤S102中,获取数据处理请求指示的请求数据的属性信息。In step S102, attribute information of the request data indicated by the data processing request is acquired.

在某些实施方式中,获取所述数据处理请求指示的请求数据的属性信息(即步骤S102)可以具体包括:In some embodiments, acquiring the attribute information of the request data indicated by the data processing request (ie, step S102 ) may specifically include:

(a)获取数据处理请求指示的请求数据的数据量大小和/或数据类型。(a) Obtain the data size and/or data type of the requested data indicated by the data processing request.

(b)将请求数据的数据量大小和/或数据类型确定为请求数据的属性信息。(b) Determining the data size and/or data type of the request data as attribute information of the request data.

可以理解的是,本发明实施例中请求数据的属性信息可以包括数据量大小、数据类型、数据来源以及数据上传时间等等信息中的一个或多个组合,此处不作具体限定。It can be understood that the attribute information of the requested data in this embodiment of the present invention may include one or more combinations of information such as data size, data type, data source, and data upload time, which are not specifically limited here.

在步骤S103中,按照预设处理策略,根据所述请求数据的属性信息,确定相应的请求数据的处理次序。In step S103, according to the preset processing strategy, according to the attribute information of the request data, the processing order of the corresponding request data is determined.

其中,云端服务器按照预设处理策略,根据所述请求数据的属性信息,确定相应的请求数据的处理次序的实现方式有很多,比如当属性信息数据量大小和/或数据类型时,可具体包括:Among them, there are many implementation ways for the cloud server to determine the processing order of the corresponding request data according to the attribute information of the request data according to the preset processing strategy. :

(A)确定云端服务器的最大吞吐量。(A) Determine the maximum throughput of the cloud server.

(B)按照预设处理策略,结合所述云端服务器的最大吞吐量,以及数据量大小和/或数据类型,确定相应的请求数据的处理次序。(B) According to the preset processing strategy, in combination with the maximum throughput of the cloud server, and the data size and/or data type, determine the processing order of the corresponding request data.

比如,云端服务器最大吞吐量为1M,若预设处理策略设定优先处理数据量较小的数据,则云端服务器结合该预设处理策略、各请求数据的数据量大小以及最大吞吐量,确定数据量较小的数据的优先级较高,数据量较大的数据的优先级较低,优先级高的先执行。For example, the maximum throughput of the cloud server is 1M. If the preset processing strategy is set to preferentially process data with a smaller amount of data, the cloud server determines the data based on the preset processing strategy, the data amount of each requested data, and the maximum throughput. Data with a smaller amount of data has a higher priority, data with a larger amount of data has a lower priority, and data with a higher priority is executed first.

在步骤S104中,基于请求数据的处理次序响应相应的数据处理请求。In step S104, the corresponding data processing request is responded to based on the processing order of the requested data.

比如,云端服务器根据步骤S103确定好的请求数据的处理次序,依次对相应的数据处理请求进行响应,执行相应的处理操作,如进行数据同步、数据传输、数据备份等等。For example, the cloud server sequentially responds to the corresponding data processing requests according to the processing order of the requested data determined in step S103, and performs corresponding processing operations, such as data synchronization, data transmission, data backup, and the like.

由上述可知,本实施例提供的数据请求的响应方法,在云端服务器接收客户端发送的多个数据处理请求时,根据数据处理请求指示的请求数据的属性信息,然后确定处理次序,并基于该处理次序响应相应的数据处理请求;即根据请求数据的属性信息对请求数据设置处理优先级,避免云端服务器需要短时间内处理大量的数据处理请求,降低云端服务器负荷,有效提高服务器处理数据处理请求的效率,提高对客户端数据的响应速度。It can be seen from the above that the response method for data requests provided in this embodiment, when the cloud server receives multiple data processing requests sent by the client, determines the processing order according to the attribute information of the requested data indicated by the data processing request, and based on the data processing request. The processing order responds to the corresponding data processing request; that is, the processing priority is set for the requested data according to the attribute information of the requested data, so as to avoid the need for the cloud server to process a large number of data processing requests in a short time, reduce the load of the cloud server, and effectively improve the server's processing of data processing requests. efficiency and improve the response speed to client data.

根据上述实施例所描述的方法,以下将举例作进一步详细说明。According to the methods described in the above embodiments, the following examples will be used for further detailed description.

由于当云端服务器宕机后再次启动,云端服务器需要短时间内处理多个客户端的数据处理请求,受限于云端服务器负荷,就有可能导致部分请求响应缓慢。其中,该数据处理请求可具体为数据同步和/或数据传输和/或数据备份请求等等。基于此,本实施例提供一种云端服务器宕机重启后的数据处理策略,可以有效提高服务器重启后处理数据请求的效率,提高对客户端数据的响应能力。Because when the cloud server is restarted after being down, the cloud server needs to process data processing requests from multiple clients in a short period of time. Due to the load on the cloud server, it may cause slow responses to some requests. The data processing request may specifically be a data synchronization and/or data transmission and/or data backup request, and so on. Based on this, this embodiment provides a data processing strategy after a cloud server is restarted after a shutdown, which can effectively improve the efficiency of processing data requests after the server is restarted, and improve the responsiveness to client data.

请参阅图3,图3为本发明实施例提供的数据请求的响应方法的另一流程示意图。所述方法主要包括:Please refer to FIG. 3 , which is another schematic flowchart of a method for responding to a data request according to an embodiment of the present invention. The method mainly includes:

在步骤S201中,在云端服务器重新启动后,接收重新启动期间客户端发送的多个数据处理请求。In step S201, after the cloud server is restarted, multiple data processing requests sent by the client during the restart are received.

比如,当云端服务器宕机、或者停电、或者业务调整时,均需要重新启动服务器,在这段期间内,客户端可能会向云端服务器发送多个数据处理请求;因此,在云端服务器重新启动后,可能接收到重新启动期间客户端发送的大量数据处理请求。For example, when the cloud server is down, or the power is cut off, or the business is adjusted, the server needs to be restarted. During this period, the client may send multiple data processing requests to the cloud server; therefore, after the cloud server restarts , may receive a large number of data processing requests sent by the client during the restart.

又比如,在云端服务器重启期间,接收到多个客户端向云端服务器发送的数据处理请求,也可以接收到一个客户端向云端服务器发送的多个数据处理请求。For another example, during the restart of the cloud server, data processing requests sent by multiple clients to the cloud server may be received, and multiple data processing requests sent by one client to the cloud server may also be received.

某些实施方式中,可优选的,如果云端服务器在确定接收到的数据处理请求的数量大于预设阈值时,才会触发数据处理策略进行响应;否则,可按照数据处理请求的时间先后顺序来进行响应。In some embodiments, it may be preferable to trigger the data processing strategy to respond if the cloud server determines that the number of received data processing requests is greater than a preset threshold; otherwise, the data processing requests may be processed in chronological order. respond.

在步骤S202中,确定该数据处理请求指示的请求数据的数据量大小和数据类型。In step S202, the data size and data type of the requested data indicated by the data processing request are determined.

比如,根据预先设定的处理策略,根据数据处理请求指示的请求数据的数据量大小和数据类型,对请求数据进行分类,如可以先响应数据量较小的设置开关数据,再响应数据量比较大的短信同步数据等等。For example, according to the preset processing strategy, according to the data size and data type of the requested data indicated by the data processing request, the request data can be classified. Large SMS sync data and more.

可以理解的是,设定一数据量阈值,用于界定请求数据为大数据量还是小数据量,如果小于该数据量阈值,则可视为数据量较小的请求数据,如果大于该数据量阈值,则可视为数据量较大的请求数据。如数据量大小在0至30K的可以视为数据量较小的请求数据,数据量大小大于30K的可以视为数据量较大的请求数据。It can be understood that a data volume threshold is set to define whether the requested data is a large data volume or a small data volume. If it is less than the data volume threshold, it can be regarded as request data with a small data volume. If it is greater than the data volume threshold, it can be regarded as request data with a large amount of data. For example, if the data size is between 0 and 30K, it can be regarded as the request data with a small amount of data, and if the data size is larger than 30K, it can be regarded as the request data with a large amount of data.

进一步的,也可以根据数据类型来表征数据大小,如设置开关数据、设置标识数据等可认为是数据量较小的请求数据;短信同步数据、信息备份数据等可认为是数据量较大的请求数据,此处不作具体限定。Further, the data size can also be characterized according to the data type, such as setting switch data, setting identification data, etc., can be considered as request data with a small amount of data; SMS synchronization data, information backup data, etc. can be considered as requests with a large amount of data. data, which is not specifically limited here.

在步骤S203中,确定云端服务器的最大吞吐量。In step S203, the maximum throughput of the cloud server is determined.

在步骤S204中,按照预先设置的数据量较小的数据处理请求优先被响应的处理策略,结合云端服务器的最大吞吐量,以及请求数据的数据量大小和数据类型,确定相应的请求数据的处理次序。In step S204, according to the preset processing policy that the data processing request with the smaller amount of data is preferentially responded to, combined with the maximum throughput of the cloud server, and the data size and data type of the requested data, determine the corresponding processing of the requested data order.

在步骤S205中,基于请求数据的处理次序响应相应的数据处理请求。In step S205, the corresponding data processing request is responded to based on the processing order of the requested data.

比如,如果按照预先设置的数据量较小的数据处理请求优先被响应的处理策略,这样的结果就是,云端服务器重启后,客户端数据量较小的数据处理请求优先被响应,这样就可以在传输相同数据量的时候响应更多的客户端请求。For example, if the pre-set processing strategy is that data processing requests with a smaller amount of data are given priority to be responded to, the result is that after the cloud server restarts, data processing requests with a smaller amount of data from the client are given priority to be responded to, so that you can Respond to more client requests while transferring the same amount of data.

可具体的,比如,云端服务器最大吞吐为1M,重新启动后收到10个100K的数据处理请求和100个10K的数据处理请求,根据预先设置的数据量较小的数据处理请求优先被响应的这个处理策略,云端服务器会优先响应这100个10K数据的客户端请求,再响应10个100K数据的客户端请求,也就是说重启后第一时间响应了100个客户端请求,相比于10个客户端请求,大大提高了对客户端响应的效率,提高了用户体验和产品竞争力。Specifically, for example, the maximum throughput of the cloud server is 1M. After restarting, it receives 10 100K data processing requests and 100 10K data processing requests. According to the preset data processing request with a smaller amount of data, the data processing request will be responded first. With this processing strategy, the cloud server will respond to the 100 client requests with 10K data first, and then respond to 10 client requests with 100K data, that is to say, it will respond to 100 client requests immediately after restarting, compared to 10 A client request greatly improves the efficiency of the client response, and improves the user experience and product competitiveness.

可以理解的是,在该实施例中没有详述的部分,可以参见上文针对数据请求的响应方法的详细描述,此处不再赘述。It can be understood that, for parts that are not described in detail in this embodiment, reference may be made to the detailed description of the response method for the data request above, and details are not repeated here.

由上述可知,本实施例提供的数据请求的响应方法,在云端服务器接收客户端发送的多个数据处理请求时,根据数据处理请求指示的请求数据的数据量大小和数据类型,然后确定处理次序,并基于该处理次序响应相应的数据处理请求;即根据请求数据的属性信息对请求数据设置处理优先级,避免云端服务器需要短时间内处理大量的数据处理请求,降低云端服务器负荷,也就是说,最大程度响应更多客户端请求,大大提高了对客户端响应的效率,提高了用户体验和产品竞争力,可以有效的提高云服务重启后处理客户端数据请求的效率,最大化提高响应速度。As can be seen from the above, the response method for data requests provided in this embodiment, when the cloud server receives multiple data processing requests sent by the client, determines the processing order according to the data size and data type of the requested data indicated by the data processing request. , and respond to the corresponding data processing request based on the processing order; that is, set the processing priority of the request data according to the attribute information of the request data, so as to avoid the cloud server needing to process a large number of data processing requests in a short time, and reduce the load of the cloud server, that is to say , respond to more client requests to the greatest extent, greatly improve the efficiency of client response, improve user experience and product competitiveness, can effectively improve the efficiency of processing client data requests after the cloud service is restarted, and maximize the response speed .

为便于更好的实施本发明实施例提供的数据请求的响应方法,本发明实施例还提供一种基于上述数据请求的响应方法的装置以及系统。其中名词的含义与上述数据请求的响应的方法中相同,具体实现细节可以参考方法实施例中的说明。In order to better implement the method for responding to a data request provided by the embodiment of the present invention, the embodiment of the present invention further provides an apparatus and system based on the method for responding to the data request above. The meanings of the nouns are the same as those in the above method for responding to a data request, and for specific implementation details, please refer to the description in the method embodiment.

请参阅图4,图4为本发明实施例提供的数据请求的响应装置300的结构示意图,该数据请求的响应装置300主要包括接收单元301、获取单元302、确定单元303以及响应单元304。Please refer to FIG. 4 . FIG. 4 is a schematic structural diagram of a data request response apparatus 300 according to an embodiment of the present invention. The data request response apparatus 300 mainly includes a receiving unit 301 , an obtaining unit 302 , a determining unit 303 , and a responding unit 304 .

其中,接收单元301,用于接收客户端发送的至少一个数据处理请求。The receiving unit 301 is configured to receive at least one data processing request sent by the client.

比如,客户端可预先设置有输入接口,如用于数据处理的终端应用APP,或者输入控件,用户可通过点击、触摸、滑动等方式触发该输入接口,以向客户端输入数据处理请求,且由客户端将该数据处理请求发送至云端服务器。For example, the client may be preset with an input interface, such as a terminal application APP for data processing, or an input control. The user can trigger the input interface by clicking, touching, sliding, etc., to input a data processing request to the client, and The client sends the data processing request to the cloud server.

可以理解的是,该至少一个数据处理请求可以是由多个客户端向云端服务器发送的数据处理请求,也可以由一个客户端向云端服务器发送的多个数据处理请求,此处不作具体限定。It can be understood that the at least one data processing request may be a data processing request sent by multiple clients to the cloud server, or may be multiple data processing requests sent by one client to the cloud server, which is not specifically limited here.

在某些实施方式中,该接收单元301,可具体用于在云端服务器重新启动后,接收重新启动期间客户端发送的至少一个数据处理请求。In some embodiments, the receiving unit 301 may be specifically configured to receive at least one data processing request sent by the client during the restart after the cloud server is restarted.

其中,当云端服务器宕机、或者停电、或者业务调整时,均需要重新启动服务器,在这段期间内,客户端可能会向云端服务器发送多个数据处理请求;因此,在云端服务器重新启动后,需要接收重新启动期间客户端发送的多个数据处理请求。Among them, when the cloud server is down, or the power is cut off, or the business is adjusted, the server needs to be restarted. During this period, the client may send multiple data processing requests to the cloud server; therefore, after the cloud server restarts , needs to receive multiple data processing requests sent by the client during the restart.

获取单元302,用于获取所述数据处理请求指示的请求数据的属性信息;确定单元303,用于按照预设处理策略,根据所述请求数据的属性信息,确定相应的请求数据的处理次序。The obtaining unit 302 is configured to obtain attribute information of the request data indicated by the data processing request; the determining unit 303 is configured to determine the processing order of the corresponding request data according to the attribute information of the request data according to a preset processing strategy.

比如,若预设处理策略设定优先处理数据量较小的数据,则云端服务器结合该预设处理策略、各请求数据的数据量大小,确定数据量较小的数据的优先级较高,数据量较大的数据的优先级较低,优先级高的先执行。For example, if the preset processing strategy is set to preferentially process data with a smaller amount of data, the cloud server determines that data with a smaller amount of data has a higher priority based on the preset processing strategy and the data amount of each requested data. Data with a larger amount of data has a lower priority, and data with a higher priority is executed first.

响应单元304,用于基于所述请求数据的处理次序响应相应的数据处理请求。The response unit 304 is configured to respond to the corresponding data processing request based on the processing order of the requested data.

比如,云端服务器根据确定单元303确定好的请求数据的处理次序,依次对相应的数据处理请求进行响应,执行相应的处理操作,如进行数据同步、数据传输、数据备份等等。For example, the cloud server sequentially responds to the corresponding data processing requests according to the processing order of the requested data determined by the determining unit 303, and performs corresponding processing operations, such as data synchronization, data transmission, data backup, and the like.

请一并参阅图5,图5为本发明实施例提供的数据请求的响应装置400的结构示意图;其中,该获取单元302可以具体包括:Please also refer to FIG. 5. FIG. 5 is a schematic structural diagram of an apparatus 400 for responding to a data request according to an embodiment of the present invention; wherein, the obtaining unit 302 may specifically include:

获取子单元3021,用于获取所述数据处理请求指示的请求数据的数据量大小和/或数据类型。The obtaining subunit 3021 is configured to obtain the data size and/or data type of the requested data indicated by the data processing request.

第一确定子单元3022,用于将请求数据的数据量大小和/或数据类型确定为请求数据的属性信息。The first determination subunit 3022 is configured to determine the data size and/or data type of the requested data as attribute information of the requested data.

可以理解的是,本发明实施例中请求数据的属性信息可以包括数据量大小、数据类型、数据来源以及数据上传时间等等信息中的一个或多个组合,此处不作具体限定。It can be understood that the attribute information of the requested data in this embodiment of the present invention may include one or more combinations of information such as data size, data type, data source, and data upload time, which are not specifically limited here.

其中,比如当属性信息数据量大小和/或数据类型时,如图5所示,该确定单元303可以具体包括:Wherein, for example, when the attribute information data size and/or data type, as shown in FIG. 5 , the determining unit 303 may specifically include:

第二确定子单元3031,用于确定云端服务器的最大吞吐量。The second determination subunit 3031 is configured to determine the maximum throughput of the cloud server.

第三确定子单元3032,用于按照预设处理策略,结合所述云端服务器的最大吞吐量,以及数据量大小和/或数据类型,确定相应的请求数据的处理次序。The third determination subunit 3032 is configured to determine the processing order of the corresponding request data according to the preset processing strategy, in combination with the maximum throughput of the cloud server, and the size and/or data type of the data.

比如,云端服务器最大吞吐量为1M,若预设处理策略设定优先处理数据量较小的数据,则云端服务器结合该预设处理策略、各请求数据的数据量大小以及最大吞吐量,确定数据量较小的数据的优先级较高,数据量较大的数据的优先级较低,优先级高的先执行。For example, the maximum throughput of the cloud server is 1M. If the preset processing strategy is set to preferentially process data with a smaller amount of data, the cloud server determines the data based on the preset processing strategy, the data amount of each requested data, and the maximum throughput. Data with a smaller amount of data has a higher priority, data with a larger amount of data has a lower priority, and data with a higher priority is executed first.

如图5所示,在某些实施方式中,该数据请求的响应装置还可以包括:As shown in FIG. 5, in some embodiments, the device for responding to the data request may further include:

计算单元305,用于计算所述数据处理请求的数量。The calculation unit 305 is configured to calculate the number of the data processing requests.

触发单元306,用于当确定出所述数据处理请求的数量大于预设阈值时,触发获取单元302执行获取所述数据处理请求指示的请求数据的属性信息。The triggering unit 306 is configured to trigger the acquiring unit 302 to acquire attribute information of the request data indicated by the data processing request when it is determined that the number of the data processing requests is greater than a preset threshold.

也就是说,云端服务器在确定接收到的数据处理请求的数量大于预设阈值时,才会根据请求数据的属性信息确定数据处理请求响应的顺序。That is to say, when the cloud server determines that the number of received data processing requests is greater than the preset threshold, it will determine the sequence of the data processing request responses according to the attribute information of the requested data.

具体实施时,以上各个单元可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个单元的具体实施可参见前面的方法实施例,在此不再赘述。During specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.

该数据请求的响应装置具体可以集成在服务器或网关等网络设备中,如云端服务器等等。The device for responding to the data request may specifically be integrated in a network device such as a server or a gateway, such as a cloud server and the like.

由上述可知,本实施例提供的数据请求的响应装置,在云端服务器接收客户端发送的多个数据处理请求时,根据数据处理请求指示的请求数据的属性信息,然后确定处理次序,并基于该处理次序响应相应的数据处理请求;即根据请求数据的属性信息对请求数据设置处理优先级,避免云端服务器需要短时间内处理大量的数据处理请求,降低云端服务器负荷,有效提高服务器处理数据处理请求的效率,提高对客户端数据的响应速度。It can be seen from the above that, when the cloud server receives multiple data processing requests sent by the client, the device for responding to the data request provided in this embodiment determines the processing order according to the attribute information of the requested data indicated by the data processing request, and based on the data processing request. The processing order responds to the corresponding data processing request; that is, the processing priority is set for the requested data according to the attribute information of the requested data, so as to avoid the need for the cloud server to process a large number of data processing requests in a short time, reduce the load of the cloud server, and effectively improve the server's processing of data processing requests. efficiency and improve the response speed to client data.

另外,本发明还提供一种数据请求的响应系统,可参考如图1所示的数据请求的响应系统,包括云端服务器以及客户端,其中该云端服务器可以包括如上实施例所提供的任一数据请求的响应装置。In addition, the present invention also provides a system for responding to data requests. For reference, the system for responding to data requests as shown in FIG. 1 includes a cloud server and a client. The cloud server may include any data provided in the above embodiment. The device that responds to the request.

比如,该云端服务器主要用于接收客户端发送的至少一个数据处理请求,如可以由多个客户端向服务器发送数据处理请求,也可以由一个客户端向服务器发送多个数据处理请求,等等;然后,云端服务器获取数据处理请求指示的请求数据的属性信息,如请求数据的大小、以及请求数据的类型,等等;其后,按照预设处理策略,并根据请求数据的属性信息,确定出相应的请求数据的处理次序,即确定出请求数据的处理优先级;最后,基于请求数据的处理次序响应相应的数据处理请求,如进行数据同步、数据传输、数据备份等等。For example, the cloud server is mainly used to receive at least one data processing request sent by the client. For example, multiple clients can send data processing requests to the server, or one client can send multiple data processing requests to the server, etc. ; Then, the cloud server obtains the attribute information of the requested data indicated by the data processing request, such as the size of the requested data, and the type of the requested data, etc.; then, according to the preset processing strategy, and according to the attribute information of the requested data, determine The processing order of the corresponding request data is determined, that is, the processing priority of the requested data is determined; finally, based on the processing order of the requested data, the corresponding data processing request is responded to, such as data synchronization, data transmission, data backup and so on.

进一步的,该云端服务器在重新启动后,接收重新启动期间客户端发送的至少一个数据处理请求。之后,可以计算所述数据处理请求的数量;当确定出所述数据处理请求的数量大于预设阈值时,才触发执行获取所述数据处理请求指示的请求数据的属性信息。Further, after restarting, the cloud server receives at least one data processing request sent by the client during the restart. After that, the number of the data processing requests can be calculated; when it is determined that the number of the data processing requests is greater than a preset threshold, the execution of acquiring the attribute information of the request data indicated by the data processing request is triggered.

在某些实施方式中,云端服务器可以获取所述数据处理请求指示的请求数据的数据量大小和/或数据类型;将请求数据的数据量大小和/或数据类型确定为请求数据的属性信息;随后,按照预设处理策略,结合云端服务器的最大吞吐量,以及数据量大小和/或数据类型,确定相应的请求数据的处理次序。In some embodiments, the cloud server may obtain the data size and/or data type of the requested data indicated by the data processing request; determine the data size and/or data type of the requested data as attribute information of the requested data; Then, according to the preset processing strategy, in combination with the maximum throughput of the cloud server, and the size and/or data type of the data, the processing order of the corresponding request data is determined.

该数据请求的响应系统还可以包括客户端,其中,该客户端用于接收用户通过点击、触摸、滑动等方式输入的数据处理请求,并将该数据处理请求发送至云端服务器,该数据处理请求可具体为数据同步和/或数据传输和/或数据备份请求等等;或者,接收云端服务器返回的请求响应结果,等等。The system for responding to the data request may further include a client, where the client is configured to receive a data processing request input by the user through clicking, touching, sliding, etc., and send the data processing request to the cloud server, where the data processing request It may be specifically a request for data synchronization and/or data transmission and/or data backup, etc.; or, receiving a request response result returned by the cloud server, and so on.

可以理解的是,该数据请求的响应装置的结构以及功能实现可以参见上文针对数据请求的响应装置的详细描述,此处不再赘述。It can be understood that, for the structure and function implementation of the apparatus for responding to the data request, reference may be made to the detailed description of the apparatus for responding to the data request above, which will not be repeated here.

本发明实施例提供了一种服务器600,其中可以集成如上实施例所提供的任一数据请求的响应装置,参考图6,其示出了本发明实施例所涉及的服务器600的结构示意图,具体来讲:An embodiment of the present invention provides a server 600, in which a response device for any data request provided in the above embodiment can be integrated. Referring to FIG. 6, it shows a schematic structural diagram of the server 600 involved in the embodiment of the present invention. In terms of:

该服务器600可以包括一个或者一个以上处理核心的处理器601、一个或一个以上计算机可读存储介质的存储器602、射频(Radio Frequency,RF)电路603、电源604、输入单元605、以及显示单元606等部件。本领域技术人员可以理解,图6中示出的服务器结构并不构成对服务器的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:The server 600 may include a processor 601 of one or more processing cores, a memory 602 of one or more computer-readable storage media, a radio frequency (RF) circuit 603 , a power supply 604 , an input unit 605 , and a display unit 606 and other parts. Those skilled in the art can understand that the server structure shown in FIG. 6 does not constitute a limitation on the server, and may include more or less components than the one shown, or combine some components, or arrange different components. in:

处理器601是该服务器的控制中心,利用各种接口和线路连接整个服务器的各个部分,通过运行或执行存储在存储器602内的软件程序和/或模块,以及调用存储在存储器602内的数据,执行服务器的各种功能和处理数据,从而对服务器进行整体监控。可选的,处理器601可包括一个或多个处理核心;优选的,处理器601可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器601中。The processor 601 is the control center of the server, using various interfaces and lines to connect various parts of the entire server, by running or executing the software programs and/or modules stored in the memory 602, and calling the data stored in the memory 602, Execute various functions of the server and process data to monitor the server as a whole. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc. , the modem processor mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 601.

存储器602可用于存储软件程序以及模块,处理器601通过运行存储在存储器602的软件程序以及模块,从而执行各种功能应用以及数据处理。The memory 602 can be used to store software programs and modules, and the processor 601 executes various functional applications and data processing by running the software programs and modules stored in the memory 602 .

RF电路603可用于收发信息过程中,信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器601处理;另外,将涉及上行的数据发送给基站。The RF circuit 603 can be used for signal reception and transmission in the process of sending and receiving information. In particular, after receiving the downlink information of the base station, it is handed over to one or more processors 601 for processing; in addition, it transmits uplink data to the base station.

服务器还包括给各个部件供电的电源604(比如电池),优选的,电源可以通过电源管理系统与处理器601逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源604还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The server also includes a power supply 604 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 601 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. Power source 604 may also include one or more DC or AC power sources, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and any other components.

该服务器还可包括输入单元605,该输入单元605可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。The server may also include an input unit 605 that may be used to receive input numerical or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

该服务器还可包括显示单元606,该显示单元606可用于显示由用户输入的信息或提供给用户的信息以及服务器的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元606可包括显示面板,可选的,可以采用液晶显示器(LCD,Liquid Crystal Display)、有机发光二极管(OLED,Organic Light-EmittingDiode)等形式来配置显示面板。The server may also include a display unit 606, which may be used to display information input by or provided to the user and various graphical user interfaces of the server, which may consist of graphics, text, icons, video, and any combination thereof. The display unit 606 may include a display panel, and optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode), and the like.

具体在本实施例中,服务器中的处理器601会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器602中,并由处理器601来运行存储在存储器602中的应用程序,从而实现各种功能,如下:Specifically, in this embodiment, the processor 601 in the server loads the executable files corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 601 executes them and stores them in the memory 602 to realize various functions, as follows:

接收客户端发送的至少一个数据处理请求,如可以由多个客户端向服务器发送数据处理请求,也可以由一个客户端向服务器发送多个数据处理请求,等等;然后,云端服务器获取数据处理请求指示的请求数据的属性信息,如请求数据的大小、以及请求数据的类型,等等;其后,按照预设处理策略,并根据请求数据的属性信息,确定出相应的请求数据的处理次序,即确定出请求数据的处理优先级;最后,基于请求数据的处理次序响应相应的数据处理请求,如进行数据同步、数据传输、数据备份等等。Receive at least one data processing request sent by the client, for example, multiple clients can send data processing requests to the server, or one client can send multiple data processing requests to the server, etc.; then, the cloud server obtains data processing requests The attribute information of the request data indicated by the request, such as the size of the request data and the type of the request data, etc.; then, according to the preset processing strategy, and according to the attribute information of the request data, determine the processing order of the corresponding request data , that is, determine the processing priority of the requested data; finally, respond to the corresponding data processing request based on the processing order of the requested data, such as data synchronization, data transmission, data backup and so on.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对数据请求的响应方法的详细描述,此处不再赘述。In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the detailed description of the response method for a data request above, which will not be repeated here.

本发明实施例提供的所述数据请求的响应装置,譬如为计算机、平板电脑、具有触摸功能的手机等等,所述数据请求的响应装置与上文实施例中的数据请求的响应方法属于同一构思,在所述数据请求的响应装置上可以运行所述数据请求的响应方法实施例中提供的任一方法,其具体实现过程详见所述数据请求的响应方法实施例,此处不再赘述。The apparatus for responding to the data request provided by the embodiment of the present invention is, for example, a computer, a tablet computer, a mobile phone with a touch function, etc. The apparatus for responding to the data request is the same as the method for responding to the data request in the above embodiment. The idea is that any method provided in the data request response method embodiment can be executed on the data request response device. For the specific implementation process, please refer to the data request response method embodiment, which will not be repeated here. .

需要说明的是,对本发明所述数据请求的响应方法而言,本领域普通测试人员可以理解实现本发明实施例所述数据请求的响应方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在终端的存储器中,并被该终端内的至少一个处理器执行,在执行过程中可包括如所述数据请求的响应方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)等。It should be noted that, for the data request response method according to the present invention, ordinary testers in the art can understand that all or part of the process of implementing the data request response method according to the embodiment of the present invention can be controlled by a computer program. hardware, the computer program can be stored in a computer-readable storage medium, such as in the memory of the terminal, and executed by at least one processor in the terminal, and the execution process can include as described A flow of an embodiment of a data request response method. The storage medium may be a magnetic disk, an optical disk, a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), and the like.

对本发明实施例的所述数据请求的响应装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the device for responding to the data request according to the embodiment of the present invention, each functional module may be integrated in a processing chip, or each module may exist physically alone, or two or more modules may be integrated in one module. . The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, etc. .

以上对本发明实施例所提供的一种数据请求的响应方法、装置及系统进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A method, device, and system for responding to a data request provided by the embodiments of the present invention have been described above in detail. The principles and implementations of the present invention are described with specific examples in this paper. The descriptions of the above embodiments are only used for Help to understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. It should be understood as a limitation of the present invention.

Claims (6)

1. a kind of response method of request of data characterized by comprising
Beyond the clouds after server restarting, at least one data processing request that client is sent during restarting is received;
The quantity for calculating the data processing request, when the quantity for determining the data processing request is greater than preset threshold, Obtain the data volume size and data type of the request data of the data processing request instruction;
If data volume size is less than data-quantity threshold or data type is switch data or setting mark data, by number of request According to being determined as the lesser request data of data volume;
If it is short message synchrodata or information back-up data that data volume size, which is greater than data-quantity threshold or data type, will ask Data are asked to be determined as the biggish request data of data volume;
According to the processing strategie that the lesser data processing request of pre-set data volume is preferentially responded, corresponding request is determined The processing order of data;
Processing order based on the request data responds corresponding data processing request;
When determining the quantity of the data processing request no more than preset threshold, according to the time of the data processing request Sequencing is responded.
2. the response method of request of data according to claim 1, which is characterized in that described according to pre-set data The processing strategie that lesser data processing request is preferentially responded is measured, determines the processing order of corresponding request data, comprising:
Determine the maximum throughput of cloud server;
According to the processing strategie that the lesser data processing request of pre-set data volume is preferentially responded, taken in conjunction with the cloud The maximum throughput of business device, determines the processing order of corresponding request data.
3. a kind of responding device of request of data characterized by comprising
Receiving unit, at least one that client is sent after the restarting of server beyond the clouds, during receiving restarting Data processing request;
Computing unit, for calculating the quantity of the data processing request;
Acquiring unit, for obtaining at the data when the quantity for determining the data processing request is greater than preset threshold The data volume size and data type of the request data of reason request instruction;If data volume size is less than data-quantity threshold or data Type is switch data or setting mark data, then request data is determined as the lesser request data of data volume;If data volume It is short message synchrodata or information back-up data that size, which is greater than data-quantity threshold or data type, then is determined as request data The biggish request data of data volume;
Determination unit, the processing strategie for preferentially being responded according to the lesser data processing request of pre-set data volume, Determine the processing order of corresponding request data;
Response unit responds corresponding data processing request for the processing order based on the request data.
4. the responding device of request of data according to claim 3, which is characterized in that the determination unit includes:
Second determines subelement, for determining the maximum throughput of cloud server;
Third determines subelement, the processing for preferentially being responded according to the lesser data processing request of pre-set data volume Strategy determines the processing order of corresponding request data in conjunction with the maximum throughput of the cloud server.
5. a kind of response system of request of data, including cloud server and at least one client, which is characterized in that described Cloud server is the responding device of the described in any item request of data of claim 3 to 4;
The client is used for, and Xiang Suoshu cloud server sends data processing request.
6. a kind of computer readable storage medium, is stored with computer program, wherein the computer program makes computer Execute such as the described in any item methods of claim 1 to 2.
CN201610942148.6A 2016-10-25 2016-10-25 Data request response method, device and system Active CN106534281B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610942148.6A CN106534281B (en) 2016-10-25 2016-10-25 Data request response method, device and system
PCT/CN2017/093048 WO2018076812A1 (en) 2016-10-25 2017-07-14 Data request response method and device, storage medium, server and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610942148.6A CN106534281B (en) 2016-10-25 2016-10-25 Data request response method, device and system

Publications (2)

Publication Number Publication Date
CN106534281A CN106534281A (en) 2017-03-22
CN106534281B true CN106534281B (en) 2019-09-24

Family

ID=58293176

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610942148.6A Active CN106534281B (en) 2016-10-25 2016-10-25 Data request response method, device and system

Country Status (2)

Country Link
CN (1) CN106534281B (en)
WO (1) WO2018076812A1 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534281B (en) * 2016-10-25 2019-09-24 Oppo广东移动通信有限公司 Data request response method, device and system
CN108287706B (en) * 2017-05-10 2021-09-14 腾讯科技(深圳)有限公司 Data processing method and device
CN109412972A (en) * 2017-08-17 2019-03-01 阿里巴巴集团控股有限公司 A kind of data reordering method, device and node server
CN108804681B (en) * 2018-06-12 2021-06-08 北京奇虎科技有限公司 A kind of data adaptive transmission method, device and computer storage medium
CN109067855A (en) * 2018-07-17 2018-12-21 中国联合网络通信集团有限公司 Service request processing method and system, agent node
CN109194582A (en) * 2018-07-27 2019-01-11 阿里巴巴集团控股有限公司 Data monitoring method, device, electronic equipment and computer readable storage medium
CN111385125B (en) * 2018-12-29 2022-05-03 Tcl科技集团股份有限公司 Server dynamic control method and server
CN111193775B (en) * 2019-12-10 2022-07-15 商客通尚景信息技术江苏有限公司 Optimization method for mobile terminal network request
CN113806070B (en) * 2021-08-10 2022-10-21 中标慧安信息技术股份有限公司 Data management method and device for edge computing and cloud computing
CN116347511A (en) * 2023-05-29 2023-06-27 泉州维盾电气有限公司 Data communication method and related equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1349339A2 (en) * 2002-03-26 2003-10-01 Hitachi, Ltd. Data relaying apparatus and system using the same
CN101227428A (en) * 2008-01-30 2008-07-23 中兴通讯股份有限公司 An application server and its remote control method
CN101968750A (en) * 2010-10-15 2011-02-09 珠海举天软件科技有限公司 Computer system and working method thereof
CN102546590A (en) * 2010-12-02 2012-07-04 瑞科网信科技有限公司 System and method for distributing application traffic to servers based on dynamic service response time
CN103873499A (en) * 2012-12-12 2014-06-18 腾讯科技(深圳)有限公司 Data acquisition method and device
CN104750690A (en) * 2013-12-25 2015-07-01 中国移动通信集团公司 Query processing method, device and system
CN105007312A (en) * 2015-07-03 2015-10-28 叶秀兰 Method and system for controlling adaptive load-balancing of cloud computing server

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140200947A1 (en) * 2013-01-15 2014-07-17 Xerox Corporation Methods and systems for regulating service layer agreements for multiple cloud service requests
CN106534281B (en) * 2016-10-25 2019-09-24 Oppo广东移动通信有限公司 Data request response method, device and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1349339A2 (en) * 2002-03-26 2003-10-01 Hitachi, Ltd. Data relaying apparatus and system using the same
CN101227428A (en) * 2008-01-30 2008-07-23 中兴通讯股份有限公司 An application server and its remote control method
CN101968750A (en) * 2010-10-15 2011-02-09 珠海举天软件科技有限公司 Computer system and working method thereof
CN102546590A (en) * 2010-12-02 2012-07-04 瑞科网信科技有限公司 System and method for distributing application traffic to servers based on dynamic service response time
CN103873499A (en) * 2012-12-12 2014-06-18 腾讯科技(深圳)有限公司 Data acquisition method and device
CN104750690A (en) * 2013-12-25 2015-07-01 中国移动通信集团公司 Query processing method, device and system
CN105007312A (en) * 2015-07-03 2015-10-28 叶秀兰 Method and system for controlling adaptive load-balancing of cloud computing server

Also Published As

Publication number Publication date
CN106534281A (en) 2017-03-22
WO2018076812A1 (en) 2018-05-03

Similar Documents

Publication Publication Date Title
CN106534281B (en) Data request response method, device and system
CN106357811B (en) Method, device and system for deleting backup data
CN106502837A (en) Method, device and system for data backup
CN106301968B (en) Terminal data processing method, device and system
CN106412093B (en) Method, device and system for uploading data
EP3531290A1 (en) Data backup method, apparatus, electronic device, storage medium, and system
WO2015135328A1 (en) Virtual machine migration control method and apparatus
CN110177028A (en) Distributed health examination method and device
WO2023109138A1 (en) Method and apparatus for starting android application in linux system, and electronic device
CN106412091A (en) Data transmission control method, device and system
CN106487911A (en) A data synchronization method, device and system
CN108039963B (en) Container configuration method and device and storage medium
CN106502840B (en) Data backup method, device and system
CN107544842A (en) Application program processing method and device, computer equipment, storage medium
CN107562539A (en) Applied program processing method and device, computer equipment, storage medium
CN112181942B (en) Time series database system and data processing method and device
CN106528335A (en) A data backup method, device and terminal
CN106411920A (en) Data sharing method and device
CN107786424A (en) Audio/video communication method, terminal and server
WO2018086454A1 (en) Page data processing method and device
CN113014608A (en) Flow distribution control method and device, electronic equipment and storage medium
CN113609107A (en) Database management method and device, electronic equipment and storage medium
CN105893134A (en) Information processing method and electronic equipment
CN106550032A (en) A data backup method, device and system
CN107688498A (en) Applied program processing method and device, computer equipment, storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant