CN115604282A - Resource data processing method and device, electronic equipment, storage medium - Google Patents
Resource data processing method and device, electronic equipment, storage medium Download PDFInfo
- Publication number
- CN115604282A CN115604282A CN202211250535.5A CN202211250535A CN115604282A CN 115604282 A CN115604282 A CN 115604282A CN 202211250535 A CN202211250535 A CN 202211250535A CN 115604282 A CN115604282 A CN 115604282A
- Authority
- CN
- China
- Prior art keywords
- resource
- data
- resource request
- processing
- background
- 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.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title abstract description 19
- 238000012545 processing Methods 0.000 claims abstract description 152
- 238000000034 method Methods 0.000 claims abstract description 48
- 239000003999 initiator Substances 0.000 claims abstract description 16
- 230000006835 compression Effects 0.000 claims description 9
- 238000007906 compression Methods 0.000 claims description 9
- 238000001514 detection method Methods 0.000 claims description 9
- 238000004422 calculation algorithm Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 abstract description 15
- 238000012544 monitoring process Methods 0.000 abstract description 5
- 238000004590 computer program Methods 0.000 description 21
- 238000010586 diagram Methods 0.000 description 13
- 230000006870 function Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000012384 transportation and delivery Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000013523 data management Methods 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1074—Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
- H04L67/1078—Resource delivery mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/04—Protocols for data compression, e.g. ROHC
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本申请公开了一种资源数据的处理方法及装置、电子设备、存储介质,该方法包括:若接收到的资源请求所请求的数据量超过预设数量阈值,则获取后台针对处理任务的资源使用数据;根据资源使用数据,检测后台处理任务的资源与资源请求所需资源的关系;若关系表征后台处理任务的资源小于资源请求所需资源,则对资源请求对应的任务进行分批次处理,得到多个处理文件并发送至资源请求对应的发起方。本申请针对请求数据量超过预设数量阈值的资源请求,通过实时监听后台的资源使用数据,对资源请求对应的任务进行分批次处理,保证了所请求数据的完整性,同时避免了后台因加载大量数据导致资源溢出,从而影响系统稳定性的情况。
The present application discloses a resource data processing method and device, electronic equipment, and a storage medium. The method includes: if the amount of data requested by the received resource request exceeds a preset quantity threshold, obtaining the resource usage of the processing task in the background Data; according to the resource usage data, detect the relationship between the resources of the background processing task and the resources required by the resource request; if the relationship indicates that the resources of the background processing task are less than the resources required by the resource request, the tasks corresponding to the resource request are processed in batches, Get multiple processing files and send them to the initiator corresponding to the resource request. For resource requests whose requested data volume exceeds the preset quantity threshold, this application processes the tasks corresponding to the resource requests in batches by monitoring the resource usage data in the background in real time, ensuring the integrity of the requested data and avoiding background problems. Loading a large amount of data leads to resource overflow, which affects system stability.
Description
技术领域technical field
本申请涉及数据处理技术领域,尤其涉及一种资源数据的处理方法及装置、电子设备、存储介质。The present application relates to the technical field of data processing, and in particular to a resource data processing method and device, electronic equipment, and a storage medium.
背景技术Background technique
在大数据管理平台中,常常需要基于资源请求进行不同的数据导出,以此实现双向通信。而当资源请求所请求导出的是大批量数据时,后台需消耗长时间计算和占用大量内存资源,造成用户长时间等待甚至超时,大量加载数据到内存还会导致内存溢出,导致系统性能不稳定。In the big data management platform, it is often necessary to export different data based on resource requests to achieve two-way communication. However, when the resource request requests to export a large amount of data, the background needs to consume a long time to calculate and occupy a large amount of memory resources, causing the user to wait for a long time or even time out, and loading a large amount of data into the memory will also cause memory overflow, resulting in unstable system performance .
发明内容Contents of the invention
为解决上述技术问题,本申请的实施例提供了一种资源数据的处理方法及装置、电子设备、计算机可读存储介质、计算机程序产品。In order to solve the above technical problems, the embodiments of the present application provide a method and device for processing resource data, electronic equipment, a computer-readable storage medium, and a computer program product.
根据本申请实施例的一个方面,提供了一种资源数据的处理方法,包括:According to an aspect of an embodiment of the present application, a method for processing resource data is provided, including:
若接收到的资源请求所请求的数据量超过预设数量阈值,则获取后台针对处理任务的资源使用数据;根据所述资源使用数据,检测所述后台处理任务的资源与所述资源请求所需资源的关系;若所述关系表征所述后台处理任务的资源小于所述资源请求所需资源,则对所述资源请求对应的任务进行分批次处理,得到多个处理文件;将所述多个处理文件发送至所述资源请求对应的发起方。If the amount of data requested by the received resource request exceeds the preset quantity threshold, obtain the background resource usage data for the processing task; according to the resource usage data, detect the resources required by the background processing task and the resource request The relationship between resources; if the relationship indicates that the resources of the background processing task are less than the resources required by the resource request, then the tasks corresponding to the resource request are processed in batches to obtain multiple processing files; the multiple processing files are obtained A processing file is sent to the originator corresponding to the resource request.
根据本申请实施例的一个方面,一种资源数据的处理装置,包括:获取单元,用于若接收到的资源请求所请求的数据量超过预设数量阈值,则获取后台针对处理任务的资源使用数据;检测单元,用于根据所述资源使用数据,检测所述后台处理任务的资源与所述资源请求所需资源的关系;分批单元,用于若所述关系表征所述后台处理任务的资源小于所述资源请求所需资源,则对所述资源请求对应的任务进行分批次处理,得到多个处理文件;反馈单元,用于将所述多个处理文件发送至所述资源请求对应的发起方。According to an aspect of the embodiment of the present application, a device for processing resource data includes: an acquisition unit, configured to acquire background resource usage for processing tasks if the amount of data requested by the received resource request exceeds a preset quantity threshold data; a detection unit, configured to detect the relationship between the resources of the background processing task and the resources required by the resource request according to the resource usage data; a batching unit, configured to if the relationship represents the background processing task If the resource is less than the resources required by the resource request, the tasks corresponding to the resource request are processed in batches to obtain multiple processing files; the feedback unit is used to send the multiple processing files to the resource corresponding to the resource request the originator.
在另一示例性实施例中,所述资源使用数据包括后台的总资源和当前处理任务被占用的资源;所述根据所述资源使用数据,检测所述后台处理任务的资源与所述资源请求所需资源的关系,包括:基于所述总资源和所述被占用的资源得到当前可用资源;检测所述可用资源与所述资源请求所需资源的关系。In another exemplary embodiment, the resource usage data includes the total resources of the background and the resources occupied by the current processing task; and according to the resource usage data, the resources of the background processing task and the resource request are detected The relationship of required resources includes: obtaining currently available resources based on the total resources and the occupied resources; detecting the relationship between the available resources and the resources required by the resource request.
在另一示例性实施例中,所述检测所述可用资源与所述资源请求所需资源的关系,包括:对所述可用资源的资源量进行调整,得到目标资源量阈值;其中,所述目标资源阈值小于所述可用资源的资源量;获取所述资源请求所需资源的资源量;检测所述目标资源量阈值与所述资源请求所需资源的资源量的关系。In another exemplary embodiment, the detecting the relationship between the available resources and the resources required by the resource request includes: adjusting the resource amount of the available resources to obtain a target resource amount threshold; wherein, the The target resource threshold is less than the resource amount of the available resources; obtaining the resource amount of the resource required by the resource request; detecting the relationship between the target resource amount threshold and the resource amount of the resource required by the resource request.
在另一示例性实施例中,所述可用资源为可用内存,所述资源请求中携带有查询参数;所述检测所述可用资源与所述资源请求所需资源的关系,包括:从数据库中查询与所述查询参数相匹配的待导出数据,以及从所述数据库中确定单条数据所占的空间大小;基于所述待导出数据对应的数据量和所述单条数据所占的空间大小,得到所述资源请求的空间需求量;检测所述可用内存与所述空间需求量之间的大小关系。In another exemplary embodiment, the available resources are available memory, and the resource request carries query parameters; the detecting the relationship between the available resources and the resources required by the resource request includes: Query the data to be exported that matches the query parameters, and determine the space occupied by a single piece of data from the database; based on the amount of data corresponding to the data to be exported and the space occupied by the single piece of data, obtain The space requirement of the resource request; detecting the size relationship between the available memory and the space requirement.
在另一示例性实施例中,所述可用资源为可用内存,所述资源请求所需资源为空间需求量;所述对所述资源请求对应的任务进行分批次处理,得到多个处理文件,包括:基于所述可用内存对所述空间需求量进行划分,得到多个子空间需求量;将所述资源请求所对应的待导出数据按照多个所述子空间需求量进行分批次处理,得到所述多个处理文件。In another exemplary embodiment, the available resources are available memory, and the resources required by the resource request are space requirements; the tasks corresponding to the resource requests are processed in batches to obtain multiple processing files , comprising: dividing the space requirement based on the available memory to obtain a plurality of subspace requirements; processing the data to be exported corresponding to the resource request in batches according to the plurality of subspace requirements, Obtain the plurality of processing files.
在另一示例性实施例中,所述资源请求中携带有标识;在所述若接收到的资源请求所请求的数据量超过预设数量阈值,则获取后台针对处理任务的资源使用数据之前,所述方法包括:接收所述发起方发送的所述资源请求;对所述资源请求中含有的标识的类型进行检测;若检测到为第一类型的标识,则确定所述资源请求对应的数据量超过预设数量阈值;若检测到为第二类型的标识,则确定所述资源请求对应的数据量未超过所述预设数量阈值。In another exemplary embodiment, the resource request carries an identifier; before acquiring background resource usage data for processing tasks if the amount of data requested by the received resource request exceeds a preset quantity threshold, The method includes: receiving the resource request sent by the initiator; detecting the type of the identifier contained in the resource request; if the first type of identifier is detected, determining the data corresponding to the resource request The amount exceeds the preset number threshold; if the second type of identification is detected, it is determined that the data amount corresponding to the resource request does not exceed the preset number threshold.
在另一示例性实施例中,所述将所述多个处理文件发送至所述资源请求对应的发起方,包括:采用指定压缩算法分别对所述多个处理文件进行压缩,得到多个压缩文件;将多个所述压缩文件发送至所述资源请求对应的发起方。In another exemplary embodiment, the sending the plurality of processing files to the initiator corresponding to the resource request includes: respectively compressing the plurality of processing files using a specified compression algorithm to obtain a plurality of compressed file; sending multiple compressed files to the originator corresponding to the resource request.
根据本申请实施例的一个方面,一种电子设备,包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述电子设备如前实现所述的资源数据的处理方法。According to an aspect of the embodiment of the present application, an electronic device includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more When the processor executes, the electronic device realizes the resource data processing method as described above.
根据本申请实施例的一个方面,一种计算机可读存储介质,其上存储有计算机可读指令,当所述计算机可读指令被计算机的处理器执行时,使计算机执行如上所述的资源数据的处理方法。According to an aspect of the embodiments of the present application, a computer-readable storage medium stores computer-readable instructions thereon, and when the computer-readable instructions are executed by a computer processor, the computer executes the above-mentioned resource data processing method.
根据本申请实施例的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述各种可选实施例中提供的资源数据的处理方法。According to an aspect of the embodiments of the present application, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the resource data processing method provided in the above-mentioned various optional embodiments.
在本申请的实施例所提供的技术方案中,在接收到的资源请求所请求的数据量超过预设数量阈值时,通过对后台资源的实时监听,获取后台针对处理任务的资源使用数据;根据资源使用数据,检测后台处理任务的资源与资源请求所需资源的关系;若关系表征后台处理任务的资源小于资源请求所需资源,说明资源请求所请求的数据量不仅超过预设数量阈值,并且后台资源的大小使得后台不能够并发所请求的所有数据,从而造成返回数据不完整,故对资源请求对应的任务进行分批次处理,得到多个处理文件并发送至资源请求对应的发起方。这样,本申请针对请求数据量超过预设数量阈值的资源请求,通过实时监听后台的资源使用数据,在检测到后台处理任务的资源小于资源请求所需资源时,对资源请求对应的任务进行分批次处理,保证了资源请求所请求数据的完整性,同时避免了后台因加载大量数据而资源溢出,进而影响系统稳定性的情况。In the technical solution provided by the embodiments of the present application, when the amount of data requested by the received resource request exceeds the preset quantity threshold, the resource usage data of the background for the processing task is obtained by monitoring the background resources in real time; according to Resource usage data, which detects the relationship between the resources of the background processing task and the resources required by the resource request; if the relationship indicates that the resources of the background processing task are less than the resources required by the resource request, it means that the amount of data requested by the resource request not only exceeds the preset quantity threshold, but also The size of background resources makes it impossible for the background to send all the requested data concurrently, resulting in incomplete return data. Therefore, the tasks corresponding to resource requests are processed in batches, and multiple processing files are obtained and sent to the originator corresponding to resource requests. In this way, this application monitors the resource usage data in the background in real time for resource requests whose requested data volume exceeds the preset quantity threshold, and when it is detected that the resources of the background processing task are less than the resources required by the resource request, the task corresponding to the resource request is classified. Batch processing ensures the integrity of the data requested by resource requests, and at the same time avoids resource overflow due to loading a large amount of data in the background, which in turn affects system stability.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术者来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。在附图中:The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application. Apparently, the drawings in the following description are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative efforts. In the attached picture:
图1是本申请涉及的一种实施环境的示意图;FIG. 1 is a schematic diagram of an implementation environment involved in the present application;
图2是在图1所示的实施环境下,一示例性的实施例中资源数据的处理方法应用的后台、终端与用户之间的示意图;Fig. 2 is a schematic diagram between the background, the terminal and the user of the application of the resource data processing method in an exemplary embodiment under the implementation environment shown in Fig. 1;
图3是本申请的一示例性实施例示出的一种资源数据的处理方法的流程图;Fig. 3 is a flowchart of a resource data processing method shown in an exemplary embodiment of the present application;
图4是图3所示实施例中的步骤S302在一个示例性实施例中的流程图;FIG. 4 is a flowchart of step S302 in the embodiment shown in FIG. 3 in an exemplary embodiment;
图5是图3所示实施例中的步骤S302在一个示例性实施例中的流程图;FIG. 5 is a flowchart of step S302 in the embodiment shown in FIG. 3 in an exemplary embodiment;
图6是在图3所示实施例中的步骤S302之前对执行条件进行判定的步骤在一个示例性实施例中的流程图;Fig. 6 is a flowchart in an exemplary embodiment of the steps of judging the execution conditions before step S302 in the embodiment shown in Fig. 3;
图7是图3所示实施例中的步骤S302在一个示例性实施例中的流程图;FIG. 7 is a flowchart of step S302 in the embodiment shown in FIG. 3 in an exemplary embodiment;
图8是图3所示实施例中的步骤S303在一个示例性实施例中的流程图;FIG. 8 is a flowchart of step S303 in the embodiment shown in FIG. 3 in an exemplary embodiment;
图9是在图3所示实施例中的步骤S301之前接收并识别资源请求的步骤在一个示例性实施例中的流程图;Fig. 9 is a flowchart in an exemplary embodiment of the steps of receiving and identifying resource requests before step S301 in the embodiment shown in Fig. 3;
图10是本申请的另一示例性实施例示出的资源数据的处理方法的流程图;Fig. 10 is a flowchart of a resource data processing method shown in another exemplary embodiment of the present application;
图11是本申请的一示例性实施例示出的一种资源数据的处理装置的框图;Fig. 11 is a block diagram of a device for processing resource data shown in an exemplary embodiment of the present application;
图12是适于用来实现本申请实施例的电子设备的计算机系统的结构示意图。Fig. 12 is a schematic structural diagram of a computer system suitable for implementing the electronic device of the embodiment of the present application.
具体实施方式detailed description
这里将详细地对示例性实施例执行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.
附图中所示的方框图仅仅是功能实体,不一定必须与物理上独立的实体相对应。即,可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。The block diagrams shown in the drawings are merely functional entities and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices entity.
附图中所示的流程图仅是示例性说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解,而有的操作/步骤可以合并或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flow charts shown in the drawings are only exemplary illustrations, and do not necessarily include all contents and operations/steps, nor must they be performed in the order described. For example, some operations/steps can be decomposed, and some operations/steps can be combined or partly combined, so the actual order of execution may be changed according to the actual situation.
在本申请中提及的“多个”是指两个或者两个以上。“和/或”描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。The "plurality" mentioned in this application refers to two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships. For example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently. The character "/" generally indicates that the contextual objects are an "or" relationship.
相关技术中,用户可通过显示网页发起资源请求,后台的网站及其系统会基于资源请求查询、处理并导出对应的数据。通常资源请求所请求导出的是大批量数据,这时后台便需耗时长时间计算和占用大量内存资源去对该资源请求作出响应并返回相应的大批量数据,这样会造成用户长时间等待甚至超时,并且大量加载数据到内存还会导致内存溢出,使得后台系统性能不稳定。In related technologies, a user can initiate a resource request by displaying a web page, and the background website and its system will query, process and export corresponding data based on the resource request. Usually the resource request requests to export a large amount of data. At this time, the background needs to take a long time to calculate and occupy a large amount of memory resources to respond to the resource request and return the corresponding large amount of data, which will cause the user to wait for a long time or even time out. , and loading a large amount of data into the memory will also cause memory overflow, making the performance of the background system unstable.
目前多采用限制资源请求的参数范围或者限制单次返回的数据量来解决后台的内存溢出的问题,但是限制资源请求的参数范围的方式,存在需要人为的进行多次分批操作,可操作性和体验较差的问题;限制单次返回的数据量则可能存在返回的数据不完整等问题。At present, the problem of memory overflow in the background is mostly solved by limiting the parameter range of resource requests or limiting the amount of data returned in a single time. However, the method of limiting the parameter range of resource requests requires artificially performing multiple batch operations, which is operable. And the problem of poor experience; limiting the amount of data returned at a time may have problems such as incomplete returned data.
为了解决如上问题,本申请的实施例提出了一种资源数据的处理方法及装置、电子设备、计算机可读存储介质,其中主要涉及数据处理技术,以下将对这些实施例进行详细说明。In order to solve the above problems, the embodiments of the present application propose a method and device for processing resource data, electronic equipment, and a computer-readable storage medium, which mainly involve data processing technology, and these embodiments will be described in detail below.
首先请参阅图1,图1是本申请涉及的一种实施环境的示意图。该实施环境包括终端10和后台20,终端10和后台20之间通过有线或者无线网络进行通信。First please refer to FIG. 1 , which is a schematic diagram of an implementation environment involved in the present application. The implementation environment includes a
后台20用于对用户通过作为发起方的终端10的显示网页端发送的资源请求进行后台处理,通过在接收到的资源请求所请求的数据量超过预设数量阈值时,对后台资源的实时监听,获取后台针对处理任务的资源使用数据;根据资源使用数据,检测后台处理任务的资源与资源请求所需资源的关系;若关系表征后台处理任务的资源小于资源请求所需资源,说明资源请求所请求的数据量不仅超过预设数量阈值,并且后台资源的大小使得后台不能够并发所请求的所有数据,从而造成返回给发起方的数据不完整,故对资源请求对应的任务进行分批次处理,得到多个处理文件并发送至资源请求对应的发起方,也即将多个处理文件返回至终端10进行展示。The
请参阅图2,图2是在图1所示的实施环境下,一示例性的实施例中资源数据的处理方法应用的后台20、终端10与用户之间的示意图,其中,后台20包括拦截器21、监听器22、估量模块23和业务处理模块24。用户和终端10的显示界面存在交互,终端10与后台20之间存在交互,用户在终端10的页面登录后通过终端10发送资源请求,后台20的拦截器21对资源请求进行拦截以及分析,若接收到的资源请求所请求的数据量超过预设数量阈值,则将资源请求传送至估量模块23,同时通过监听器22获取当前后台针对处理任务的资源使用数据,并通过估量模块23获取资源请求所需资源后,得到后台处理任务的资源与资源请求所需资源的关系;业务处理模块24在后台处理任务的资源小于资源请求所需资源时,对资源请求对应的任务进行分批次处理,得到多个处理文件并经由拦截器21将多个处理文件推送至终端10,进行显示。Please refer to FIG. 2. FIG. 2 is a schematic diagram between the
相比于现有技术的对资源请求所请求的梳理进行处理到的方案,本实施环境所提供的资源数据的处理方法能够保证了所请求数据的完整性的同时,避免了后台因加载大量数据导致资源溢出的现象。Compared with the prior art solution for sorting out resource requests, the resource data processing method provided by this implementation environment can ensure the integrity of the requested data and avoid background problems caused by loading a large amount of data. lead to resource overflow.
需说明的是,图1所示实施环境中的终端10可以是智能手机、平板、笔记本电脑、计算机等任意的电子设备;后台20可以是独立的服务器,也可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(ContentDeliveryNetwork,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器,本处不进行限制。It should be noted that the terminal 10 in the implementation environment shown in FIG. 1 can be any electronic device such as a smart phone, a tablet, a notebook computer, or a computer; the
图3是本申请的一示例性实施例示出的资源数据的处理方法的流程图。该方法可以应用于图1所示的实施环境,并由图1所示实施例环境中的后台20具体执行。而在其它的实施环境中,该方法可以由其它实施环境中的设备执行,本实施例不对此进行限制。Fig. 3 is a flowchart of a resource data processing method shown in an exemplary embodiment of the present application. The method can be applied to the implementation environment shown in FIG. 1 , and is specifically executed by the
如图3所示,在一示例性实施例中,该资源数据的处理方法可以包括步骤S301至步骤S304,详细介绍如下:As shown in FIG. 3, in an exemplary embodiment, the resource data processing method may include steps S301 to S304, which are described in detail as follows:
步骤S301,若接收到的资源请求所请求的数据量超过预设数量阈值,则获取后台针对处理任务的资源使用数据。Step S301, if the amount of data requested by the received resource request exceeds a preset amount threshold, acquire background resource usage data for processing tasks.
其中,预设数量阈值是用于监测资源请求所请求的数据量的大小,拦截器配置通过预设数量值进行监测分析,将所请求的数据量超过预设数量阈值的资源请求进行拦截,使得该资源请求不会直接进入业务处理模块,避免了后台因加载大量数据而资源溢出,而使得返回数据不完整的情况。其中,预设数量阈值的具体数值包括但不限于可以依据需求进行设置。Among them, the preset quantity threshold is used to monitor the size of the data requested by the resource request. The interceptor configuration monitors and analyzes the preset quantity value, and intercepts resource requests whose requested data volume exceeds the preset quantity threshold, so that The resource request will not directly enter the business processing module, avoiding resource overflow due to loading a large amount of data in the background, resulting in incomplete returned data. Wherein, the specific value of the preset quantity threshold includes, but is not limited to, it can be set according to requirements.
并且后台会实时监听后台针对处理任务的资源使用数据,这样,在拦截到所请求的数据量超过预设数量阈值的资源请求时,获取当前的后台针对处理任务的资源使用数据,资源使用数据可以包括有资源总量、资源占用量、可使用资源量等信息。And the background will monitor the resource usage data of the processing tasks in the background in real time. In this way, when intercepting resource requests whose requested data volume exceeds the preset quantity threshold, the current background resource usage data for processing tasks can be obtained. The resource usage data can be Including information such as the total amount of resources, the amount of resources occupied, and the amount of available resources.
步骤S302,根据资源使用数据,检测后台处理任务的资源与资源请求所需资源的关系。Step S302 , according to the resource usage data, the relationship between the resource of the background processing task and the resource required by the resource request is detected.
在确定接收到的资源请求所请求的数据量超过预设数量阈值后,获取该资源请求所请求的数据的数据量,进而得到处理该数据量的数据对应的所需资源。得到资源请求的所需资源之后,通过检测后台处理任务的资源与资源请求所需资源的关系,检测出的关系可以表征为后台处理任务的资源小于资源请求的所需资源,还可以表征为后台处理任务的资源大于等于资源请求的所需资源,通过后台处理任务的资源与资源请求的所需资源之间的关系所表征的内容,能够判定后台是否可以并发资源请求所请求的所有数据。After it is determined that the amount of data requested by the received resource request exceeds the preset amount threshold, the data amount of the data requested by the resource request is acquired, and then the resources required to process the data of the amount of data are obtained. After obtaining the resources required by the resource request, by detecting the relationship between the resources required by the background processing task and the resources required by the resource request, the detected relationship can be characterized as the resources required for the background processing task being less than the required resources for the resource request, or as the background The resource of the processing task is greater than or equal to the required resource of the resource request. Through the content represented by the relationship between the resource of the background processing task and the required resource of the resource request, it can be determined whether the background can concurrently request all the data requested by the resource.
步骤S303,若关系表征后台处理任务的资源小于资源请求所需资源,则对资源请求对应的任务进行分批次处理,得到多个处理文件。Step S303, if the relationship represents that the resource of the background processing task is less than the resource required by the resource request, the tasks corresponding to the resource request are processed in batches to obtain multiple processing files.
若上述的关系表征为后台处理任务的资源大于等于资源请求所需资源,则说明后台处理任务的资源能够满足并发资源请求所请求的所有数据的条件,后台直接并发处理该资源请求对应的任务不会导致资源溢出,反馈的数据也不会因此不完整,便不需要对资源请求对应的任务进行分批处理,直接将该资源请求传输至业务处理模块以完成业务处理即可。If the above relationship is characterized by the fact that the resources of the background processing task are greater than or equal to the resources required by the resource request, it means that the resources of the background processing task can meet the conditions of all the data requested by the concurrent resource request, and the background directly concurrently processes the task corresponding to the resource request. It will lead to resource overflow, and the feedback data will not be incomplete, so there is no need to process the tasks corresponding to the resource request in batches, and the resource request can be directly transmitted to the business processing module to complete the business processing.
若表征为后台处理任务的资源小于资源请求所需资源,则说明后台处理任务的资源不能够满足并发资源请求所请求的所有数据的条件,故为了避免后台因加载大量数据而资源溢出而使得返回数据不完整的情况,对资源请求对应的任务进行分批次处理,后台处理每个批次内的任务时是能够实现并发该批次内所有任务且不会导致资源溢出。处理后各个批次分别对应得到一个处理文件,从而将资源请求对应的任务进行分批次处理完成后,得到多个处理文件。If the resource of the background processing task is less than the resource required by the resource request, it means that the resource of the background processing task cannot meet the conditions of all the data requested by the concurrent resource request. Therefore, in order to avoid resource overflow due to loading a large amount of data in the background, return In the case of incomplete data, the tasks corresponding to resource requests are processed in batches, and when the tasks in each batch are processed in the background, all tasks in the batch can be implemented concurrently without causing resource overflow. After processing, each batch corresponds to a processing file, so that after the tasks corresponding to the resource request are processed in batches, multiple processing files are obtained.
步骤S304,将多个处理文件发送至资源请求对应的发起方。Step S304, sending multiple processing files to the originator corresponding to the resource request.
处理资源请求对应的各个批次的任务后,将得到的多个处理文件进行反馈,即发送至资源请求对应的发起方,以此完成一次资源请求所请求的资源数据的处理。After processing each batch of tasks corresponding to the resource request, feed back the obtained multiple processing files, that is, send them to the originator corresponding to the resource request, so as to complete the processing of the resource data requested by a resource request.
由上可知,在本实施例提供的方法中,通过对后台资源的实时监听,实时获取后台针对处理任务的资源使用数据;检测到接收到的资源请求所请求的数据量超过预设数量阈值时,根据当前的资源使用数据,检测后台处理任务的资源与资源请求所需资源的关系;若关系表征后台处理任务的资源小于资源请求所需资源,说明资源请求所请求的数据量不仅超过预设数量阈值,并且后台资源的大小使得后台不能够并发所请求的所有数据,处理的话容易造成只愿意出从而反馈数据不完整,因此对资源请求对应的任务进行分批次处理,使得后台能够顺利处理各个批次的任务并反馈完整的数据,再将分批次处理得到的多个处理文件并发送至资源请求对应的发起方。这样,在保证了资源请求所请求数据的完整性的同时,避免了后台因加载大量数据而资源溢出,进而影响系统稳定性的情况。It can be seen from the above that in the method provided by this embodiment, the resource usage data of the background for the processing task is obtained in real time by monitoring the background resources in real time; when it is detected that the amount of data requested by the received resource request exceeds the preset quantity threshold , according to the current resource usage data, detect the relationship between the resources of the background processing task and the resources required by the resource request; if the relationship indicates that the resources of the background processing task are less than the resources required by the resource request, it means that the amount of data requested by the resource request not only exceeds the preset The number threshold, and the size of the background resources make it impossible for the background to concurrently send all the requested data. If it is processed, it is easy to only want to send out and the feedback data is incomplete. Therefore, the tasks corresponding to the resource requests are processed in batches, so that the background can be processed smoothly. Complete data is fed back to each batch of tasks, and then multiple processing files obtained by batch processing are sent to the originator corresponding to the resource request. In this way, while ensuring the integrity of the data requested by the resource request, it avoids resource overflow due to loading a large amount of data in the background, thereby affecting system stability.
请参阅图4,图4是图3所示实施例中的步骤S302在一个示例性实施例中的流程图,其中获取到的后台针对处理任务的资源使用数据包括后台的总资源和当前处理任务被占用的资源。如图4所示,步骤S302具体可以包括步骤S401至步骤S402,通过上述步骤来检测后台处理任务的资源与资源请求所需资源的关系,详细介绍如下:Please refer to FIG. 4. FIG. 4 is a flow chart of step S302 in the embodiment shown in FIG. 3 in an exemplary embodiment, wherein the acquired background resource usage data for processing tasks includes total background resources and current processing tasks resources that are occupied. As shown in FIG. 4 , step S302 may specifically include steps S401 to S402. Through the above steps, the relationship between the resources of the background processing task and the resources required by the resource request is detected. The details are as follows:
步骤S401,基于总资源和被占用的资源得到当前可用资源。Step S401, obtain currently available resources based on total resources and occupied resources.
基于获取到的后台针对处理任务的资源使用数据包括的后台的总资源和当前处理任务被占用的资源,计算得到当前可用资源。后台的总资源和当前处理任务被占用的资源是可以直观检测获取到的,故为了实现高效处理,在获取到重资源和被占用的资源后,通过简单的运算得到需要的当前可用资源,应用到对资源请求的处理中。The currently available resources are calculated based on the total resources of the background included in the acquired resource usage data for processing tasks in the background and the resources occupied by the current processing task. The total resources in the background and the resources occupied by the current processing task can be obtained by intuitive detection. Therefore, in order to achieve efficient processing, after obtaining the heavy resources and occupied resources, the current available resources can be obtained through simple calculations, and the application into the processing of resource requests.
步骤S402,检测可用资源与资源请求所需资源的关系。Step S402, detecting the relationship between the available resources and the resources required by the resource request.
通过获取资源请求所请求的数据的数据量,得到处理该数据量的数据对应的所需资源。在后台实际处理资源请求时,是通对后台的空闲资源对资源请求进行任务处理的,故为了判定后台是否可以并发资源请求所请求的所有数据,而检测后台处理任务的资源与资源请求所需资源的关系,其具体检测的是可用资源与资源请求所需资源的关系,直接反映后台是否可以并发资源请求所请求的所有数据。By acquiring the data volume of the data requested by the resource request, the resources required to process the data of the data volume are obtained. When the resource request is actually processed in the background, the resource request is processed through the idle resources in the background. Therefore, in order to determine whether the background can concurrently request all the data requested by the resource, it is necessary to detect the background processing task resources and resource requests. Resource relationship, which specifically detects the relationship between available resources and resources required by resource requests, directly reflects whether the background can concurrently request all the data requested by resource requests.
检测出的关系可以表征为后台可用资源小于资源请求的所需资源,还可以表征为后台可用资源大于等于资源请求的所需资源,通过后台可用资源与资源请求的所需资源之间的关系所表征的内容,能够判定后台空闲资源是否可以并发资源请求所请求的所有数据。The detected relationship can be characterized as the background available resources are less than the required resources of the resource request, and can also be characterized as the background available resources are greater than or equal to the required resources of the resource request, through the relationship between the background available resources and the required resources of the resource request The content of the representation can determine whether the idle resources in the background can concurrently request all the data requested by the resource.
这样本申请上述实施例的技术方案根据后台总资源和被占用的资源得到当前可用资源,进而根据后台空闲的当前可用资源与资源请求所需资源的大小关系,以此判定是否需要将源请求对应的任务进行分批次处理,避免后台因加载大量数据导致资源溢出。In this way, the technical solution of the above embodiment of the present application obtains the currently available resources according to the total background resources and the occupied resources, and then according to the relationship between the currently available resources idle in the background and the resources required by the resource request, it is determined whether it is necessary to match the source request The tasks are processed in batches to avoid resource overflow caused by loading a large amount of data in the background.
在本申请的另一实施例中,如图5所示,为了防止后台资源数据饱和,基于后台的可用资源可以得到目标资源阈值,检测目标资源量阈值与资源请求所需资源的资源量的关系。如图5所示,图3所示实施例中步骤S302在一示例性实施例中具体可以包括步骤S501至步骤S502,详细介绍如下:In another embodiment of the present application, as shown in Figure 5, in order to prevent data saturation of background resources, the target resource threshold can be obtained based on the available resources in the background, and the relationship between the target resource amount threshold and the resource amount required by the resource request can be detected . As shown in FIG. 5, step S302 in the embodiment shown in FIG. 3 may specifically include steps S501 to S502 in an exemplary embodiment, and the details are as follows:
步骤S501,对可用资源的资源量进行调整,得到目标资源量阈值。Step S501, adjusting the resource amount of available resources to obtain a target resource amount threshold.
由于后台的可用资源是通过总资源和被占用的资源通过简单运算得到的,故可用资源便表征了后台的空闲资源,若出现可用资源与资源请求所需资源恰好相等的情况,只基于可用资源检测可用资源与资源请求所需资源的关系,便会导致后台剩余所有的空闲资源全部对该资源请求所请求的资源进行处理,导致系统容错性低,容易出现数据处理故障。Since the available resources in the background are obtained through simple calculations of the total resources and the occupied resources, the available resources represent the idle resources in the background. If the available resources are exactly equal to the resources required by the resource request, only the available resources will be used. Detecting the relationship between the available resources and the resources required by the resource request will cause all the remaining idle resources in the background to process the resources requested by the resource request, resulting in low fault tolerance of the system and prone to data processing failures.
因此,本申请的该实施例中对可用资源的资源量进行调整,得到目标资源量阈值,其中,目标资源阈值小于可用资源的资源量,调整可用资源的资源量的方式可以是依据实现设定的小于一的调整系数,也可以是利用固定差值进行调整,只要调整后能够实现目标资源阈值小于可用资源的资源量即可,在此不对调整方式进行限制。Therefore, in this embodiment of the present application, the resource amount of the available resources is adjusted to obtain the target resource amount threshold, wherein the target resource threshold is smaller than the resource amount of the available resources, and the method of adjusting the resource amount of the available resources may be based on the implementation setting The adjustment coefficient of less than one can also be adjusted by using a fixed difference, as long as the adjusted target resource threshold is less than the resource amount of available resources, there is no limitation on the adjustment method here.
步骤S502,获取资源请求所需资源的资源量,检测目标资源量阈值与资源请求所需资源的资源量的关系。Step S502, acquiring the resource amount of the resource required by the resource request, and detecting the relationship between the target resource amount threshold and the resource amount of the resource required by the resource request.
通过获取资源请求所请求的数据的数据量,得到处理该数据量的数据对应的所需资源,进而检测目标资源量阈值与资源请求所需资源的资源量的关系。检测出的关系可以表征为目标资源量阈值小于资源请求的所需资源,还可以表征为目标资源量阈值大于等于资源请求的所需资源,通过目标资源量阈值与资源请求的所需资源之间的关系所表征的内容。By acquiring the data amount of the data requested by the resource request, the resources required to process the data of the data amount are obtained, and then the relationship between the target resource amount threshold and the resource amount of the resource required by the resource request is detected. The detected relationship can be characterized as the target resource amount threshold is less than the resource required by the resource request, and can also be characterized as the target resource amount threshold is greater than or equal to the required resource of the resource request, and the relationship between the target resource amount threshold and the required resource of the resource request The content represented by the relationship.
这样本实施例中,由于目标资源阈值小于可用资源的资源量,故在检测到的关系表征目标资源量阈值大于等于资源请求的所需资源时,不会出现后台剩余所有的可用资源全部对该资源请求所请求的资源进行处理。以此基于目标资源阈值判定后台空闲资源是否可以并发资源请求所请求的所有数据,并在避免了后台因加载大量数据导致资源溢出的同时避免了后台数据饱和,提升了数据处理的容错性。In this way, in this embodiment, since the target resource threshold is less than the resource amount of available resources, when the detected relationship indicates that the target resource amount threshold is greater than or equal to the resource required by the resource request, all available resources remaining in the background will not appear. Resource requests the requested resource for processing. In this way, based on the target resource threshold, it is determined whether the background idle resources can concurrently request all the data requested by the resource, and it avoids resource overflow caused by loading a large amount of data in the background, avoids background data saturation, and improves the fault tolerance of data processing.
本申请的另一示例性实施例中,用于得到与资源请求所需资源的关系的后台可用资源为内存资源,如图6所示,本申请的后台的资源还包括有CPU核数,故后台针对处理任务的资源使用数据还包括有总CPU核数和被占用的CPU核数。并且在图3所示实施例中的步骤S302的基于内存资源的资源使用数据检测后台处理任务的资源与资源请求所需资源的关系之前,还包括对执行条件进行判定的步骤,执行条件与CPU核数对应,如图6所示,其具体包括步骤S601至步骤S602:In another exemplary embodiment of the present application, the background resources available for obtaining the relationship with the resources required by the resource request are memory resources. As shown in FIG. 6, the background resources of the present application also include the number of CPU cores, so The resource usage data for processing tasks in the background also includes the total number of CPU cores and the number of occupied CPU cores. And before step S302 in the embodiment shown in FIG. 3 detects the relationship between the resource of the background processing task and the resource required by the resource request based on the resource usage data of the memory resource in step S302, a step of judging the execution condition is also included. The execution condition is related to the CPU Correspondence to the number of cores, as shown in Figure 6, specifically includes steps S601 to S602:
步骤S601,基于总CPU核数和被占用的CPU核数得到当前可用CPU核数,并基于当前可用CPU核数确定执行条件。In step S601, the number of currently available CPU cores is obtained based on the total number of CPU cores and the number of occupied CPU cores, and an execution condition is determined based on the number of currently available CPU cores.
在确定接收到的资源请求所请求的数据量超过预设数量阈值后,后台会将该资源请求对应的任务加入到后台的任务队列中,新的队列中除了新加入的资源请求对应的任务,还包括正在执行的任务,正在执行的任务占用的CPU核数便是获取到的资源使用数据包括的当前处理任务被占用的CPU核数。After it is determined that the amount of data requested by the received resource request exceeds the preset quantity threshold, the background will add the task corresponding to the resource request to the task queue in the background. In addition to the task corresponding to the newly added resource request in the new queue, It also includes tasks being executed, and the number of CPU cores occupied by the tasks being executed is the number of CPU cores occupied by the current processing task included in the obtained resource usage data.
通过监听器获取到的后台针对处理任务的资源使用数据包括的后台的总CPU核数和当前处理任务被占用的CPU核数,基于总CPU核数和被占用的CPU核数计算得到当前可用CPU核数,为了保证后台正常运行,基于当前可用CPU核数确定执行条件,执行条件表征为资源请求的对应的任务小于等于当前可用并发量CPU核数,即任务队列中所有任务的总数要小于等于总CPU核数。The background resource usage data for processing tasks obtained through the listener includes the total number of CPU cores in the background and the number of CPU cores occupied by the current processing task, and the current available CPU is calculated based on the total number of CPU cores and the number of occupied CPU cores The number of cores. In order to ensure the normal operation of the background, the execution condition is determined based on the number of currently available CPU cores. The execution condition is characterized by the task corresponding to the resource request being less than or equal to the current available concurrent CPU core number, that is, the total number of all tasks in the task queue must be less than or equal to The total number of CPU cores.
步骤S602,若资源请求满足执行条件,则检测可用资源与资源请求所需资源的关系。Step S602, if the resource request satisfies the execution condition, then detect the relationship between the available resources and the resources required by the resource request.
若资源请求不满足执行条件,说明资源请求的对应的任务大于当前可用并发量CPU核数,后台CPU资源并不能完整执行该资源请求对应得到任务量,故判定不满足执行条件后停止对该资源请求的识别以及处理,并进行错误反馈至资源请求的发起端;若资源请求满足执行条件,则检测可用资源与资源请求所需资源的关系,判定是否需要将该资源请求对应的任务进行分批次处理。If the resource request does not meet the execution conditions, it means that the task corresponding to the resource request is greater than the current available concurrent CPU cores, and the background CPU resources cannot fully execute the task corresponding to the resource request. Therefore, it is determined that the execution condition is not met and the resource is stopped. Identification and processing of requests, and error feedback to the originator of the resource request; if the resource request meets the execution conditions, then detect the relationship between the available resources and the resources required by the resource request, and determine whether the tasks corresponding to the resource request need to be batched processing.
本实施例提供的方案,在检测可用资源与资源请求所需资源的关系之前,判定资源请求是否满足后台CPU核数对应的执行条件保证后台正常运行。In the solution provided by this embodiment, before detecting the relationship between the available resources and the resources required by the resource request, it is determined whether the resource request satisfies the execution conditions corresponding to the number of background CPU cores to ensure the normal operation of the background.
如图7所示,在本申请的另一示例性实施例中,用于得到与资源请求所需资源的关系的后台可用资源为内存资源。请参阅图7,图7是图3所示实施例中步骤S302在一个示例性实施例中的流程图,该实施例中,在对可用资源与资源请求所需资源之间的大小关系进行检测之前,还包括通过资源请求携带的查询参数对资源请求所需资源的获取步骤。如图7所示,步骤S302具体可以包括步骤S701至步骤S703,通过上述步骤来得到资源请求所需资源,详细介绍如下:As shown in FIG. 7 , in another exemplary embodiment of the present application, the available background resource for obtaining the relationship with the resource required by the resource request is a memory resource. Please refer to FIG. 7. FIG. 7 is a flowchart of step S302 in an exemplary embodiment in the embodiment shown in FIG. Previously, the step of obtaining the resources required by the resource request through the query parameters carried in the resource request is also included. As shown in FIG. 7, step S302 may specifically include steps S701 to S703, through the above steps to obtain the resources required for the resource request, the details are as follows:
步骤S701,从数据库中查询与查询参数相匹配的待导出数据,以及从数据库中确定单条数据所占的空间大小。Step S701, querying the database for the data to be exported that matches the query parameters, and determining the space occupied by a single piece of data from the database.
资源请求携带的查询参数对应资源请求的时间范围、具体数据类型等信息,估量模块基于该查询参数,从数据库中查询并获取与该查询尝试相匹配的待导出数据,待导出数据表征为供后台处理后反馈给资源请求发起端的数据。The query parameters carried in the resource request correspond to the time range of the resource request, specific data types and other information. Based on the query parameters, the estimation module queries from the database and obtains the data to be exported that matches the query attempt. The data to be exported is represented as for the background Data that is fed back to the originator of the resource request after processing.
并从数据库中确定单条数据所占的空间大小,本实施例中,单条数据所占的空间大小可以基于数据库中所有数据的大小得到,具体的,获取数据库中各个数据的大小,得到数据库中数据大小范围,取大小范围中的最大值作为本申请需要确定的单条数据所占的空间大小。And determine the space size occupied by a single piece of data from the database. In this embodiment, the space size occupied by a single piece of data can be obtained based on the size of all data in the database. Specifically, the size of each data in the database is obtained to obtain the data in the database. Size range, take the maximum value in the size range as the space occupied by a single piece of data that needs to be determined in this application.
步骤S702,基于待导出数据对应的数据量和单条数据所占的空间大小,得到资源请求的空间需求量。Step S702, based on the amount of data corresponding to the data to be exported and the space occupied by a single piece of data, the space requirement of the resource request is obtained.
获取到待导出数据对应的数据量以及单条数据所占的空间大小,便能计算得到资源请求的空间需求量,具体的,可以通过单条数据所占的空间大小*数据量,得出资源请求的空间需求量。After obtaining the amount of data corresponding to the data to be exported and the space occupied by a single piece of data, the space requirement of the resource request can be calculated. Specifically, the resource request can be obtained from the space occupied by a single piece of data * the amount of data space requirements.
步骤S703,检测可用内存与空间需求量之间的大小关系。Step S703, detecting the size relationship between the available memory and the space requirement.
由于用于得到与资源请求所需资源的关系的后台可用资源为内存资源,故检测对象为可用内存,故为了判定后台是否可以并发资源请求所请求的所有数据,而检测后台处理任务的资源与资源请求所需资源的关系,其具体检测的是可用内存与空间需求量的关系,直接反映后台是否可以并发资源请求所请求的待导出数据。检测出的关系可以表征为后台可用内存小于资源请求的空间需求量,还可以表征为后台可用内存大于等于资源请求的空间需求量,通过后台可用内存与资源请求的空间需求量之间的关系所表征的内容,能够判定后台空闲资源是否可以并发资源请求所请求的所有待导出数据。Since the available background resources used to obtain the relationship with the resources required by the resource request are memory resources, the detection object is the available memory. Therefore, in order to determine whether the background can concurrently request all the data requested by the resource, the resource of the background processing task is detected and The relationship between resources required by resource requests, which specifically detects the relationship between available memory and space requirements, directly reflects whether the background can concurrently request the requested data to be exported. The detected relationship can be represented as the background available memory is less than the space requirement of the resource request, and can also be represented as the background available memory is greater than or equal to the resource request space requirement, through the relationship between the background available memory and the resource request space requirement The content of the representation can determine whether the background idle resources can concurrently request all the requested data to be exported.
本实施例根据数据库中的单条数据所占的空间大小以及资源请求对应的待导出数据,得到资源请求的待导出数据对应的空间需求量,将空间需求量与后台的可能内存之间的大小关系进行检测分析,直观判定后台空闲资源是否可以并发资源请求所请求的所有待导出数据。In this embodiment, according to the space occupied by a single piece of data in the database and the data to be exported corresponding to the resource request, the space requirement corresponding to the data to be exported corresponding to the resource request is obtained, and the size relationship between the space requirement and the possible memory in the background Perform detection and analysis to visually determine whether the idle resources in the background can concurrently request all the requested data to be exported.
本申请一示例性实施例中,本申请提供的资源数据的处理方法中可用资源为可用内存,资源请求所需资源为空间需求量。基于此在本申请的另一实施例中,请参阅图8,图8是图3所示实施例中的步骤S303在一个示例性实施例中的流程图。如图8所示,步骤S303可以包括步骤S801至步骤S802,通过上述步骤来得到多个处理文件,详细介绍如下:In an exemplary embodiment of the present application, in the resource data processing method provided in the present application, available resources are available memory, and resources required for resource requests are space requirements. Based on this, in another embodiment of the present application, please refer to FIG. 8 , which is a flowchart of step S303 in the embodiment shown in FIG. 3 in an exemplary embodiment. As shown in Figure 8, step S303 may include steps S801 to step S802, and a plurality of processing files are obtained through the above steps, which are described in detail as follows:
步骤S801,基于可用内存对空间需求量进行划分,得到多个子空间需求量。In step S801, the space requirement is divided based on available memory to obtain a plurality of subspace requirements.
在可用内存与空间需求量之间的大小关系表征为后台可用内存小于资源请求的空间需求量时,说明后台处理任务的内存资源不能够满足并发资源请求所请求的所有待导出数据的条件,故为了避免后台因加载大量数据而资源溢出而使得返回数据不完整的情况,需要对资源请求对应的任务进行分批次处理。When the size relationship between the available memory and the space requirement is characterized by the fact that the background available memory is less than the space requirement of the resource request, it means that the memory resources of the background processing task cannot meet the conditions of all the data to be exported requested by the concurrent resource request, so In order to avoid incomplete returned data due to resource overflow caused by loading a large amount of data in the background, it is necessary to process tasks corresponding to resource requests in batches.
该实施例中,划分资源请求对应的任务批次的方式为基于可用内存的具体大小对空间需求量进行划分,得到多个子空间需求量。In this embodiment, the manner of dividing the task batch corresponding to the resource request is to divide the space requirement based on the specific size of the available memory to obtain multiple subspace requirements.
步骤S802,将资源请求所对应的待导出数据按照多个子空间需求量进行分批次处理,得到多个处理文件。Step S802, process the data to be exported corresponding to the resource request in batches according to the requirements of multiple subspaces, and obtain multiple processing files.
其中,每个子空间需求量的具体大小都是小于等于可用内存的大小的,基于此,将资源请求所对应的待导出数据按照多个子空间需求量进行分批次处理,得到多个处理文件,能够使得后台处理每个批次内的待导出数据时能够并发所有且不会导致内存资源溢出。Among them, the specific size of each subspace requirement is less than or equal to the size of the available memory. Based on this, the data to be exported corresponding to the resource request is processed in batches according to the requirements of multiple subspaces, and multiple processing files are obtained. It can make the data to be exported in each batch processed in the background concurrently without causing memory resource overflow.
上述实施例通过可用内存对空间需求量进行划分得到多个子空间需求量,以具体实现对资源请求对应的任务进行分批次处理,得到多个处理文件的目的,在每一批次的资源请求所对应的待导出数据进行处理时,后台可用内存是完全能够在资源不溢出的情况下完成的,且一批次处理后,后台的该可用内存又会空闲供下一批次的资源请求所对应的待导出数据进行处理,即重复利用该可用内存,直至所有批次均处理完成,得到多个处理文件。In the above embodiments, the space requirements are divided by the available memory to obtain multiple subspace requirements, so as to specifically realize the task of processing the tasks corresponding to the resource requests in batches and obtain multiple processing files. In each batch of resource requests When the corresponding data to be exported is processed, the available memory in the background can be completed without resource overflow, and after a batch of processing, the available memory in the background will be free for the next batch of resource requests The corresponding data to be exported is processed, that is, the available memory is reused until all batches are processed and multiple processed files are obtained.
本申请一示例性实施例中,资源请求中携带有标识,该标识可以用于对资源请求的类型进行识别。请参阅图9,图9是在图3所示实施例中的步骤S301之前接收并识别资源请求的步骤在一个示例性实施例中的流程图,其包括步骤S901至步骤S904:In an exemplary embodiment of the present application, the resource request carries an identifier, which can be used to identify the type of the resource request. Please refer to FIG. 9. FIG. 9 is a flowchart in an exemplary embodiment of the steps of receiving and identifying a resource request before step S301 in the embodiment shown in FIG. 3, which includes steps S901 to S904:
步骤S901,接收发起方发送的资源请求。Step S901, receiving a resource request sent by an initiator.
后台接收到用户通过作为发起方的终端的显示网页端发送的资源请求,资源请求表征发起方请求后台反馈并处理对应该资源请求的资源数据,不同的资源请求所请求反馈的是不同的资源数据,包括不同的数据内容和不同的数据量。The background receives the resource request sent by the user through the display webpage of the terminal as the initiator. The resource request indicates that the initiator requests background feedback and processes the resource data corresponding to the resource request. Different resource requests request different resource data. , including different data content and different data volumes.
步骤S902,对资源请求中含有的标识的类型进行检测。In step S902, the type of the identifier contained in the resource request is detected.
不同的资源请求携带有不同的标识,标识代表该资源请求的类型,本实施例中,资源请求的类型可以包括有第一类型和第二类型。故后台在获取到发起方发送的资源请求后,对资源请求中含有的标识进行识别,能够检测出资源请求的类型。Different resource requests carry different identifiers, and the identifiers represent the types of the resource requests. In this embodiment, the resource request types may include the first type and the second type. Therefore, after obtaining the resource request sent by the originator, the background recognizes the identifier contained in the resource request and can detect the type of the resource request.
步骤S903,若检测到为第一类型的标识,则确定资源请求对应的数据量超过预设数量阈值。In step S903, if the first type of identifier is detected, it is determined that the amount of data corresponding to the resource request exceeds a preset amount threshold.
其中,预设数量阈值为预先设定的值,用于表征资源请求对应的数据量未超过预设数量阈值则认定该资源请求为请求小数据量数据的请求,超过预设数量阈值则认定该资源请求为请求大数据量数据的请求,需要说明的是,上述的大和小是相对于预设数量阈值而言的。Among them, the preset quantity threshold is a preset value, which is used to indicate that the data volume corresponding to the resource request does not exceed the preset quantity threshold, and the resource request is determined to be a request for small data volume data, and if it exceeds the preset quantity threshold, it is determined that the The resource request is a request for a large amount of data. It should be noted that the above-mentioned large and small are relative to a preset quantity threshold.
本申请的该实施例中,将第一类型定义表征为资源请求对应的请求反馈的数据的数据量超过预设数量阈值,即该资源请求为请求大数据量数据的请求。这样,检测识别标识为第一类型后,确定资源请求对应的数据量超过预设数量阈值,拦截器会将该资源请求进行拦截并传送至估量模块。In this embodiment of the present application, the first type is defined as a resource request corresponding to a data volume of requested feedback exceeding a preset quantity threshold, that is, the resource request is a request for a large amount of data. In this way, after the first type is detected and identified, it is determined that the amount of data corresponding to the resource request exceeds the preset quantity threshold, and the interceptor will intercept the resource request and send it to the estimation module.
步骤S904,若检测到为第二类型的标识,则确定资源请求对应的数据量未超过预设数量阈值。In step S904, if the second type of identifier is detected, it is determined that the amount of data corresponding to the resource request does not exceed a preset amount threshold.
本申请的该实施例中,将第二类型定义表征为资源请求对应的请求反馈的数据的数据量未超过预设数量阈值,即该资源请求为请求小数据量数据的请求。这样,检测识别标识为第二类型后,确定资源请求对应的数据量未超过预设数量阈值,拦截器会直接将该资源请求传输至业务处理模块以完成对应业务处理。In this embodiment of the present application, the second type is defined as the data volume of the requested feedback data corresponding to the resource request does not exceed the preset quantity threshold, that is, the resource request is a request for data with a small data volume. In this way, after detecting and identifying the identification as the second type, it is determined that the amount of data corresponding to the resource request does not exceed the preset quantity threshold, and the interceptor will directly transmit the resource request to the business processing module to complete the corresponding business processing.
由此,通过本实施例的方法,本申请根据识别资源请求携带的标识,确定资源请求对应的数据量是否超过预设数量阈值,若超过预设数量阈值,则对该资源请求应用本申请提供的资源数据的处理方法,在检测到后台处理任务的资源与资源请求所需资源的关系为小于时对资源请求对应的任务进行分批次处理,在保证了资源请求所请求数据的完整性的同时,避免了后台因加载大量数据而资源溢出,进而影响系统稳定性的情况。Thus, through the method of this embodiment, this application determines whether the amount of data corresponding to the resource request exceeds the preset quantity threshold according to the identification carried by the resource request, and if it exceeds the preset quantity threshold, then apply the resource request provided by this application. The processing method of the resource data, when it is detected that the relationship between the resource of the background processing task and the resource required by the resource request is less than that, the task corresponding to the resource request is processed in batches, and the integrity of the data requested by the resource request is guaranteed. At the same time, it avoids the overflow of resources in the background due to loading a large amount of data, which in turn affects the stability of the system.
请参阅图10,图10是本申请的另一示例性实施例示出的资源数据的处理方法的流程图,该实施例的方案与图3所示实施例的不同在于,在发送多个处理文件至发起方之前还包括有对处理文件进行压缩处理的步骤,故本实施例中除了步骤S301至步骤S303之外还包括步骤S1001至步骤S1002,对于步骤S1001至步骤S1002的详细介绍如下:Please refer to FIG. 10. FIG. 10 is a flowchart of a resource data processing method shown in another exemplary embodiment of the present application. The difference between the solution of this embodiment and the embodiment shown in FIG. Before reaching the initiator, there is also a step of compressing the processing file. Therefore, in addition to steps S301 to S303, this embodiment also includes steps S1001 to S1002. The detailed description of steps S1001 to S1002 is as follows:
步骤S1001,采用指定压缩算法分别对多个处理文件进行压缩,得到多个压缩文件。Step S1001, using a specified compression algorithm to compress a plurality of processed files respectively to obtain a plurality of compressed files.
对于得到的多个处理文件,为了保证反馈数据的完整性,在发送至资源请求发起方之前,对多个处理文件进行压缩处理,进一步缩小返回的数据的数据量大小,并且压缩之后发送能够避免文件的遗失或者损坏。其中,指定压缩算法可以依据需求设定,也可以采取常用压缩方式,在此不做限制。For the obtained multiple processing files, in order to ensure the integrity of the feedback data, the multiple processing files are compressed before being sent to the resource request initiator to further reduce the size of the returned data, and sending after compression can avoid Loss or corruption of files. Wherein, the specified compression algorithm can be set according to requirements, or a common compression method can be adopted, which is not limited here.
步骤S1002,将多个压缩文件发送至资源请求对应的发起方。Step S1002, sending multiple compressed files to the originator corresponding to the resource request.
采用指定压缩算法得到的多个压缩文件,可以直接以文件的形式发送至资源请求对应的发起方,也可以生成下载链接后返回发起方,返回的具体方式在此不做限制,之后用户在发起方的显示页面执行下载动作以对请求结果进行查看。Multiple compressed files obtained by using the specified compression algorithm can be directly sent to the originator corresponding to the resource request in the form of a file, or can be returned to the originator after generating a download link. The specific method of return is not limited here. The party's display page performs a download action to view the request result.
本实施例通过将多个处理文件进行压缩处理后形成多个压缩文件发送至资源请求对应的发起方,缩小返回的整体数据量大小,进一步保证了返回数据量的完整性,并且压缩之后发送能够避免文件的遗失或者损坏。In this embodiment, multiple processed files are compressed to form multiple compressed files and sent to the originator corresponding to the resource request, reducing the overall data volume returned, further ensuring the integrity of the returned data volume, and sending data after compression. Avoid file loss or damage.
图11是本申请的一示例性实施例示出的一种资源数据的处理装置1100的框图。如图11所示,该装置包括:Fig. 11 is a block diagram of an apparatus 1100 for processing resource data according to an exemplary embodiment of the present application. As shown in Figure 11, the device includes:
获取单元1101,用于若接收到的资源请求所请求的数据量超过预设数量阈值,则获取后台针对处理任务的资源使用数据;An
检测单元1102,用于根据资源使用数据,检测后台处理任务的资源与资源请求所需资源的关系;The
分批单元1103,用于若关系表征后台处理任务的资源小于资源请求所需资源,则对资源请求对应的任务进行分批次处理,得到多个处理文件;The
反馈单元1104,用于将多个处理文件发送至资源请求对应的发起方。The
该装置应用本申请提供的资源数据的处理方法,通过在接收到的资源请求所请求的数据量超过预设数量阈值时,通过获取单元1101对后台资源的实时监听,获取后台针对处理任务的资源使用数据;检测单元1102根据资源使用数据,检测后台处理任务的资源与资源请求所需资源的关系;若关系表征后台处理任务的资源小于资源请求所需资源,说明资源请求所请求的数据量不仅超过预设数量阈值,并且后台资源的大小使得后台不能够并发所请求的所有数据,从而造成返回数据不完整,故分批单元1103对资源请求对应的任务进行分批次处理,得到多个处理文件并通过反馈单元1104发送至资源请求对应的发起方。这样,保证了资源请求所请求数据的完整性,同时避免了后台因加载大量数据而资源溢出,进而影响系统稳定性的情况。The device applies the resource data processing method provided by this application, and obtains background resources for processing tasks through the real-time monitoring of background resources by the
在另一示例性的实施例中,该装置还包括:In another exemplary embodiment, the device also includes:
类型识别单元,用于接收发起方发送的资源请求;对资源请求中含有的标识的类型进行检测;若检测到为第一类型的标识,则确定资源请求对应的数据量超过预设数量阈值;若检测到为第二类型的标识,则确定资源请求对应的数据量未超过预设数量阈值。The type identification unit is configured to receive the resource request sent by the initiator; detect the type of the identifier contained in the resource request; if the first type of identifier is detected, determine that the amount of data corresponding to the resource request exceeds the preset quantity threshold; If an identifier of the second type is detected, it is determined that the amount of data corresponding to the resource request does not exceed the preset amount threshold.
在另一示例性的实施例中,检测单元1102,还用于在资源使用数据包括后台的总资源和当前处理任务被占用的资源时,基于总资源和被占用的资源得到当前可用资源;检测可用资源与资源请求所需资源的关系。In another exemplary embodiment, the
在另一示例性的实施例中,检测单元1102,还用于对可用资源的资源量进行调整,得到目标资源量阈值;其中,目标资源阈值小于可用资源的资源量;获取资源请求所需资源的资源量;检测目标资源量阈值与资源请求所需资源的资源量的关系。In another exemplary embodiment, the
在另一示例性的实施例中,检测单元1102,还用于从数据库中查询与查询参数相匹配的待导出数据,以及从数据库中确定单条数据所占的空间大小;基于待导出数据对应的数据量和单条数据所占的空间大小,得到资源请求的空间需求量;检测为可用内存的可用资源与空间需求量之间的大小关系。In another exemplary embodiment, the detecting
在另一示例性的实施例中,分批单元1103,还用于基于为可用内存的可用资源对为空间需求量的资源请求所需资源进行划分,得到多个子空间需求量;将资源请求所对应的待导出数据按照多个子空间需求量进行分批次处理,得到多个处理文件。In another exemplary embodiment, the
在另一示例性的实施例中,反馈单元1104,还用于采用指定压缩算法分别对多个处理文件进行压缩,得到多个压缩文件;将多个压缩文件发送至资源请求对应的发起方。In another exemplary embodiment, the
需要说明的是,上述实施例所提供的资源数据的处理装置与上述实施例所提供的资源数据的处理方法属于同一构思,其中各个模块和单元执行操作的具体方式已经在方法实施例中进行了详细描述,此处不再赘述。上述实施例所提供的资源数据的处理装置在实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能,本处也不对此进行限制。It should be noted that the device for processing resource data provided by the above embodiments and the method for processing resource data provided by the above embodiments belong to the same concept, and the specific ways of performing operations by each module and unit have been carried out in the method embodiments Detailed description will not be repeated here. In practical applications, the device for processing resource data provided by the above-mentioned embodiments can allocate the above-mentioned functions by different functional modules according to needs, that is, divide the internal structure of the device into different functional modules, so as to complete all or all of the above-described Some functions are not limited here.
本申请的实施例还提供了一种电子设备,包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当一个或多个程序被一个或多个处理器执行时,使得电子设备实现上述各个实施例中提供的资源数据的处理方法。The embodiment of the present application also provides an electronic device, including: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, The electronic device is made to implement the method for processing resource data provided in the foregoing embodiments.
图12示出了适于用来实现本申请实施例的电子设备的计算机系统的结构示意图。需要说明的是,图12示出的电子设备的计算机系统1200仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Fig. 12 shows a schematic structural diagram of a computer system suitable for implementing the electronic device of the embodiment of the present application. It should be noted that the
如图12所示,计算机系统1200包括中央处理单元(CentralProcessingUnit,CPU)1201,其可以根据存储在只读存储器(Read-OnlyMemory,ROM)1202中的程序或者从储存部分1208加载到随机访问存储器(RandomAccessMemory,RAM)1203中的程序而执行各种适当的动作和处理,例如执行上述实施例中的方法。在RAM1203中,还存储有系统操作所需的各种程序和数据。CPU1201、ROM1202以及RAM1203通过总线1204彼此相连。输入/输出(Input/Output,I/O)接口1205也连接至总线1204。As shown in FIG. 12 , a
以下部件连接至I/O接口1205:包括键盘、鼠标等的输入部分1206;包括诸如阴极射线管(CathodeRayTube,CRT)、液晶显示器(LiquidCrystalDisplay,LCD)等以及扬声器等的输出部分1207;包括硬盘等的储存部分1208;以及包括诸如LAN(LocalAreaNetwork,局域网)卡、调制解调器等的网络接口卡的通信部分1209。通信部分1209经由诸如因特网的网络执行通信处理。驱动器1210也根据需要连接至I/O接口1205。可拆卸介质1211,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器1210上,以便于从其上读出的计算机程序根据需要被安装入储存部分1208。The following components are connected to the I/O interface 1205: an
特别地,根据本申请的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本申请的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的计算机程序。在这样的实施例中,该计算机程序可以通过通信部分1209从网络上被下载和安装,和/或从可拆卸介质1211被安装。在该计算机程序被中央处理单元(CPU)1201执行时,执行本申请的系统中限定的各种功能。In particular, according to the embodiments of the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments of the present application include a computer program product, which includes a computer program carried on a computer-readable medium, where the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via
需要说明的是,本申请实施例所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(ErasableProgrammableReadOnlyMemory,EPROM)、闪存、光纤、便携式紧凑磁盘只读存储器(CompactDiscRead-OnlyMemory,CD-ROM)、光存储器件、磁存储器件,或者上述的任意合适的组合。在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的计算机程序。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的计算机程序可以用任何适当的介质传输,包括但不限于:无线、有线等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable Read-Only Memory (Erasable Programmable Read-Only Memory, EPROM), flash memory, optical fiber, portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this application, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program thereon. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. . A computer program embodied on a computer readable medium can be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。其中,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,上述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Wherein, each block in the flowchart or block diagram may represent a module, a program segment or a part of code, and the above-mentioned module, program segment or part of code includes one or more executable instructions for realizing the specified logic function. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block in the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a A combination of dedicated hardware and computer instructions.
描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现,所描述的单元也可以设置在处理器中。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定。The units described in the embodiments of the present application may be implemented by software or by hardware, and the described units may also be set in a processor. Wherein, the names of these units do not constitute a limitation of the unit itself under certain circumstances.
本申请的另一方面还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如前的资源数据的处理方法。该计算机可读存储介质可以是上述实施例中描述的电子设备中所包含的,也可以是单独存在,而未装配入该电子设备中。Another aspect of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above resource data processing method is realized. The computer-readable storage medium may be included in the electronic device described in the above embodiments, or may exist independently without being assembled into the electronic device.
本申请的另一方面还提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述各个实施例中提供的资源数据的处理方法。Another aspect of the present application also provides a computer program product or computer program, the computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the resource data processing methods provided in the above-mentioned embodiments.
以上仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内所做的任何修改、等同替换或改进等,均应包含在本申请的保护范围之内。The above are only preferred embodiments of the application, and are not intended to limit the application. Any modifications, equivalent replacements or improvements made within the spirit and principles of the application shall be included in the protection scope of the application. within.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211250535.5A CN115604282A (en) | 2022-10-12 | 2022-10-12 | Resource data processing method and device, electronic equipment, storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211250535.5A CN115604282A (en) | 2022-10-12 | 2022-10-12 | Resource data processing method and device, electronic equipment, storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115604282A true CN115604282A (en) | 2023-01-13 |
Family
ID=84846318
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211250535.5A Pending CN115604282A (en) | 2022-10-12 | 2022-10-12 | Resource data processing method and device, electronic equipment, storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115604282A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024152980A1 (en) * | 2023-01-17 | 2024-07-25 | 北京有竹居网络技术有限公司 | Data message response method and apparatus, electronic device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013168934A (en) * | 2012-02-15 | 2013-08-29 | Hitachi Ltd | Load-balancing device and load-balancing method |
CN107463332A (en) * | 2016-06-03 | 2017-12-12 | 阿里巴巴集团控股有限公司 | A kind of file splitting method and device |
CN113326299A (en) * | 2021-05-17 | 2021-08-31 | 北京京东拓先科技有限公司 | Resource export method and device |
CN113992684A (en) * | 2021-10-26 | 2022-01-28 | 中电金信软件有限公司 | Method, device, processing node, storage medium and system for sending data |
CN114595061A (en) * | 2022-03-07 | 2022-06-07 | 中国工商银行股份有限公司 | Resource configuration method and apparatus, electronic device and computer-readable storage medium |
-
2022
- 2022-10-12 CN CN202211250535.5A patent/CN115604282A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013168934A (en) * | 2012-02-15 | 2013-08-29 | Hitachi Ltd | Load-balancing device and load-balancing method |
CN107463332A (en) * | 2016-06-03 | 2017-12-12 | 阿里巴巴集团控股有限公司 | A kind of file splitting method and device |
CN113326299A (en) * | 2021-05-17 | 2021-08-31 | 北京京东拓先科技有限公司 | Resource export method and device |
CN113992684A (en) * | 2021-10-26 | 2022-01-28 | 中电金信软件有限公司 | Method, device, processing node, storage medium and system for sending data |
CN114595061A (en) * | 2022-03-07 | 2022-06-07 | 中国工商银行股份有限公司 | Resource configuration method and apparatus, electronic device and computer-readable storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024152980A1 (en) * | 2023-01-17 | 2024-07-25 | 北京有竹居网络技术有限公司 | Data message response method and apparatus, electronic device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111190551B (en) | Redis data migration system, migration method, migration device and terminal | |
CN110225104B (en) | Data acquisition method, device and terminal device | |
CN108052615A (en) | Access request processing method, device, medium and electronic equipment | |
CN112261094A (en) | Message processing method and proxy server | |
WO2021189257A1 (en) | Malicious process detection method and apparatus, electronic device, and storage medium | |
CN113434384B (en) | Pressure testing method and device | |
CN114610806A (en) | Data query method and device, electronic equipment and storage medium | |
CN113282589A (en) | Data acquisition method and device | |
US20230283655A1 (en) | Data download method and apparatus, electronic device, and readable storage medium | |
CN116974748A (en) | Resource scheduling method, node, device, medium and program product | |
CN115604282A (en) | Resource data processing method and device, electronic equipment, storage medium | |
WO2025124273A1 (en) | Security audit method for distributed database and related device | |
CN114449052A (en) | Data compression method and device, electronic equipment and storage medium | |
CN111752728B (en) | Message transmission method and device | |
CN111400051B (en) | Resource scheduling method, device and system | |
CN114443267A (en) | Resource acquisition method, system, device and storage medium | |
CN111325456A (en) | Asset data processing method and apparatus, computer system, and storage medium | |
CN113761433B (en) | Service processing method and device | |
CN113746661B (en) | A business processing method and device | |
CN113726885A (en) | Method and device for adjusting flow quota | |
CN113821519A (en) | Data processing method and field-driven design architecture | |
CN113760715A (en) | Method and device for testing system | |
CN111475291A (en) | Data processing method, system, server and medium | |
CN113778323B (en) | File processing method and device | |
US12197461B2 (en) | Distributed function data transformation system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |