CN114675974A - Data information distribution method and device, electronic equipment and storage medium - Google Patents
Data information distribution method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114675974A CN114675974A CN202210477901.4A CN202210477901A CN114675974A CN 114675974 A CN114675974 A CN 114675974A CN 202210477901 A CN202210477901 A CN 202210477901A CN 114675974 A CN114675974 A CN 114675974A
- Authority
- CN
- China
- Prior art keywords
- information
- data information
- dynamic data
- target
- hardware
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The disclosure provides a data information distribution method, a data information distribution device, electronic equipment and a storage medium, which can be applied to the financial field, the data processing field or other fields. The method comprises the following steps: responding to the data request, and acquiring key information and equipment information in the data request, wherein the equipment information comprises hardware information and hardware state information; acquiring target static data information from a first resource end and acquiring dynamic data information from a second resource end according to the key information and the equipment information; processing the dynamic data information according to hardware state information in the equipment information to generate target dynamic data information; and loading the target static data information and the target dynamic data information and distributing the target static data information and the target dynamic data information to the target terminal.
Description
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a data information distribution method and apparatus, an electronic device, and a readable storage medium.
Background
With the progress of technology, the processing capability of data processing devices becomes more and more powerful, and the processing efficiency of the same data processing device is different for processing devices with different processing capabilities, so that the user experience is different among different processing devices. For example, taking a smart phone as an example, the global smart phone is far smaller in shipment volume in near 4 years than the number of people using the smart phone to surf the internet, that is, the mobile phones used by most users belong to products 4 years ago or even longer, such products have poor capability of processing the existing data information, and the processing time is long. In addition, for some data information or resources and the like built in the application, when version update of application data cannot be supported due to reasons such as running system version and the like, the real-time data information in the application cannot be normally acquired, and in addition, due to insufficient hardware processing capability of the device, the data processing speed is slow, so that the user experience is reduced.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a data information distribution method, an apparatus, an electronic device, a readable storage medium, and a computer program product, which can load and distribute data information meeting requirements for different devices, and can effectively improve user experience.
According to a first aspect of the present disclosure, there is provided a data information distribution method, including but not limited to: responding to a data request, and acquiring key information and equipment information in the data request, wherein the equipment information comprises hardware information and hardware state information; acquiring target static data information from a first resource end and acquiring dynamic data information from a second resource end according to the key information and the equipment information; processing the dynamic data information according to hardware state information in the equipment information to generate target dynamic data information; and loading the target static data information and the target dynamic data information and distributing the target static data information and the target dynamic data information to a target end.
In some exemplary embodiments of the present disclosure, acquiring target static data information from a first resource end according to the key information and the device information includes: acquiring a multi-size static data set from a first resource end according to the key information, wherein the size static data information in the multi-size static data set is associated with the key information; and determining target static data information from the multi-size static data set according to the equipment hardware information in the equipment information.
In some exemplary embodiments of the present disclosure, acquiring dynamic data information from the second resource according to the key information and the device information includes: calling a data information interface of the second resource end according to the key information and the equipment information; aiming at the acquired key information, acquiring a multi-size dynamic data set of the second resource end through the data information interface, wherein size dynamic data information in the multi-size dynamic data set is associated with the key information; and determining dynamic data information from the multi-size dynamic data set aiming at the hardware information in the acquired equipment information.
In some exemplary embodiments of the present disclosure, the determining, for hardware information in the acquired device information, dynamic data information from the multi-size dynamic data set includes: determining at least one size dynamic data information from the multi-size dynamic data set according to a first hardware information in the device information; and determining dynamic data information from the at least one size dynamic data information according to second hardware information in the equipment information, wherein the first hardware information is associated with the second hardware information.
In some exemplary embodiments of the present disclosure, the processing the dynamic data information according to the hardware state information in the device information to generate target dynamic data information includes: acquiring at least one piece of hardware state information in the equipment information; and judging whether the at least one piece of hardware state information meets a first preset condition, and compressing the dynamic data information to generate target dynamic data information when the at least one piece of hardware state information meets the first preset condition.
In some exemplary embodiments of the present disclosure, before loading the target static data information and the target dynamic data information, further comprising: inquiring whether the target dynamic data information supports active switching; and if the active switching is supported, acquiring a switching instruction, and switching the target dynamic data information.
In some exemplary embodiments of the present disclosure, the data information distribution method further includes: obtaining a task state associated with the data request; and judging whether the task state meets a second preset condition, and sending a degradation processing instruction to the target end when the task state meets the second preset condition, wherein the degradation processing instruction is used for degrading the hardware state of the target end associated with the equipment information.
In some exemplary embodiments of the disclosure, the data information distribution method further includes: acquiring hardware state information of equipment information corresponding to the data request; and judging whether the hardware state information meets a third preset condition, and sending prompt information to the target end when the third preset condition is met, wherein the prompt information comprises the hardware state information.
In some exemplary embodiments of the present disclosure, the multi-sized dynamic data set has a key-value mapping relationship with the key information.
In a second aspect of the present disclosure, there is provided a data information distribution apparatus, including but not limited to: the response module is configured to respond to a data request and acquire key information and equipment information in the data request, wherein the equipment information comprises hardware information and hardware state information; the acquisition module is configured to acquire target static data information from a first resource end and acquire dynamic data information from a second resource end according to the key information and the equipment information; the generating module is configured to process the dynamic data information according to hardware state information in the equipment information to generate target dynamic data information; and the distribution module is configured to load the target static data information and the target dynamic data information and distribute the target static data information and the target dynamic data information to a target end.
In some exemplary embodiments of the present disclosure, the obtaining module includes a first obtaining unit and a second obtaining unit, wherein the first obtaining unit is configured to: acquiring a multi-size static data set from a first resource end according to the key information, wherein the size static data information in the multi-size static data set is associated with the key information; and determining target static data information from the multi-size static data set according to the equipment hardware information in the equipment information.
In some exemplary embodiments of the present disclosure, the second acquisition unit is configured to: calling a data information interface of the second resource end according to the key information and the equipment information; aiming at the acquired key information, acquiring a multi-size dynamic data set of the second resource end through the data information interface, wherein size dynamic data information in the multi-size dynamic data set is associated with the key information; and determining dynamic data information from the multi-size dynamic data set aiming at the hardware information in the acquired equipment information.
In some exemplary embodiments of the present disclosure, the second obtaining unit further includes a first obtaining sub-module configured to: determining at least one size dynamic data information from the multi-size dynamic data set according to first hardware information in the device information; and determining dynamic data information from the at least one size dynamic data information according to second hardware information in the equipment information, wherein the first hardware information is associated with the second hardware information.
In some exemplary embodiments of the present disclosure, the generation module includes a generation unit configured to: acquiring at least one piece of hardware state information in the equipment information; and judging whether the at least one piece of hardware state information meets a first preset condition, and compressing the dynamic data information to generate target dynamic data information when the at least one piece of hardware state information meets the first preset condition.
In some exemplary embodiments of the present disclosure, the data information distribution apparatus further includes a switching module configured to: inquiring whether the target dynamic data information supports active switching; and if the active switching is supported, acquiring a switching instruction, and switching the target dynamic data information.
In some exemplary embodiments of the present disclosure, the data information distribution apparatus further includes a downgrading module configured to: obtaining a task state associated with the data request; and judging whether the task state meets a second preset condition, and sending a degradation processing instruction to the target end when the task state meets the second preset condition, wherein the degradation processing instruction is used for degrading the hardware state of the target end associated with the equipment information.
In some exemplary embodiments of the present disclosure, the data information distribution apparatus further includes a prompt module configured to: acquiring hardware state information of equipment information corresponding to the data request; and judging whether the hardware state information meets a third preset condition, and sending prompt information to the target end when the third preset condition is met, wherein the prompt information comprises the hardware state information.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a storage device for storing executable instructions that, when executed by the processor, implement the method according to the above.
A fourth aspect of the disclosure provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, implement a method according to the above.
A fifth aspect of the disclosure provides a computer program product comprising a computer program which, when executed by a processor, implements a method according to the above.
According to the embodiment of the disclosure, the key information and the device information in the data request are acquired, the target static data is acquired from the first resource end based on the key information and the device information, and the dynamic data information is acquired from the second end, so that the data information meeting different devices is acquired for different device information.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be apparent from the following description of embodiments of the disclosure, which proceeds with reference to the accompanying drawings, in which:
fig. 1 schematically shows a schematic diagram of a system architecture to which the data information distribution method of the embodiment of the present disclosure can be applied;
FIG. 2 schematically illustrates a flow chart of a data information distribution method according to an embodiment of the disclosure;
FIG. 3 schematically shows a flow chart of a data information distribution method in acquiring target static data information according to an embodiment of the present disclosure;
FIG. 4 schematically shows a flow chart of a data information distribution method in acquiring dynamic data information according to an embodiment of the present disclosure;
fig. 5 schematically shows a flowchart of a data information distribution method in operation S430 according to an embodiment of the present disclosure;
fig. 6 schematically shows a flowchart of a data information distribution method in operation S230 according to an embodiment of the present disclosure;
FIG. 7 schematically illustrates a flow chart of a data information distribution method prior to loading target static data information and target dynamic data information in accordance with an embodiment of the present disclosure;
fig. 8 schematically shows a flowchart of a data information distribution method according to an embodiment of the present disclosure in operation 600;
fig. 9 schematically shows a flowchart of a data information distribution method in operation 700 according to an embodiment of the present disclosure;
fig. 10 is a block diagram schematically showing the configuration of a data information distribution apparatus according to an embodiment of the present disclosure; and
fig. 11 schematically shows a block diagram of an electronic device adapted to implement the data information distribution method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, necessary confidentiality measures are taken, and the customs of the public order is not violated.
In the technical scheme of the disclosure, the operations of obtaining, storing, applying and the like of the related user personal information all obtain the authorization of the user.
In embodiments of the present disclosure, the term "static data information" may refer to, for example, content containing fixed data information, e.g., containing HTML, CSS, JS, pictures, etc., which may be used for direct display.
The term "dynamic data information" may for example comprise data that requires pre-processing by a program or read from a database, which data shows different data content on a page depending on different conditions.
The term "hardware information" may refer to, for example, specific information of a certain hardware of a device, such as information of a device name model, an operating system model, a CPU model, a GPU model, a memory size, a battery capacity, a screen resolution, a pixel ratio, and the like.
The term "hardware state information" may refer to specific state information of hardware in a working process, for example, information including CPU usage rate (occupancy), GPU usage rate (occupancy), remaining memory capacity, remaining battery capacity, and the like, that is, the hardware state information may feed back a current usage or occupancy state of a certain hardware in real time.
The term "first resource peer" and the term "second resource peer" may for example denote a client or a server storing different resources, e.g. a first resource peer for storing static data information and a second resource peer for storing dynamic data information.
The term "target end" may for example denote a client end for information display or information interaction. And sending the acquired data information to the target end for displaying specific data information content to the user at the target end.
In order to solve the problem that data information meeting different requirements cannot be loaded and distributed for different devices in the related art, the present disclosure provides a data information distribution method, which can be applied to a data information distribution method, an apparatus, an electronic device, a readable storage medium, and a computer program product for an application program or an application system. The data information meeting the requirements can be loaded and distributed aiming at different devices, and the user experience can be effectively improved. The data information distribution method includes but is not limited to: responding to a data request, and acquiring key information and equipment information in the data request, wherein the equipment information comprises hardware information and hardware state information; acquiring target static data information from a first resource end and acquiring dynamic data information from a second resource end according to the key information and the equipment information; processing the dynamic data information according to hardware state information in the equipment information to generate target dynamic data information; and loading the target static data information and the target dynamic data information and distributing the target static data information and the target dynamic data information to a target end.
According to the embodiment of the disclosure, the key information and the device information in the data request are acquired, the target static data is acquired from the first resource end based on the key information and the device information, and the dynamic data information is acquired from the second end, so that the data information meeting different devices is acquired for different device information.
Fig. 1 schematically shows a schematic diagram of a system architecture to which the data information distribution method of the embodiment of the present disclosure can be applied. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other architectures, devices, systems, environments or scenarios. It should be noted that the data information distribution method, the data information distribution apparatus, the electronic device, and the computer-readable storage medium provided in the embodiments of the present disclosure may be used in the related aspects of the data processing technology field and the financial field, and may also be used in other fields other than the financial field.
As shown in fig. 1, a system architecture 100 according to an exemplary embodiment of the present disclosure may include terminal devices 101, 102, 103, a network 104, and a server 105. Network 104 is the medium used to provide communication links between terminal devices 101, 102, 103 and server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (for example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the data information distribution method provided by the embodiment of the present disclosure may be generally executed by the server 105. Accordingly, the data information distribution device provided by the embodiment of the present disclosure may be generally disposed in the server 105. The data information distribution method provided by the embodiment of the present disclosure may also be executed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the data information distribution apparatus provided by the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for an implementation.
The data information distribution method of the disclosed embodiment will be described in detail below with reference to fig. 2 to 9.
Fig. 2 schematically shows a flow chart of a data information distribution method according to an embodiment of the present disclosure.
As shown in fig. 2, the data information distribution method 200 of the embodiment of the present disclosure includes operations S210 to S240.
In operation S210, in response to the data request, key information and device information in the data request are acquired, and the device information includes hardware information and hardware status information.
Illustratively, the user performs an operation corresponding to the achievement purpose on the device according to the purpose to be achieved by the user, and the processor on the device generates a data request according to the operation to acquire corresponding data. For example, the data request includes key information and device information. The shutdown information may represent a project name, a terminal type (such as Android, IOS, Web/H5), and the like, or an operating system (such as Android, IOS, windows, Linux systems), and the like. The device information includes hardware information and hardware state information of the device, where the hardware information may indicate information corresponding to a configuration of hardware, such as a signal, a size, and a version of the hardware when the device leaves a factory, the hardware state information of the device may indicate a current use state or an occupied state of the hardware during use of the hardware, for example, the hardware state information corresponding to the CPU may indicate an occupancy rate of the CPU, and the hardware state information corresponding to the battery may indicate information such as a current electric quantity of the battery or a current available time of the battery.
In the embodiment of the disclosure, when a user starts a target application, a data request is triggered through a terminal device, and the terminal device starts the target application according to specific content in the data request and loads corresponding data to display content corresponding to the target application. In this embodiment, the data request includes the above-mentioned key information and device information, and by acquiring the data request, the key information and the device information can be further acquired from the data request.
In operation S220, target static data information is acquired from the first resource side and dynamic data information is acquired from the second resource side according to the key information and the device information.
Illustratively, different data information is acquired from different positions respectively according to the key information and the device information in the data request, for example, the first resource end may be a local resource package, and target static data information is acquired from the local resource package, and the target static data information is associated with the key information and the device information in the data request.
For example, the static data information includes static text and/or static multimedia addresses, and the static text and/or static multimedia addresses may be stored in the local resource package using a Key-Value mapping relationship of Key-Value. The static data information also includes partial pictures, such as icons for multiple sizes, and the like.
The second resource side may be a server side for storing dynamic data information, and the dynamic data information may send specific dynamic data to the target side in a specific form according to the content included in the data request.
For example, the dynamic data information includes contents such as texts, pictures, videos, and the like stored in the server, and the dynamic data information and the Key information and/or the device information may be stored in a resource package of the server through a Key Value mapping relationship of a Key-corresponding Value (Key-Value), and the corresponding dynamic data information is sent to the destination according to the data request, so as to be displayed to the user.
In operation S230, the dynamic data information is processed according to the hardware status information in the device information, and target dynamic data information is generated.
In the embodiment of the present disclosure, the device information further includes hardware state information, and the hardware state information may reflect an operation state of the current device and reflect the remaining processing capability of the current device. According to the hardware state information, the dynamic data information is processed, so that the processed dynamic data information can meet the residual processing capacity corresponding to the current hardware state information, namely when the target dynamic data information is processed, the residual processing capacity corresponding to the current hardware state information can meet the processing requirement, problems caused by insufficient equipment processing capacity can be avoided, the data processing efficiency is improved, and meanwhile, the use experience of a user is improved.
In operation S240, the target static data information and the target dynamic data information are loaded and distributed to the target.
In the embodiment of the present disclosure, after obtaining the target static data information and the target dynamic data information, the information is loaded, for example, the target static text and the target dynamic text are loaded, the target static multimedia address and the target dynamic multimedia address are loaded, and the information is allocated to a target end, for example, the target end may be a Content Delivery Network (CDN), cloud storage is performed, a storage address is returned, and the returned Content is stored in a specific service, and the client may call the specific service to obtain a final Content. For example, the target may be a client.
In an embodiment of the present disclosure, acquiring the data information according to the key information and the device information includes acquiring target static data information from the first resource side and acquiring dynamic data information from the second resource side.
Fig. 3 schematically shows a flowchart of a data information distribution method in acquiring target static data information according to an embodiment of the present disclosure.
As shown in fig. 3, the process 300 of acquiring the target static data information from the first resource side includes operations S310 to S320.
In operation S310, a multi-size static data set is obtained from the first resource side according to the key information, and size static data information in the multi-size static data set is associated with the key information.
Illustratively, the first resource side stores a plurality of multi-size static data sets composed of static information of different sizes. For example, if the key information includes a terminal type, a multi-size static data set corresponding to the terminal type in the key information is obtained from the first resource side according to the difference of the terminal type, and the multi-size static data set includes static data information of different sizes. Different sizes of static data information are associated with the key information.
In operation S320, target static data information is determined from the multi-sized static data set according to device hardware information in the device information.
Illustratively, the device information includes device hardware information, and different pieces of device hardware information have differences in processing capability and processing speed for the same resource, while different pieces of hardware information process different pieces of static data information having differences in size, and the like. The target static data information is determined from the multi-size static data set according to the device hardware information in the device information, for example, the size static data information corresponding to the current device hardware information is determined from the multi-size static data set, and for example, the size static data corresponding to the device hardware information is determined. Specifically, for example, the hardware information of the device is the screen resolution, and the static data information having the same size as the screen resolution of the device is determined from the multi-size static data set as the target static data information.
Fig. 4 schematically shows a flowchart of a data information distribution method in acquiring dynamic data information according to an embodiment of the present disclosure.
As shown in fig. 4, the process 400 of acquiring dynamic data information from the second resource side includes operations S410 to S430.
In operation S410, a data information interface of the second resource side is called according to the key information and the device information.
In the embodiment of the disclosure, since the key information and the device information in the data request are different, the key information and the device information correspond to different data information interfaces of the second resource side, so that the data information acquired from different data information interfaces can meet the requirements of different terminal types or device information.
Illustratively, the data interface is called according to the key information and the corresponding relation between the device information and the data information interface of the second resource end.
In operation S420, for the acquired key information, a multi-size dynamic data set of the second resource side is acquired through the data information interface, and size dynamic data information in the multi-size dynamic data set is associated with the key information.
In the embodiment of the present disclosure, a multi-size dynamic data set is obtained through a data information interface, where the multi-size dynamic data set includes a plurality of pieces of size dynamic data information of different sizes, and the size dynamic data information is associated with key information, for example, the plurality of pieces of size dynamic data information may be associated with one piece of key information, or each piece of size dynamic data information is associated with one piece of key information.
In operation S430, dynamic data information is determined from a multi-sized dynamic data set with respect to hardware information in the acquired device information.
In an embodiment of the present disclosure, the dynamic data information may be, for example, dynamic data information of a specific size corresponding to the multi-size dynamic data set. For example, if the hardware information in the device information is screen resolution information of the device, the size dynamic data information corresponding to the size of the screen resolution in the multi-size dynamic data set may be determined according to the screen resolution information, and the size dynamic data information may be used as the dynamic data information.
Fig. 5 schematically shows a flowchart of a data information distribution method in operation S430 according to an embodiment of the present disclosure.
As shown in fig. 5, the operation S430 of determining dynamic data information from the multi-sized dynamic data set may include, for example, operations S431 to S432 with respect to hardware information in the acquired device information.
In operation S431, at least one size dynamic data information is determined from the plurality of size dynamic data sets according to the first hardware information among the device information.
Illustratively, the device information includes a plurality of hardware information, the first hardware information may be, for example, a pixel ratio of the device, at least one size dynamic data information is determined according to the first hardware information in the device information, and corresponding size dynamic data information is determined from a plurality of size dynamic data sets according to the pixel ratio of the device, where the determined size dynamic data information may be one or more. For example, the size dynamics data information having the same pixel ratio may be plural.
In operation S432, dynamic data information is determined from at least one size dynamic data information according to second hardware information in the device information, wherein the first hardware information is associated with the second hardware information.
Illustratively, after determining the at least one size dynamic data information according to the first hardware information, determining the dynamic data information in the at least one size dynamic data information according to the second hardware information. Namely, the dynamic data information meeting the second hardware information is screened from the at least one size dynamic data information. For example, at least one size dynamic data information is filtered according to the device resolution information in the device information, so that one data information satisfying the device resolution is filtered as the dynamic data information.
In the embodiment of the present disclosure, the first hardware information is associated with the second hardware information, for example, it may mean that the first hardware information has a direct association relationship with the second hardware information, or has an indirect association relationship. For example, the pixel ratio in the device information and the resolution information in the device information have an indirect correlation, which each have an influence on the display effect of the device.
Fig. 6 schematically shows a flowchart of a data information distribution method in operation S230 according to an embodiment of the present disclosure.
As shown in fig. 6, operation S230 includes operations S231 through S233.
In operation S231, at least one piece of hardware state information among the device information is acquired.
For example, at least one of hardware state information such as CPU occupancy, GPU occupancy, memory usage, battery level, and the like in the device information is obtained.
In operation S232, it is determined whether at least one piece of hardware status information satisfies a first preset condition.
The first preset condition may refer to a condition that each piece of hardware status information exceeds a preset threshold, for example, the CPU occupancy exceeds 80%, or the GPU occupancy exceeds 80%, or the memory usage exceeds 80%, or the battery power is lower than 20%.
In operation S233, when the first preset condition is satisfied, the dynamic data information is compressed, and target dynamic data information is generated.
In this embodiment, when at least one piece of hardware state information satisfies a first preset condition, the dynamic data information is compressed, for example, the dynamic data information includes multimedia information, and the multimedia information is compressed, so that the processing pressure of the device for processing the dynamic data information is reduced, the processing capability of different devices in different hardware states is adapted, and the user experience is improved.
In other optional embodiments, when specific hardware state information in the hardware state information satisfies the first preset condition, the dynamic data information may be compressed.
Fig. 7 schematically shows a flowchart of a data information distribution method before loading target static data information and target dynamic data information according to an embodiment of the present disclosure.
As illustrated in fig. 7, the flow 500 before loading the target static data information and the target dynamic data information may include operations S510 to S520.
In operation S510, it is queried whether the target dynamic data information supports the active handover.
In an embodiment of the present disclosure, before loading the target static data information and the target dynamic data information, whether the target dynamic data information supports active handover is queried. Therefore, the user can acquire different target dynamic data information according to actual requirements. For example, in the using process, a user prefers to acquire dynamic resources with larger size and higher definition, and can tolerate the problem of low processing speed, so that an active switching option is provided for the user.
In operation S520, if the active handover is supported, a handover command is obtained, and the target dynamic data information is handed over.
In the embodiment of the disclosure, if the active switching is supported, it is preferred to determine whether the user performs the active switching, that is, to obtain a switching instruction, and if the switching instruction is provided, the target dynamic data information is switched according to the content corresponding to the switching instruction, so as to meet the user-defined requirement of the user.
Fig. 8 schematically shows a flowchart of a data information distribution method according to an embodiment of the present disclosure in operation 600.
In an embodiment of the present disclosure, the data information distribution method further includes operation 600, where the operation 600 may include, for example, operations S610 to S630.
In operation S610, a task status associated with a data request is acquired.
In embodiments of the present disclosure, the task state may be, for example, a current state of a task associated with the data request, such as a state in execution, or in interaction with a user, etc.
In operation S620, it is determined whether the task state satisfies a second preset condition.
In an embodiment of the present disclosure, the second preset condition may be, for example, that no interaction with the user is made, or that the task is in a state where execution is suspended.
In operation S630, when a second preset condition is satisfied, a degradation processing instruction is sent to the target, where the degradation processing instruction is used to degrade a hardware state of the target associated with the device information.
In the embodiment of the present disclosure, when the task state satisfies a second preset condition, for example, the task state is not interacting with the user or is in a task suspension state, a degradation processing instruction is sent to the target (for example, the client), and the hardware state of the target is degraded, for example, the CPU occupancy rate, the GPU occupancy rate, the memory usage rate, and the like are reduced, so as to reduce the processing pressure of the hardware of the target device. And the priority of the task interacted with the user is preferentially ensured, and the user experience of the user in the using process is improved.
Fig. 9 schematically illustrates a flowchart of a data information distribution method according to an embodiment of the present disclosure in operation 700.
In an embodiment of the present disclosure, the data information distribution method further includes operation 700, where the operation 700 may include, for example, operations S710 to S730.
In operation S710, hardware state information of device information corresponding to the data request is acquired.
In the embodiments of the present disclosure, the hardware state information of the device information corresponding to the data request may be, for example, hardware state information at the time of receiving the data request or hardware state information at the time of performing execution for the data request, which may reflect an actual state of the hardware at the time of executing a task corresponding to the data request.
Whether to remind the user is determined according to the hardware state of the hardware when executing the task corresponding to the data request, for example, when executing the task corresponding to the data request, the hardware state is in a full state, such as CPU occupancy full or GPU occupancy full. The user needs to be alerted to the current hardware state.
In operation S720, it is determined whether the hardware state information satisfies a third preset condition.
In the embodiment of the present disclosure, the third preset condition may include, for example, whether a hardware status of the device information corresponding to the data request exceeds a set threshold, such as information that a CPU occupancy rate, a GPU occupancy rate exceeds 95%, or a power amount is lower than 5%.
In operation S730, when a third preset condition is satisfied, a prompt message is sent to the target, where the prompt message includes hardware status information.
In the embodiment of the disclosure, the condition of hardware state information of a user is reminded by sending the prompt message to the target terminal, so that the problems of the user in the task execution process are reduced.
Fig. 10 schematically shows a block diagram of the structure of a data information distribution apparatus according to an embodiment of the present disclosure.
As shown in fig. 10, the data information distribution apparatus 800 of the embodiment of the present disclosure includes a response module 801, an acquisition module 802, a generation module 803, and a distribution module 804.
The response module 801 is configured to respond to the data request and obtain key information and device information in the data request, where the device information includes hardware information and hardware status information. In an embodiment, the response module 801 may be configured to perform the operation S210 described above, which is not described herein again.
The obtaining module 802 is configured to obtain target static data information from the first resource side and obtain dynamic data information from the second resource side according to the key information and the device information. The obtaining module 802 may be configured to perform the operation S220 described above, and is not described herein again.
The generating module 803 is configured to process the dynamic data information according to the hardware state information in the device information, and generate target dynamic data information. The generating module 803 may be configured to perform the operation S230 described above, which is not described herein again.
And the distribution module 804 is configured to load the target static data information and the target dynamic data information and distribute the target static data information and the target dynamic data information to the target terminal. The allocating module 804 may be configured to perform the operation S240 described above, which is not described herein again.
In some exemplary embodiments of the present disclosure, the obtaining module 802 comprises a first obtaining unit and a second obtaining unit, wherein the first obtaining unit is configured to: acquiring a multi-size static data set from a first resource end according to the key information, wherein the size static data information in the multi-size static data set is associated with the key information; and determining target static data information from the multi-size static data set according to the hardware information of the equipment in the equipment information.
In some exemplary embodiments of the present disclosure, the second acquisition unit is configured to: calling a data information interface of the second resource end according to the key information and the equipment information; aiming at the acquired key information, acquiring a multi-size dynamic data set of a second resource end through a data information interface, wherein size dynamic data information in the multi-size dynamic data set is associated with the key information; and determining dynamic data information from the multi-size dynamic data set according to the hardware information in the acquired equipment information.
In some exemplary embodiments of the present disclosure, the second obtaining unit further includes a first obtaining sub-module configured to: determining at least one piece of size dynamic data information from a multi-size dynamic data set according to first hardware information in the equipment information; and determining dynamic data information from the at least one size dynamic data information according to second hardware information in the equipment information, wherein the first hardware information is associated with the second hardware information.
In some exemplary embodiments of the present disclosure, the generating module 803 comprises a generating unit configured to: acquiring at least one piece of hardware state information in the equipment information; and judging whether at least one piece of hardware state information meets a first preset condition, and compressing the dynamic data information to generate target dynamic data information when the at least one piece of hardware state information meets the first preset condition.
In some exemplary embodiments of the present disclosure, the data information distribution apparatus 800 further includes a switching module configured to: inquiring whether the target dynamic data information supports active switching; and if the active switching is supported, acquiring a switching instruction and switching the target dynamic data information.
In some exemplary embodiments of the present disclosure, the data information distribution apparatus 800 further comprises a downgrading module configured to: acquiring a task state associated with the data request; and judging whether the task state meets a second preset condition, and sending a degradation processing instruction to the target end when the task state meets the second preset condition, wherein the degradation processing instruction is used for degrading the hardware state of the target end associated with the equipment information.
In some exemplary embodiments of the present disclosure, the data information distribution apparatus 800 further includes a prompting module configured to: acquiring hardware state information of equipment information corresponding to the data request; and judging whether the hardware state information meets a third preset condition, and sending prompt information to the target end when the third preset condition is met, wherein the prompt information comprises the hardware state information.
According to the embodiment of the present disclosure, any multiple modules of the response module 801, the obtaining module 802, the generating module 803, the allocating module 804, the first obtaining unit, the second obtaining unit, the first obtaining sub-module, the generating unit, the switching module, the degrading module, and the prompting module may be combined and implemented in one module, or any one module thereof may be split into multiple modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the response module 801, the obtaining module 802, the generating module 803, the allocating module 804, the first obtaining unit, the second obtaining unit, the first obtaining sub-module, the generating unit, the switching module, the degrading module, and the prompting module may be at least partially implemented as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or implemented by any one of three implementations of software, hardware, and firmware, or by a suitable combination of any several of them. Alternatively, at least one of the response module 801, the obtaining module 802, the generating module 803, the allocating module 804, the first obtaining unit, the second obtaining unit, the first obtaining sub-module, the generating unit, the switching module, the downgrading module and the prompting module may be at least partially implemented as a computer program module which, when executed, may perform a corresponding function.
Fig. 11 schematically shows a block diagram of an electronic device adapted to implement the data information distribution method according to an embodiment of the present disclosure. The electronic device shown in fig. 11 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 11, an electronic apparatus 900 according to an embodiment of the present disclosure includes a processor 901 which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)902 or a program loaded from a storage portion 908 into a Random Access Memory (RAM) 903. Processor 901 may comprise, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 901 may also include on-board memory for caching purposes. The processor 901 may comprise a single processing unit or a plurality of processing units for performing the different actions of the method flows according to embodiments of the present disclosure.
In the RAM 903, various programs and data necessary for the operation of the electronic apparatus 900 are stored. The processor 901, ROM 902, and RAM 903 are connected to each other by a bus 904. The processor 901 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 902 and/or the RAM 903. Note that the programs may also be stored in one or more memories other than the ROM 902 and the RAM 903. The processor 901 may also perform various operations of the method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
The present disclosure also provides a computer-readable storage medium, which may be embodied in the device/apparatus/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The above-mentioned computer-readable storage medium carries one or more programs which, when executed, implement the data information distribution method according to an embodiment of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM 902 and/or RAM 903 described above and/or one or more memories other than the ROM 902 and RAM 903.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated in the flow chart. When the computer program product runs in a computer system, the program code is used for causing the computer system to realize the data information distribution method provided by the embodiment of the disclosure.
The computer program performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure when executed by the processor 901. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed in the form of a signal on a network medium, and downloaded and installed through the communication section 909 and/or installed from the removable medium 911. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 909, and/or installed from the removable medium 911. The computer program, when executed by the processor 901, performs the above-described functions defined in the system of the embodiment of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
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 disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). 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 the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.
Claims (13)
1. A data information distribution method comprises the following steps:
responding to a data request, and acquiring key information and equipment information in the data request, wherein the equipment information comprises hardware information and hardware state information;
acquiring target static data information from a first resource end and acquiring dynamic data information from a second resource end according to the key information and the equipment information;
processing the dynamic data information according to hardware state information in the equipment information to generate target dynamic data information;
and loading the target static data information and the target dynamic data information and distributing the target static data information and the target dynamic data information to a target end.
2. The data information distribution method according to claim 1,
acquiring target static data information from a first resource end according to the key information and the equipment information, wherein the acquisition comprises the following steps:
acquiring a multi-size static data set from a first resource end according to the key information, wherein the size static data information in the multi-size static data set is associated with the key information;
and determining target static data information from the multi-size static data set according to the equipment hardware information in the equipment information.
3. The data information distribution method according to claim 1,
acquiring dynamic data information from a second resource end according to the key information and the equipment information, wherein the dynamic data information comprises:
calling a data information interface of the second resource end according to the key information and the equipment information;
aiming at the acquired key information, acquiring a multi-size dynamic data set of the second resource end through the data information interface, wherein size dynamic data information in the multi-size dynamic data set is associated with the key information;
and determining dynamic data information from the multi-size dynamic data set aiming at the hardware information in the acquired equipment information.
4. The data information distribution method according to claim 3,
the determining, for hardware information in the acquired device information, dynamic data information from the multi-size dynamic data set includes:
determining at least one size dynamic data information from the multi-size dynamic data set according to a first hardware information in the device information;
and determining dynamic data information from the at least one size dynamic data information according to second hardware information in the equipment information, wherein the first hardware information is associated with the second hardware information.
5. The data information distribution method according to claim 1,
the processing the dynamic data information according to the hardware state information in the device information to generate target dynamic data information includes:
acquiring at least one piece of hardware state information in the equipment information;
determining whether the at least one hardware state information satisfies a first preset condition,
and when the first preset condition is met, compressing the dynamic data information to generate target dynamic data information.
6. The data information distribution method according to claim 1,
before loading the target static data information and the target dynamic data information, the method further comprises:
inquiring whether the target dynamic data information supports active switching;
and if the active switching is supported, acquiring a switching instruction, and switching the target dynamic data information.
7. The data information distribution method according to claim 1, further comprising:
obtaining a task state associated with the data request;
judging whether the task state meets a second preset condition or not,
and when the second preset condition is met, sending a degradation processing instruction to the target end, wherein the degradation processing instruction is used for degrading the hardware state of the target end associated with the equipment information.
8. The data information distribution method according to claim 1, further comprising:
acquiring hardware state information of equipment information corresponding to the data request;
judging whether the hardware state information meets a third preset condition or not,
and when a third preset condition is met, sending prompt information to the target terminal, wherein the prompt information comprises the hardware state information.
9. The data information distribution method according to claim 3,
the multi-size dynamic data set and the key information have a key value mapping relationship.
10. A data information distribution apparatus comprising:
the response module is configured to respond to a data request and acquire key information and equipment information in the data request, wherein the equipment information comprises hardware information and hardware state information;
the acquisition module is configured to acquire target static data information from a first resource end and acquire dynamic data information from a second resource end according to the key information and the equipment information;
the generating module is configured to process the dynamic data information according to hardware state information in the equipment information to generate target dynamic data information;
and the distribution module is configured to load the target static data information and the target dynamic data information and distribute the target static data information and the target dynamic data information to a target end.
11. An electronic device, comprising:
one or more processors;
storage means for storing executable instructions that, when executed by the processor, implement the method of any one of claims 1 to 9.
12. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, implement the method of any one of claims 1 to 9.
13. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210477901.4A CN114675974A (en) | 2022-04-29 | 2022-04-29 | Data information distribution method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210477901.4A CN114675974A (en) | 2022-04-29 | 2022-04-29 | Data information distribution method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114675974A true CN114675974A (en) | 2022-06-28 |
Family
ID=82080554
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210477901.4A Pending CN114675974A (en) | 2022-04-29 | 2022-04-29 | Data information distribution method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114675974A (en) |
-
2022
- 2022-04-29 CN CN202210477901.4A patent/CN114675974A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113132489A (en) | Method, device, computing equipment and medium for downloading file | |
CN109697055B (en) | Method and system for generating mobile App page | |
CN109753622B (en) | Static resource management method and device, storage medium and electronic equipment | |
US9906626B2 (en) | Resource demand-based network page generation | |
CN113900834A (en) | Data processing method, device, equipment and storage medium based on Internet of things technology | |
CN111309216A (en) | List page display method and device, computer equipment and storage medium | |
CN113505302A (en) | Method, device and system for supporting dynamic acquisition of buried point data and electronic equipment | |
CN113779054A (en) | Data updating method, device, server, storage medium and program product | |
CN114116092A (en) | Cloud desktop system processing method, cloud desktop system control method and related equipment | |
CN111580882A (en) | Application program starting method, device, computer system and medium | |
CN112965916B (en) | Page testing method, page testing device, electronic equipment and readable storage medium | |
CN113553123A (en) | Data processing method and device, electronic equipment and storage medium | |
CN113986258A (en) | Service publishing method, device, equipment and storage medium | |
CN112882895A (en) | Health examination method, device, computer system and readable storage medium | |
CN113535726A (en) | Database capacity expansion method and device | |
CN109951737B (en) | Video processing method, video processing device, electronic equipment and computer-readable storage medium | |
US20160117304A1 (en) | Standalone document management method | |
CN114675974A (en) | Data information distribution method and device, electronic equipment and storage medium | |
US20190141152A1 (en) | Web push notifications in the background | |
CN114356713A (en) | Thread pool monitoring method and device, electronic equipment and storage medium | |
CN114647499A (en) | Asynchronous job task concurrency control method and device, electronic equipment and storage medium | |
CN112182400A (en) | Message processing method, message processing device, electronic device and storage medium | |
CN112579282A (en) | Data processing method, device, system and computer readable storage medium | |
CN113655977B (en) | Material display method and device, electronic equipment and storage medium | |
CN114928608B (en) | Method, device, equipment and storage medium for processing multimedia resources |
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 |