CN106506677A - A kind of method and apparatus of data management - Google Patents
A kind of method and apparatus of data management Download PDFInfo
- Publication number
- CN106506677A CN106506677A CN201611059540.2A CN201611059540A CN106506677A CN 106506677 A CN106506677 A CN 106506677A CN 201611059540 A CN201611059540 A CN 201611059540A CN 106506677 A CN106506677 A CN 106506677A
- Authority
- CN
- China
- Prior art keywords
- website
- data source
- access request
- user
- data
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1008—Server selection for load balancing based on parameters of servers, e.g. available memory or workload
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
Abstract
The embodiment of the present invention proposes a kind of method and apparatus of data management, and wherein, the method includes:The access request of receive user;Determine data source Key of website corresponding to the access request;Wherein, data source Key is associated with the website data source of the website;The website data source carries out dynamically distributes according to loading condition and obtains;The access request is processed based on the website data source.With this by the website data source of loading condition dynamically distributes, it is achieved that load balancing.
Description
Technical field
The present invention relates to computer and data processing field, more particularly to a kind of method and apparatus of data management.
Background technology
With developing rapidly for Internet technology and ecommerce, person shopping is more and more on the net, to the steady of website
The requirement more and more higher of qualitative and response speed, but at present not well solution come ensure website can be while supporting more
Many people access and use.
Content of the invention
For prior art, the embodiment of the present invention proposes a kind of method and apparatus of data management, existing in order to overcome
Defect in technology.
Specifically, the present invention proposes embodiment in detail below:
The embodiment of the present invention proposes a kind of method of data management, including:
The access request of receive user;
Determine data source Key of website corresponding to the access request;Wherein, data source Key and the website
Website data source associates;The website data source carries out dynamically distributes according to loading condition and obtains;
The access request is processed based on the website data source.
In a specific embodiment, before the access request of receive user, also include:
The information of each data source is obtained from MDL;
Corresponding data are gone out based on the information retrieval of each data source and is cached.
In a specific embodiment, data source Key of website corresponding to the access request is determined, including:
Based on the second level domain that the access request determines corresponding website;
Judge whether the user is to log in for the first time;
If the determination result is YES, then data source Key of the website is obtained by the second level domain;
Data source Key of acquisition is stored in the correspondingly Session of the user;
If judged result is no;Then the number of the correspondingly website is obtained by reading the Session for corresponding to the user
According to source Key.
In a specific embodiment, described judge that whether the user is to log in for the first time, including:
Judge whether the Session of the correspondingly user;
If the determination result is YES, it is determined that the user is not to log in for the first time;
If judged result is no, it is determined that the user is login for the first time.
In a specific embodiment, described the access request is processed based on the website data source, wrap
Include:
Corresponding data are extracted from caching based on the website data source;
The access request is given by the data distribution that is extracted, to execute the service logic of the correspondingly access request, and
By the data display for being fed back in Website front-end.
The embodiment of the present invention also proposed a kind of equipment of data management, including:
Receiver module, for the access request of receive user;
Determining module, for determining data source Key of website corresponding to the access request;Wherein, data source Key
Associate with the website data source of the website;The website data source carries out dynamically distributes according to loading condition and obtains;
Processing module, for being processed to the access request based on the website data source.
In a specific embodiment, the equipment also includes:Cache module, for obtaining each data from MDL
The information in source;
Corresponding data are gone out based on the information retrieval of each data source and is cached.
In a specific embodiment, the determining module is used for:
Based on the second level domain that the access request determines corresponding website;
Judge whether the user is to log in for the first time;
If the determination result is YES, then data source Key of the website is obtained by the second level domain;
Data source Key of acquisition is stored in the correspondingly Session of the user;
If judged result is no;Then the number of the correspondingly website is obtained by reading the Session for corresponding to the user
According to source Key.
In a specific embodiment, the determining module judges whether the user is to log in for the first time, including:
Judge whether the Session of the correspondingly user;
If the determination result is YES, it is determined that the user is not to log in for the first time;
If judged result is no, it is determined that the user is login for the first time.
In a specific embodiment, the processing module is used for:
Corresponding data are extracted from caching based on the website data source;
The access request is given by the data distribution that is extracted, to execute the service logic of the correspondingly access request, and
By the data display for being fed back in Website front-end.、
Compared with prior art, the embodiment of the present invention proposes a kind of method and apparatus of data management, wherein, the method
Including:The access request of receive user;Determine data source Key of website corresponding to the access request;Wherein, the data source
Key is associated with the website data source of the website;The website data source carries out dynamically distributes according to loading condition and obtains;
The access request is processed based on the website data source.With this by the website data of loading condition dynamically distributes
Source, it is achieved that load balancing.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below by to be used attached needed for embodiment
Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, and it is right to be therefore not construed as
The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can be with according to this
A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of the method for data management that the embodiment of the present invention is proposed;
Website corresponding to the access request is determined in a kind of method of data management that Fig. 2 is proposed for the embodiment of the present invention
Data source Key schematic flow sheet;
Fig. 3 is a kind of structural representation of the equipment of data management that the embodiment of the present invention is proposed;
Fig. 4 is a kind of structural representation of the equipment of data management that the embodiment of the present invention is proposed.
Specific embodiment
Accompanying drawing in below in conjunction with the embodiment of the present invention, to the embodiment of the present invention in technical scheme carry out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiment.Generally
Can arrange and design with a variety of configurations with the component of the embodiment of the present invention that shows described in accompanying drawing herein.Cause
This, is not intended to limit claimed invention to the detailed description of the embodiments of the invention for providing in the accompanying drawings below
Scope, but it is merely representative of the selected embodiment of the present invention.Embodiments of the invention are based on, those skilled in the art are not doing
The every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.
Hereinafter, according to embodiment and accompanying drawing, the present invention is described in further detail:
Embodiment 1
The embodiment of the present invention proposes a kind of method of data management, as shown in figure 1, comprising the following steps:
Step 101, the access request of receive user;
Specifically, for example user 1 will access website A, have an access request, can include in specific access request
There are the login account of user 1, password etc., URI (the Uniform Resource of website A can also be included
Identifier, Uniform Resource Identifier), the second level domain of website A specifically, can be included in URI.
And the mark of website A in addition, can also be included, can just be found to should website A by the mark
Second level domain.
And in a specific embodiment, before the access request of receive user, namely also wrap before step 101
Include:
The information of each data source is obtained from MDL;
Corresponding data are gone out based on the information retrieval of each data source and is cached.
Specifically, include the information of the data source of each website in MDL, such as except the data source of website A is believed
Breath, can also include the data source information of website B, data source information of website C etc.;Get each data source information it
Afterwards, corresponding data are gone out according to the information retrieval of data source and is cached;Here is said with a specific embodiment
Bright, for example each website is all carried on the server, and caching just can be buffered in the caching of the server 1, so that accessing each
During website, required data are all active, improve response speed;And reduce the load of server;Improve data processing
Efficiency.
Step 102, data source Key for determining website corresponding to the access request;Wherein, data source Key and institute
State the website data source association of website;The website data source carries out dynamically distributes according to loading condition and obtains;
In a specific embodiment, step 102, namely determine the data source of website corresponding to the access request
Key, specifically includes following steps:
Step 1021, the second level domain for determining corresponding website based on the access request;
Specifically, still illustrated as a example by above-mentioned, be website A to accessed, if including URI in access request
Or directly include the second level domain of website A, then can be with direct access;And if do not have, such as include in access request
It is the mark of corresponding second level domain, then can also be obtained by parsing;Also other modes are also possible, for example
Included in access request is the key word of website A, then can be scanned for by search engine, such as Baidu, Google etc.
To get the second level domain of website A.
By the setting of second level domain, it is possible to achieve unified data source control, unique two grades are filled in when trade company applies
Domain name, different trade companies all deposit in clothes according to server load condition dynamically distributes data source Key, data source and allocation plan
In business device internal memory, high efficient and reliable load balancing can be realized according to second level domain.
Further, it is also possible to have a lot of other modes to determine the second level domain of website, specifically can be according to actual feelings
Condition and access request are being obtained.And after second level domain is determined, then continue executing with following step:
Step 1022, judge that whether the user is to log in for the first time;
Specific judge can with by whether have to should user Session judging;Specifically, have at one
In the embodiment of body, step 1022, namely judge whether the user is to log in for the first time, including:
Judge whether the Session of the correspondingly user;
If the determination result is YES, it is determined that the user is not to log in for the first time;
If judged result is no, it is determined that the user is login for the first time.
Specifically, still illustrated as a example by above-mentioned, user 1 accesses website A, if user 1 had accessed the net
Stand A, then can generate to should user 1 Session (session identification), therefore can with by whether there are Session come right
Whether user is to log in for the first time to be judged.
Step 1023, data source Key for if the determination result is YES, then obtaining the website by the second level domain;
Step 1024, data source Key of acquisition is stored in the correspondingly Session of the user;
If step 1025 judged result is no;Then correspondingly described to obtain by reading the Session of the corresponding user
Data source Key of website.
Specifically, user access website when, can include in the Session for being generated to should website data source
Key, specific data source Key are the marks in the website data source required for website operation maintenance etc., can be with by data source Key
Find website data source.
With this, if user logs in for the first time, then the Session of the user, and the data source by institute's Website login is generated
Key is stored in Session, and if not log in for the first time, then directly can find to should user Session, and
Extract data source Key therein;With this, even if user is used for multiple times data source without the need for reacquiring in same session;
Step 103, the access request is processed based on the website data source.
In a specific embodiment, step 103, namely the access request is carried out based on the website data source
Process, including:
Corresponding data are extracted from caching based on the website data source;
The access request is given by the data distribution that is extracted, to execute the service logic of the correspondingly access request, and
By the data display for being fed back in Website front-end.
Specifically, for example user 1 accesses website A, by the website data source of website A, extracts corresponding website A from caching
Data, and by the data distribution for extracting to the product 1 that will be checked on the A of website during access request, such as access request, now
Can execute corresponding service logic, namely carry out the information of product 1 and show, and by the information of product or data display in net
Stand front end, so that user is checked.
Compared with prior art, the embodiment of the present invention proposes a kind of method and apparatus of data management, wherein, the method
Including:The access request of receive user;Determine data source Key of website corresponding to the access request;Wherein, the data source
Key is associated with the website data source of the website;The website data source carries out dynamically distributes according to loading condition and obtains;
The access request is processed based on the website data source.With this by the website data of loading condition dynamically distributes
Source, it is achieved that load balancing.
Embodiment 2
The embodiment of the present invention also proposed a kind of equipment of data management, as shown in figure 3, including:
Receiver module 201, for the access request of receive user;
Determining module 202, for determining data source Key of website corresponding to the access request;Wherein, the data source
Key is associated with the website data source of the website;The website data source carries out dynamically distributes according to loading condition and obtains;
Processing module 203, for being processed to the access request based on the website data source.
Concrete at one, as shown in figure 4, also including:Cache module 204, for obtaining each data source from MDL
Information;
Corresponding data are gone out based on the information retrieval of each data source and is cached.
In a specific embodiment, the determining module 202 is used for:
Based on the second level domain that the access request determines corresponding website;
Judge whether the user is to log in for the first time;
If the determination result is YES, then data source Key of the website is obtained by the second level domain;
Data source Key of acquisition is stored in the correspondingly Session of the user;
If judged result is no;Then the number of the correspondingly website is obtained by reading the Session for corresponding to the user
According to source Key.
In a specific embodiment, the determining module 202 judges whether the user is to log in for the first time, bag
Include:
Judge whether the Session of the correspondingly user;
If the determination result is YES, it is determined that the user is not to log in for the first time;
If judged result is no, it is determined that the user is login for the first time.
In a specific embodiment, the processing module 203 is used for:
Corresponding data are extracted from caching based on the website data source;
The access request is given by the data distribution that is extracted, to execute the service logic of the correspondingly access request, and
By the data display for being fed back in Website front-end.
Compared with prior art, the embodiment of the present invention proposes a kind of method and apparatus of data management, wherein, the method
Including:The access request of receive user;Determine data source Key of website corresponding to the access request;Wherein, the data source
Key is associated with the website data source of the website;The website data source carries out dynamically distributes according to loading condition and obtains;
The access request is processed based on the website data source.With this by the website data of loading condition dynamically distributes
Source, it is achieved that load balancing.
It will be appreciated by those skilled in the art that accompanying drawing is a schematic diagram for being preferable to carry out scene, module in accompanying drawing or
Flow process is not necessarily implemented necessary to the present invention.
It will be appreciated by those skilled in the art that module in device in implement scene can according to implement scene describe into
Row is distributed in the device of implement scene, it is also possible to carry out one or more dresses that respective change is disposed other than this implement scene
In putting.The module of above-mentioned implement scene can merge into a module, it is also possible to be further split into multiple submodule.
The invention described above sequence number is for illustration only, does not represent the quality of implement scene.
Disclosed above is only that the several of the present invention are embodied as scene, but, the present invention is not limited to this, Ren Heben
What the technical staff in field can think change should all fall into protection scope of the present invention.
Claims (10)
1. a kind of method of data management, it is characterised in that include:
The access request of receive user;
Determine data source Key of website corresponding to the access request;Wherein, the website of data source Key and the website
Data source is associated;The website data source carries out dynamically distributes according to loading condition and obtains;
The access request is processed based on the website data source.
2. the method for claim 1, it is characterised in that before the access request of receive user, also include:
The information of each data source is obtained from MDL;
Corresponding data are gone out based on the information retrieval of each data source and is cached.
3. the method for claim 1, it is characterised in that determine data source Key of website corresponding to the access request,
Including:
Based on the second level domain that the access request determines corresponding website;
Judge whether the user is to log in for the first time;
If the determination result is YES, then data source Key of the website is obtained by the second level domain;
Data source Key of acquisition is stored in the correspondingly Session of the user;
If judged result is no;Then the data source of the correspondingly website is obtained by reading the Session for corresponding to the user
Key.
4. method as claimed in claim 3, it is characterised in that described judge whether the user is to log in for the first time, including:
Judge whether the Session of the correspondingly user;
If the determination result is YES, it is determined that the user is not to log in for the first time;
If judged result is no, it is determined that the user is login for the first time.
5. the method for claim 1, it is characterised in that described the access request is entered based on the website data source
Row is processed, including:
Corresponding data are extracted from caching based on the website data source;
The access request is given by the data distribution that is extracted, to execute the service logic of the correspondingly access request, and by institute
The data display of feedback is in Website front-end.
6. a kind of equipment of data management, it is characterised in that include:
Receiver module, for the access request of receive user;
Determining module, for determining data source Key of website corresponding to the access request;Wherein, data source Key and institute
State the website data source association of website;The website data source carries out dynamically distributes according to loading condition and obtains;
Processing module, for being processed to the access request based on the website data source.
7. equipment as claimed in claim 6, it is characterised in that also include:Cache module, each for obtaining from MDL
The information of data source;
Corresponding data are gone out based on the information retrieval of each data source and is cached.
8. equipment as claimed in claim 6, it is characterised in that the determining module, is used for:
Based on the second level domain that the access request determines corresponding website;
Judge whether the user is to log in for the first time;
If the determination result is YES, then data source Key of the website is obtained by the second level domain;
Data source Key of acquisition is stored in the correspondingly Session of the user;
If judged result is no;Then the data source of the correspondingly website is obtained by reading the Session for corresponding to the user
Key.
9. equipment as claimed in claim 8, it is characterised in that the determining module judges whether the user is to step on for the first time
Record, including:
Judge whether the Session of the correspondingly user;
If the determination result is YES, it is determined that the user is not to log in for the first time;
If judged result is no, it is determined that the user is login for the first time.
10. equipment as claimed in claim 6, it is characterised in that the processing module, is used for:
Corresponding data are extracted from caching based on the website data source;
The access request is given by the data distribution that is extracted, to execute the service logic of the correspondingly access request, and by institute
The data display of feedback is in Website front-end.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611059540.2A CN106506677A (en) | 2016-11-28 | 2016-11-28 | A kind of method and apparatus of data management |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611059540.2A CN106506677A (en) | 2016-11-28 | 2016-11-28 | A kind of method and apparatus of data management |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106506677A true CN106506677A (en) | 2017-03-15 |
Family
ID=58327479
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611059540.2A Pending CN106506677A (en) | 2016-11-28 | 2016-11-28 | A kind of method and apparatus of data management |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106506677A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060026147A1 (en) * | 2004-07-30 | 2006-02-02 | Cone Julian M | Adaptive search engine |
CN104618508A (en) * | 2015-02-26 | 2015-05-13 | 浪潮电子信息产业股份有限公司 | Load balancing net framework based on Nginx, Memcached and Tomcat |
CN105893528A (en) * | 2016-03-30 | 2016-08-24 | 乐视控股(北京)有限公司 | Distributed data management system and data access method thereof |
-
2016
- 2016-11-28 CN CN201611059540.2A patent/CN106506677A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060026147A1 (en) * | 2004-07-30 | 2006-02-02 | Cone Julian M | Adaptive search engine |
CN104618508A (en) * | 2015-02-26 | 2015-05-13 | 浪潮电子信息产业股份有限公司 | Load balancing net framework based on Nginx, Memcached and Tomcat |
CN105893528A (en) * | 2016-03-30 | 2016-08-24 | 乐视控股(北京)有限公司 | Distributed data management system and data access method thereof |
Non-Patent Citations (1)
Title |
---|
蒋赞: "PaaS平台基于元数据的多租户核心引擎的研究与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10990634B2 (en) | Augmenting search results with relevant third-party application content | |
TWI515588B (en) | Machine behavior determination method, web browser and web server | |
CN102955798B (en) | A kind of searching method and search server based on search engine | |
US8751470B1 (en) | Context sensitive ranking | |
CN105160252B (en) | A kind of detection method and device of SQL injection attacks | |
CN107633016B (en) | Data processing method and device and electronic equipment | |
CN107948203A (en) | A kind of container login method, application server, system and storage medium | |
CN106713347A (en) | Method for detecting unauthorized access vulnerability of power mobile application | |
CN105550206B (en) | The edition control method and device of structured query sentence | |
CN107515879B (en) | Method and electronic equipment for document retrieval | |
CN105635064B (en) | CSRF attack detection method and device | |
WO2016091002A1 (en) | Method and device for providing authentication information on web page | |
CN106294826A (en) | A kind of company-data Query method in real time and system | |
CN106528683A (en) | Index segmenting equalization based big data cloud search platform and method thereof | |
CN109302394A (en) | A kind of anti-simulation login method of terminal, device, server and storage medium | |
CN103338260A (en) | Distributed analytical system and analytical method for URL logs in network auditing | |
CN105915621A (en) | Data access method and pretreatment server | |
CN108429785A (en) | A kind of generation method, reptile recognition methods and the device of reptile identification encryption string | |
CN111159572A (en) | Recommended content auditing method and device, electronic equipment and storage medium | |
US20160253383A1 (en) | Management-information acquiring program, management information acquiring method, and management information acquiring apparatus | |
CN107807937A (en) | A kind of website SEO processing methods, apparatus and system | |
CN103984747B (en) | Method and device for screen information processing | |
CN110659418A (en) | Content searching method and device, storage medium and computing equipment | |
CN104980409A (en) | Internet behavior management method and device | |
CN108494870A (en) | Dynamic data loading method based on CDN and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20190114 Address after: 310000 Room 3602-2, 3 Wanxiang City, Jianggan District, Hangzhou City, Zhejiang Province Applicant after: Hangzhou Xiaojian Technology Co., Ltd. Address before: Room 402, Building A14, No. 9 Jiusheng Road, Jianggan District, Hangzhou City, Zhejiang 310000 Applicant before: Hangzhou first science and Technology Co Ltd |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170315 |