CN109101344B - Data distribution method - Google Patents
Data distribution method Download PDFInfo
- Publication number
- CN109101344B CN109101344B CN201810718706.XA CN201810718706A CN109101344B CN 109101344 B CN109101344 B CN 109101344B CN 201810718706 A CN201810718706 A CN 201810718706A CN 109101344 B CN109101344 B CN 109101344B
- Authority
- CN
- China
- Prior art keywords
- data
- distributed
- queue
- routing address
- distribution method
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
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/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/548—Queue
Abstract
The invention relates to the technical field of information, in particular to a data distribution method, which comprises the following steps: step S1, acquiring a data request of a user; step S2, according to the data request, selecting the corresponding data queue from the queue resource record list according to a preset routing address selection rule; step S3, judging whether the selected data queue completely meets the data request; if yes, go to step S4; if not, go to step S6; step S4, taking out the data to be distributed in the data queue; step S5, updating the parameters in the route address selection rule according to the extraction condition of the data to be distributed; step S6, end; the distributed data to be distributed can be efficiently and accurately managed, and the reliability is high.
Description
Technical Field
The invention relates to the technical field of information, in particular to a data distribution method.
Background
With the development of the internet, it is common practice to transmit and distribute data by using the internet. Enterprises store and distribute data according to certain rules by using specific servers, and unified management of the data can be realized.
However, with the occurrence of a large number of distributed devices, the storage mode of data changes, and the original centralized storage of the server is changed into the distributed storage, so that the storage pressure and the cost of the server are greatly reduced.
However, the management techniques and capabilities of data present significant challenges if efficient and accurate management of the data of the distributed storage is required.
Disclosure of Invention
In order to solve the above problems, the present invention provides a data allocation method, wherein data to be allocated are pre-stored in a plurality of data queues, and a queue resource record table about the storage condition of each data queue is formed;
each data queue has a corresponding routing address to form a routing address list;
further comprising:
step S1, acquiring a data request of a user;
step S2, according to the data request, selecting the corresponding data queue from the queue resource record list according to a preset routing address selection rule;
step S3, determining whether the selected data queue completely satisfies the data request;
if yes, go to step S4; if not, go to step S6;
step S4, fetching the data to be distributed in the data queue;
step S5, updating the parameters in the routing address selection rule according to the extraction condition of the data to be distributed;
step S6 ends.
In the data distribution method, the data to be distributed is electronic ticket data.
In the above data distribution method, the routing address selection rule specifically includes:
a selection weight set is formed about the routing address of each data queue, and a selection weight value corresponding to each routing address is recorded in the selection weight set;
in step S5, parameters in the routing address selection rule are updated, specifically, the selection weight value of the relevant routing address is updated.
In the above data distribution method, in step S3, the specific determination rule is:
and judging whether the quantity of the data to be distributed in the selected data queue meets the data request or not.
The data allocation method described above, wherein the data to be allocated has a plurality of categories;
and the data to be distributed of the same category are stored in the same data queue.
In the above data distribution method, the routing address is an IP address of the router device.
In the data distribution method, after the data file containing the data to be distributed is analyzed, the data to be distributed obtained through analysis is pre-stored in the plurality of data queues.
In the above data distribution method, the data file obtained by analysis is recorded in a database;
in step S5, the database is further updated according to the extraction condition of the data to be distributed.
In the above data allocation method, the queue resource record table regarding the storage condition of each data queue specifically includes:
the data queue comprises a number information, a position information, a priority information, a storage information type information and a storage limit information.
In the data allocation method, the data to be allocated is pre-stored in the plurality of data queues according to a preset storage rule;
the preset storage rule is as follows: randomly, or sequentially, or in priority order.
Has the advantages that: the data distribution method provided by the invention can be used for efficiently and accurately managing the distributed data to be distributed, and is high in reliability.
Drawings
FIG. 1 is a flowchart illustrating steps of a data distribution method according to an embodiment of the present invention.
Detailed Description
The invention is further illustrated with reference to the following figures and examples.
In a preferred embodiment, as shown in fig. 1, a data allocation method is proposed, in which data to be allocated are pre-stored in a plurality of data queues, and a queue resource record table about the storage condition of each data queue is formed;
each data queue has a corresponding routing address to form a routing address list;
the method can also comprise the following steps:
step S1, acquiring a data request of a user;
step S2, according to the data request, selecting the corresponding data queue from the queue resource record list according to a preset routing address selection rule;
step S3, judging whether the selected data queue completely meets the data request;
if yes, go to step S4; if not, go to step S6;
step S4, taking out the data to be distributed in the data queue;
step S5, updating the parameters in the route address selection rule according to the extraction condition of the data to be distributed;
step S6 ends.
In the above technical solution, the data to be distributed should be data with different identifications, for example, code data or coded data that are different from each other; after the user initiates a data request, the server for distribution can distribute the corresponding data to be distributed to the user initiating the data request or the designated user according to the content of the data request; because the quantity of the data to be distributed is generally fixed, or the data to be distributed of the same kind is only issued in a fixed quantity, after one data to be distributed is distributed, the data to be distributed needs to be deleted from the row and column to be distributed, thereby avoiding the repeated distribution of the same data to be distributed; because different users have different routing addresses, different data to be distributed need to be stored in data queues corresponding to different routing addresses, and when the data to be distributed is taken out, the corresponding amount of data to be distributed can be taken out from the related data queues; the specific data transmission process is a conventional technical means in the field and is not described herein again; the queue resource record table is typically dynamic and may also record various additional information or data regarding the storage of the data queue.
In a preferred embodiment, the data to be distributed may be electronic ticket data, and in particular may be electronic ticket coded data.
In a preferred embodiment, the routing address selection rule is specifically:
a selection weight set is formed about the routing address of each data queue, and a selection weight value corresponding to each routing address is recorded in the selection weight set;
in step S5, parameters in the routing address selection rule are updated, specifically, the selection weight value of the relevant routing address is updated.
In the above technical solution, the selection weight set may be in the form of a list or a neural network, and a routing address with a large weight value is generally selected and preferentially allocated.
In a preferred embodiment, in step S3, the specific determination rule is:
and judging whether the quantity of the data to be distributed in the selected data queue meets the data request.
In the above technical solution, the data to be distributed may have a specific category, and if the requested data to be distributed has a plurality of categories, it may be determined whether the number of the data to be distributed in each category is satisfied, and the process goes to step S4 if all the numbers are satisfied.
In a preferred embodiment, the data to be distributed has a plurality of categories;
the data to be allocated of the same category are stored in the same data queue.
In a preferred embodiment, the routing address is an IP address of the router device.
In a preferred embodiment, after the data file containing the data to be distributed is analyzed, the data to be distributed obtained through analysis is pre-stored in a plurality of data queues.
In the technical scheme, the data file of the data to be distributed can have a specific format, and batch operation can be rapidly carried out.
In the above embodiment, preferably, the data file obtained by parsing is recorded in a database;
in step S5, the database is also updated according to the retrieval condition of the data to be distributed, so as to ensure that the retrieval condition of the data to be distributed is the latest in the database, which is convenient for query and management.
In a preferred embodiment, the queue resource record table related to the storage condition of each data queue may specifically include:
information on the number of data queues, and/or location information, and/or priority information, and/or information on the type of information to be stored, and/or information on the limits of storage.
In a preferred embodiment, the data to be distributed is pre-stored in a plurality of data queues according to a preset storage rule;
the preset storage rule is as follows: random storage, sequential storage, priority order storage, and the like.
In summary, the data distribution method provided by the present invention includes: step S1, acquiring a data request of a user; step S2, according to the data request, selecting the corresponding data queue from the queue resource record list according to a preset routing address selection rule; step S3, judging whether the selected data queue completely meets the data request; if yes, go to step S4; if not, go to step S6; step S4, taking out the data to be distributed in the data queue; step S5, updating the parameters in the route address selection rule according to the extraction condition of the data to be distributed; step S6, end; the distributed data to be distributed can be efficiently and accurately managed, and the reliability is high.
While the specification concludes with claims defining exemplary embodiments of particular structures for practicing the invention, it is believed that other modifications will be made in the spirit of the invention. While the above invention sets forth presently preferred embodiments, these are not intended as limitations.
Various alterations and modifications will no doubt become apparent to those skilled in the art after having read the above description. Therefore, the appended claims should be construed to cover all such variations and modifications as fall within the true spirit and scope of the invention. Any and all equivalent ranges and contents within the scope of the claims should be considered to be within the intent and scope of the present invention.
Claims (7)
1. A data distribution method is characterized in that data to be distributed are prestored in a plurality of data queues, and a queue resource record table about the storage condition of each data queue is formed;
each data queue has a corresponding routing address to form a routing address list;
further comprising:
step S1, acquiring a data request of a user;
step S2, according to the data request, selecting the corresponding data queue from the queue resource record list according to a preset routing address selection rule;
step S3, determining whether the selected data queue completely satisfies the data request;
if yes, go to step S4; if not, go to step S6;
step S4, fetching the data to be distributed in the data queue;
step S5, updating the parameters in the routing address selection rule according to the extraction condition of the data to be distributed;
step S6, end;
the routing address selection rule specifically includes:
forming a selection weight set about the routing address of each data queue, wherein the selection weight set records the selection weight value corresponding to each routing address;
in step S5, parameters in the routing address selection rule are updated, specifically, the selection weight value of the relevant routing address is updated;
in step S3, the specific determination rule is:
judging whether the quantity of the data to be distributed in the selected data queue meets the data request or not;
the routing address is an IP address of the router device.
2. The data distribution method according to claim 1, wherein the data to be distributed is electronic ticket data.
3. The data distribution method according to claim 1, wherein the data to be distributed has a plurality of categories;
and the data to be distributed of the same category are stored in the same data queue.
4. The data distribution method according to claim 1, wherein after the data file containing the data to be distributed is parsed, the parsed data to be distributed is pre-stored in the plurality of data queues.
5. The data distribution method of claim 4, wherein the parsed data file is recorded in a database;
in step S5, the database is further updated according to the extraction condition of the data to be distributed.
6. The data allocation method according to claim 1, wherein the queue resource record table regarding the storage status of each data queue specifically includes:
the data queue comprises a number information, a position information, a priority information, a storage information type information and a storage limit information.
7. The data distribution method according to claim 1, wherein the data to be distributed is pre-stored in a plurality of the data queues according to a preset storage rule;
the preset storage rule is as follows: randomly, or sequentially, or in priority order.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810718706.XA CN109101344B (en) | 2018-06-29 | 2018-06-29 | Data distribution method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810718706.XA CN109101344B (en) | 2018-06-29 | 2018-06-29 | Data distribution method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109101344A CN109101344A (en) | 2018-12-28 |
CN109101344B true CN109101344B (en) | 2022-04-12 |
Family
ID=64845499
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810718706.XA Active CN109101344B (en) | 2018-06-29 | 2018-06-29 | Data distribution method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109101344B (en) |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI276322B (en) * | 2005-12-28 | 2007-03-11 | Ind Tech Res Inst | A system and a method of request scheduling using request classification and allowable server resource for the differentiated quality of service |
CN103516585B (en) * | 2012-06-29 | 2017-04-26 | 北京奇虎科技有限公司 | Method and system for distributing messages according to priorities |
US9390055B2 (en) * | 2012-07-17 | 2016-07-12 | Coho Data, Inc. | Systems, methods and devices for integrating end-host and network resources in distributed memory |
CN103019649B (en) * | 2012-11-29 | 2016-08-31 | 北京奇虎科技有限公司 | Information providing method and equipment |
CN103473334B (en) * | 2013-09-18 | 2017-01-11 | 中控技术(西安)有限公司 | Data storage method, inquiry method and system |
CN103713895B (en) * | 2013-11-29 | 2017-12-05 | 北京奇虎科技有限公司 | A kind of data transmission method for uplink and device |
CN104125167A (en) * | 2014-07-24 | 2014-10-29 | 海信集团有限公司 | Flow control method and device |
CN104954468A (en) * | 2015-06-18 | 2015-09-30 | 小米科技有限责任公司 | Resource allocation method and resource allocation device |
US10044638B2 (en) * | 2016-05-26 | 2018-08-07 | 1Qb Information Technologies Inc. | Methods and systems for quantum computing |
US20170351555A1 (en) * | 2016-06-03 | 2017-12-07 | Knuedge, Inc. | Network on chip with task queues |
CN106936926B (en) * | 2017-04-18 | 2020-05-15 | 广州华多网络科技有限公司 | Method and system for accessing data node |
-
2018
- 2018-06-29 CN CN201810718706.XA patent/CN109101344B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN109101344A (en) | 2018-12-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10250526B2 (en) | Method and apparatus for increasing subresource loading speed | |
US20080320003A1 (en) | Scaling network services using dns | |
US11775480B2 (en) | Method and system for deleting obsolete files from a file system | |
CN108829745B (en) | Service data management method and device and electronic equipment | |
US10242102B2 (en) | Network crawling prioritization | |
CN108833584B (en) | Message pushing method, terminal, server and computer storage medium | |
CN112131507A (en) | Website content processing method, device, server and computer-readable storage medium | |
CN107704475B (en) | Multilayer distributed unstructured data storage method, query method and device | |
CN108154024A (en) | A kind of data retrieval method, device and electronic equipment | |
US20140006438A1 (en) | Virtual agent response to customer inquiries | |
US20170104683A1 (en) | Dynamically segmenting traffic for a/b testing in a distributed computing environment | |
CN109101344B (en) | Data distribution method | |
CN112084021A (en) | Interface configuration method, device and equipment of education system and readable storage medium | |
CN107967305A (en) | Image file upload method, server and readable storage medium storing program for executing | |
CN108737493B (en) | Address allocation method and device and electronic equipment | |
CN109804349B (en) | System and method for reducing download requirements | |
JP4286828B2 (en) | Web page patrol device and web page patrol program | |
KR101040822B1 (en) | Contents Management System and Method for Downloading of the Optimum Contents to Mobile Communication Terminal | |
CN103609074B (en) | Ask to route using specific WEB | |
CN112487277B (en) | Data distribution method and device, readable storage medium and electronic equipment | |
CN112491939B (en) | Multimedia resource scheduling method and system | |
JP6484767B1 (en) | User attribute estimation system based on IP address | |
CN111857955A (en) | Method for automatically constructing and updating resource configuration information in heterogeneous cloud environment | |
JPH1093619A (en) | Electronic post-office box | |
CN111131264A (en) | Video networking communication method and first video networking client |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |