[go: up one dir, main page]

CN103747072A - Data reading and writing method and application server - Google Patents

Data reading and writing method and application server Download PDF

Info

Publication number
CN103747072A
CN103747072A CN201310745987.5A CN201310745987A CN103747072A CN 103747072 A CN103747072 A CN 103747072A CN 201310745987 A CN201310745987 A CN 201310745987A CN 103747072 A CN103747072 A CN 103747072A
Authority
CN
China
Prior art keywords
target data
data
application server
buffer memory
cbase
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
Application number
CN201310745987.5A
Other languages
Chinese (zh)
Inventor
曹坤波
张文明
张国斌
李爽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LeTV Cloud Computing Co Ltd
Original Assignee
LeTV Information Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by LeTV Information Technology Beijing Co Ltd filed Critical LeTV Information Technology Beijing Co Ltd
Priority to CN201310745987.5A priority Critical patent/CN103747072A/en
Publication of CN103747072A publication Critical patent/CN103747072A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a data reading and writing method and an application server, and relates to the technical field of communication. The data reading and writing speed of the application server can be increased, and the response of the application server is quickened. The method comprises the following steps of receiving a data request message from a client by using the application server, and performing read operation or write operation on target data when the target data corresponding to identification information in the data request message are determined to be stored in CDN (content distribution network) cache equipment; when the target data are determined not to be stored in the CDN cache equipment, acquiring the target data from equipment with the target data, storing the acquired target data in the CDN cache equipment, and performing read operation or write operation indicated by the data request message on the target data stored in the CDN cache equipment after the acquired target data are stored in the CDN cache equipment. The embodiment of the invention is used for data reading and writing.

Description

A kind of methods and applications server reading and writing data
Technical field
The present invention relates to communication technical field, relate in particular to a kind of methods and applications server reading and writing data.
Background technology
Constantly universal along with Internet technology, there is the growth of explosion type in the data volume of transmitting on the Internet, wherein, and application server reading out data showing in browser from database, many network applications are also all saved in data in database.Along with concentrating of the increase of data volume, access, increased the burden of database and caused the response of database to worsen, the impacts such as website display delay.
In prior art, application server, when receiving the data request information of client, can be analyzed and process this data request information, then corresponding data in database is carried out to the indicated read operation of data request information or write operation.And this application server, can again be analyzed and process this data request information while once receiving identical data request information upper, and corresponding data in database are carried out to the indicated read operation of data request information or write operation.Because database is often arranged on distance applications server place far away, the access of the each database of application server all needs to spend more processing resource and processing time that need to be longer, like this, while making to receive a large amount of data request information in this application server short time there is high concurrent data request, this application server need be accessed database accordingly for each data request information, thereby causes the long problem of response time of this application server.
Summary of the invention
The invention provides a kind of methods and applications server reading and writing data, can improve the speed that this application server reads and writes data, shortened the response time of this application server.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, provides a kind of method reading and writing data, and comprising:
Application server receives the data request information that client sends; Described data request information comprises the identification information of target data;
According to described identification information, inquire about in the nearest CDN buffer memory device of application server described in the content distributing network CDN middle distance that described application server accesses whether store the target data that described identification information is corresponding; Wherein, described CDN buffer memory device carries out buffer memory for the data that described application server is got from other equipment including database;
When inquiring while storing described target data in described CDN buffer memory device, described target data is carried out to the indicated read operation of described data request information or write operation;
While not storing described target data in definite described CDN buffer memory device, from storing the equipment of described target data, obtain described target data, the described target data of obtaining is stored in described CDN buffer memory device, and after in the described target data of obtaining stores described CDN buffer memory device into, the described target data of storing in described CDN buffer memory device is carried out to the indicated read operation of described data request information or write operation.
In the possible implementation of the first of first aspect, when described application server is not stored described target data in definite described CDN buffer memory device, from storing the equipment of described target data, obtain described target data, comprising:
When described application server is not stored described target data in definite described CDN buffer memory device, determine in distributed caching equipment Cbase whether store the target data that described identification information is corresponding;
If determine in distributed caching equipment Cbase and store the target data that described identification information is corresponding, obtain described target data from described Cbase;
If determine in described Cbase and do not store the target data that described identification information is corresponding, obtain described target data in described database.
In conjunction with the possible implementation of the first, in the possible implementation of the second, described identification information comprises data key value Key; ?
Described application server determines in distributed caching equipment Cbase whether store the target data that described identification information is corresponding, comprising:
Described application server determines in described Cbase, whether there be the data value Value corresponding with described Key;
If determine in described Cbase and have the data value Value corresponding with described Key, determine in described Cbase and store described target data;
If determine in described Cbase and do not have the data value Value corresponding with described Key, determine in described Cbase and do not store described target data.
In conjunction with the possible implementation of the first, in the third possible implementation, described data request information also comprises the identification information of other target datas relevant to described target data; ?
After described application server carries out described data request information indicated read operation or write operation to described target data, described method also comprises:
Described application server stores described other target datas of described databases storage in described Cbase into, so that described application server, when receiving the data request information of the identification information that comprises described other target datas, stores described other target datas of storing in described Cbase in described CDN buffer memory device into.
In conjunction with the possible implementation of the first to any one the possible implementation in the third possible implementation, in the 4th kind of possible implementation, at described application server, described target data is carried out after the indicated write operation of described data request information, described method also comprises:
Described application server, according to the described target data that has been performed described write operation in described CDN buffer memory device, upgrades described Cbase and described database.
Second aspect present invention provides a kind of application server, comprising:
Receiving element, the data request information sending for receiving client; Described data request information comprises the identification information of target data;
Processing unit, for according to described identification information, inquires about in the nearest CDN buffer memory device of application server described in the content distributing network CDN middle distance that described application server accesses whether store the target data that described identification information is corresponding; When inquiring while storing described target data in described CDN buffer memory device, described target data is carried out to the indicated read operation of described data request information or write operation; Wherein, described CDN buffer memory device carries out buffer memory for the data that described application server is got from other equipment including database;
Described processing unit also for, while not storing described target data in definite described CDN buffer memory device, from storing the equipment of described target data, obtain described target data, the described target data of obtaining is stored in described CDN buffer memory device, and after in the described target data of obtaining stores described CDN buffer memory device into, the described target data of storing in described CDN buffer memory device is carried out to the indicated read operation of described data request information or write operation.
In the possible implementation of the first of second aspect, described processing unit specifically for:
While not storing described target data in definite described CDN buffer memory device, determine in distributed caching equipment Cbase whether store the target data that described identification information is corresponding;
If determine in distributed caching equipment Cbase and store the target data that described identification information is corresponding, obtain described target data from described Cbase;
If determine in described Cbase and do not store the target data that described identification information is corresponding, obtain described target data in described database.
In conjunction with the possible implementation of the first, in the possible implementation of the second, described identification information comprises data key value Key; Described processing unit specifically for, determine in described Cbase, whether there be the data value Value corresponding with described Key;
If determine in described Cbase and have the data value Value corresponding with described Key, determine in described Cbase and store described target data;
If determine in described Cbase and do not have the data value Value corresponding with described Key, determine in described Cbase and do not store described target data.
In conjunction with the possible implementation of the first, in the third possible implementation, described data request information also comprises the identification information of other target datas relevant to described target data; Described processing unit also for, described other target datas of described databases storage are stored in described Cbase, so that described application server, when receiving the data request information of the identification information that comprises described other target datas, stores described other target datas of storing in described Cbase in described CDN buffer memory device into.
In conjunction with the possible implementation of the first to any one the possible implementation in the third possible implementation, in the 4th kind of possible implementation, described, described target data is carried out after the indicated write operation of described data request information, described processing unit also for, according to the described target data that has been performed described write operation in described CDN buffer memory device, upgrade described Cbase and described database.
Adopt such scheme, application server receives the data request information that client sends, and at definite CDN(Content Delivery Network, content distributing network) while storing target data corresponding to identification information in this data request information in buffer memory device, this target data is carried out to read operation or write operation; While not storing this target data in definite this CDN buffer memory device, from storing the equipment of this target data, obtain this target data, this target data of obtaining is stored in this CDN buffer memory device, and after in this target data of obtaining stores this CDN buffer memory device into, this target data of storing in this CDN buffer memory device is carried out to the indicated read operation of this data request information or write operation.Like this, this application server is receiving after data request information, without this data request information being carried out to analyzing and processing, can directly to the target data in this CDN buffer memory device, carry out read operation or write operation, avoided all from database, reading and writing data at every turn, improve the speed that this application server reads and writes data, shortened the response time of this application server.
Accompanying drawing explanation
The schematic flow sheet of a kind of method reading and writing data that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of the method that the another kind that Fig. 2 provides for the embodiment of the present invention reads and writes data;
The schematic diagram of the application scenarios of a kind of application server that Fig. 3 provides for the embodiment of the present invention;
The structural representation of a kind of application server that Fig. 4 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of method reading and writing data, and as shown in Figure 1, the method comprises:
S101, application server receive the data request information that client sends, and this data request information comprises the identification information of target data.
S102, this application server be according to this identification information, inquires about in the nearest CDN buffer memory device of this application server of content distributing network CDN middle distance that this application server accesses whether store the target data that this identification information is corresponding.
Wherein, this CDN buffer memory device carries out buffer memory for the data that this application server is got from other equipment including database.
S103, while storing this target data in this application server inquires this CDN buffer memory device, this target data is carried out to the indicated read operation of this data request information or write operation.
When S104, this application server are not stored this target data in definite this CDN buffer memory device, from storing the equipment of this target data, obtain this target data, this target data of obtaining is stored in this CDN buffer memory device, and after in this target data of obtaining stores this CDN buffer memory device into, this target data of storing in this CDN buffer memory device is carried out to the indicated read operation of this data request information or write operation.
Adopt such scheme, application server receives the data request information that client sends, and at definite CDN(Content Delivery Network, content distributing network) while storing target data corresponding to identification information in this data request information in buffer memory device, this target data is carried out to read operation or write operation; While not storing this target data in definite this CDN buffer memory device, from storing the equipment of this target data, obtain this target data, this target data of obtaining is stored in this CDN buffer memory device, and after in this target data of obtaining stores this CDN buffer memory device into, this target data of storing in this CDN buffer memory device is carried out to the indicated read operation of this data request information or write operation.Like this, this application server is receiving after data request information, without this data request information being carried out to analyzing and processing, can directly to the target data in this CDN buffer memory device, carry out read operation or write operation, avoided all from database, reading and writing data at every turn, improve the speed that this application server reads and writes data, shortened the response time of this application server.
In order to make those skilled in the art can more clearly understand the technical scheme that the embodiment of the present invention provides, below by specific embodiment, the method that the another kind that the embodiment of the present invention is provided reads and writes data is elaborated, and as shown in Figure 2, the method comprises:
S201, application server receive the data request information that client sends, and described data request information comprises the identification information of target data.
Particularly, user is when browsing page, by click, call the application program in this webpage, to this application server, send data request information, wherein, this data request information can be write request or the read request to target data, and this data request information comprises the identification information of this target data.
It should be noted that, as shown in Figure 3, Fig. 3 comprises CDN buffer memory device to the application scenarios of this application server, for the short time data cached, client can be passed through directly calling data from this CDN buffer memory device of this application server, display web page; Cbase, for data cached for a long time, alleviates the burden of database, improves the speed of data access; Database, for storing the storage medium of data, as disk; Application server, for search corresponding target data according to data request information, and safeguards each memory space.
S202, this application server are determined the target data whether storing in CDN buffer memory device should identification information.
It should be noted that, multiple CDN buffer memory devices can be distributed in different regions, the user of a certain region is when carrying out web page browsing, this application server can be according to the data request information access CDN buffer memory device nearest from this region receiving, in addition, because the data failure time in this CDN buffer memory device is very fast, approximately two minutes, the storage target data that therefore this CDN buffer memory device can only the short time.
If this application server is determined the target data that stores corresponding this identification information in CDN buffer memory device, execution step S203; If this application server is determined, there is no storage in CDN buffer memory device to target data that should identification information, perform step S204.
S203, this application server carry out corresponding read operation or write operation according to this data request information to this target data of storing in this CDN buffer memory device.
Illustratively, user clicks while playing music in webpage, at application server, receive after data request information, if store music data corresponding to this data request information in this CDN buffer memory device, this application server can directly read this music data, and this music data is sent to this webpage client.
S204, this application server are determined the target data whether storing in distributed caching equipment Cbase should identification information.
Alternatively, this identification information comprises data key value Key, if this application server is determined in this Cbase, has the data value Value corresponding with this Key, determines in this Cbase and stores this target data; If determine in this Cbase and do not have the data value Value corresponding with this Key, determine in this Cbase and do not store this target data.
It should be noted that, data are by Key(key) and Value(value) two parts formation, wherein, Key is equivalent to the index of data, Value is the data content of Key representative, and a Value may have multiple key assignments, and user can have access to data content according to key assignments.In addition, can persistence in this Cbase data cached.
If this application server is determined the target data that stores corresponding this identification information in this Cbase, execution step S205; If this application server is determined, there is no storage in this Cbase to target data that should identification information, perform step S206.
S205, this application server store this target data of storing in this Cbase in this CDN buffer memory device into, and according to this data request information, this target data of storing in this CDN buffer memory device are carried out to corresponding read operation or write operation.
S206, this application server obtain this target data in corresponding database, this target data is stored in this CDN buffer memory device and this Cbase, and this target data of storing in this CDN buffer memory device is carried out to read operation or write operation.
Particularly, while all not storing this target data in this CDN buffer memory device and this Cbase, this application server obtains this target data in database, and this target data is stored in this CDN buffer memory device and this Cbase, and this target data of storing in this CDN buffer memory device is carried out to read operation or write operation, complete this secondary data request, and this application server again receive to should target data data request information time, this application server can directly carry out read operation or write operation according to this data request information to this target data of storing in this CDN buffer memory device, if this application server again receive to should target data data request information time, this target data of storing in this CDN buffer memory device lost efficacy, this application server gets this target data from this Cbase according to this data request information, avoided again from database, obtaining, like this, this application server only need to once calculate and obtain from database identical target data, and after while again reading and writing this target data without calculating, because, this application server when obtaining target data by data request information from database, need to be to the data of multiple databases and multiple tables by calculating to determine target data, consumed the more time, by this CDN buffer memory device and the double caching mechanism of this Cbase, reduced the number of times that this application server obtains target data in database, improved the speed that this application server reads and writes data, alleviated the burden of database simultaneously.
It should be noted that, due at database access authority and level of security all higher than CDN buffer memory device and Cbase, therefore, the speed of this application server visit data in CDN buffer memory device and Cbase is higher than the speed in database access data.
Alternatively, this data request information also comprises the identification information of other target datas relevant to this target data, this application server is after carrying out read operation or write operation to this target data of this CDN device memory storage, these other target datas of databases storage are stored in this Cbase, so that this application server receive to should other target datas data request information time, these other target datas of storing in this Cbase are stored in this CDN buffer memory device.
Particularly, have above-mentioned known, this application server when obtaining target data by data request information from database, need to expend the longer time, if this application server passes through the target data in calculative determination database when receiving this data request information again, extended the response time of this application server, therefore, this application server is before receiving this data request information, can in advance this target data be stored in this Cbase, this application server is when receiving this data request information, can directly in this Cbase, get this target data, shortened the response time of this application server.
S207, this application server of this application server, according to this target data that has been performed this write operation in this CDN buffer memory device, upgrade this Cbase and this database.
Illustratively, this data request information is write request message, this application server carries out write operation in the target data of storing in to this CDN buffer memory device according to this write request message, revises after the value of this target data, and amended target data is stored in this Cbase and this database.
Like this, this application server is receiving after data request information, without this data request information being carried out to analyzing and processing, can directly to the target data in this CDN buffer memory device, carry out read operation or write operation, avoided all from database, reading and writing data at every turn, improve the speed that this application server reads and writes data, shortened the response time of this application server.
In addition, for said method embodiment, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the present invention is not subject to the restriction of described sequence of movement, secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
The embodiment of the present invention provides a kind of application server 40, as shown in Figure 4, comprising:
Receiving element 41, the data request information sending for receiving client.
This data request information comprises the identification information of target data.
Processing unit 42, for according to this identification information, inquires about in the nearest CDN buffer memory device of this application server of content distributing network CDN middle distance that this application server accesses whether store the target data that this identification information is corresponding; When inquiring while storing this target data in this CDN buffer memory device, this target data is carried out to the indicated read operation of this data request information or write operation.
Wherein, this CDN buffer memory device carries out buffer memory for the data that this application server is got from other equipment including database.
This processing unit also for, while not storing this target data in definite this CDN buffer memory device, from storing the equipment of this target data, obtain this target data, this target data of obtaining is stored in this CDN buffer memory device, and after in this target data of obtaining stores this CDN buffer memory device into, this target data of storing in this CDN buffer memory device is carried out to the indicated read operation of this data request information or write operation.
Particularly, user is when browsing page, by click, call the application program in this webpage, to this application server, send data request information, wherein, this data request information can be write request or the read request to target data, and this data request information comprises the identification information of this target data.
It should be noted that, multiple CDN buffer memory devices can be distributed in different regions, the user of a certain region is when carrying out web page browsing, this application server can be according to the data request information access CDN buffer memory device nearest from this region receiving, in addition, because the data failure time in this CDN buffer memory device is very fast, approximately two minutes, the storage target data that therefore this CDN buffer memory device can only the short time.
Illustratively, user clicks while playing music in webpage, at application server, receive after data request information, if store music data corresponding to this data request information in this CDN buffer memory device, this application server can directly read this music data, and this music data is sent to this webpage client.
Alternatively, this processing unit 42 specifically for, while not storing this target data in definite this CDN buffer memory device, determine in distributed caching equipment Cbase and whether store the target data that this identification information is corresponding, if determine in distributed caching equipment Cbase and store the target data that this identification information is corresponding, obtain this target data from this Cbase; If determine in this Cbase and do not store the target data that this identification information is corresponding, obtain this target data in this database.
It should be noted that, data are by Key(key) and Value(value) two parts formation, wherein, Key is equivalent to the index of data, Value is the data content of Key representative, and a Value may have multiple key assignments, and user can have access to data content according to key assignments.In addition, can persistence in this Cbase data cached.
Alternatively, this identification information comprises data key value Key, this processing unit specifically for, determine in this Cbase, whether there be the data value Value corresponding with this Key, if determine in this Cbase and have the data value Value corresponding with this Key, determine in this Cbase and store this target data; If determine in this Cbase and do not have the data value Value corresponding with this Key, determine in this Cbase and do not store this target data.
It should be noted that, data are by Key(key) and Value(value) two parts formation, wherein, Key is equivalent to the index of data, Value is the data content of Key representative, and a Value may have multiple key assignments, and user can have access to data content according to key assignments.In addition, can persistence in this Cbase data cached.
Alternatively, this data request information also comprises the identification information of other target datas relevant to this target data, this processing unit also for, these other target datas of this databases storage are stored in this Cbase, so that this application server is when receiving the data request information of the identification information that comprises these other target datas, these other target datas of storing in this Cbase are stored in this CDN buffer memory device.
Particularly, while all not storing this target data in this CDN buffer memory device and this Cbase, this application server obtains this target data in database, and this target data is stored in this CDN buffer memory device and this Cbase, and this target data of storing in this CDN buffer memory device is carried out to read operation or write operation, complete this secondary data request, and this application server again receive to should target data data request information time, this application server can directly carry out read operation or write operation according to this data request information to this target data of storing in this CDN buffer memory device, if this application server again receive to should target data data request information time, this target data of storing in this CDN buffer memory device lost efficacy, this application server gets this target data from this Cbase according to this data request information, avoided again from database, obtaining, like this, this application server only need to once calculate and obtain from database identical target data, and after while again reading and writing this target data without calculating, because, this application server when obtaining target data by data request information from database, need to be to the data of multiple databases and multiple tables by calculating to determine target data, consumed the more time, by this CDN buffer memory device and the double caching mechanism of this Cbase, reduced the number of times that this application server obtains target data in database, improved the speed that this application server reads and writes data, alleviated the burden of database simultaneously.
It should be noted that, due at database access authority and level of security all higher than CDN buffer memory device and Cbase, therefore, the speed of this application server visit data in CDN buffer memory device and Cbase is higher than the speed in database access data.
Alternatively, at this application server, this target data is carried out after the indicated write operation of this data request information, this processing unit also for, according to this target data that has been performed this write operation in this CDN buffer memory device, upgrade this Cbase and this database.
Illustratively, this data request information is write request message, this application server carries out write operation in the target data of storing in to this CDN buffer memory device according to this write request message, revises after the value of this target data, and amended target data is stored in this Cbase and this database.
Adopt above-mentioned application server, this application server receives the data request information that client sends, and at definite CDN(Content Delivery Network, content distributing network) while storing target data corresponding to identification information in this data request information in buffer memory device, this target data is carried out to read operation or write operation; While not storing this target data in definite this CDN buffer memory device, from storing the equipment of this target data, obtain this target data, this target data of obtaining is stored in this CDN buffer memory device, and after in this target data of obtaining stores this CDN buffer memory device into, this target data of storing in this CDN buffer memory device is carried out to the indicated read operation of this data request information or write operation.Like this, this application server is receiving after data request information, without this data request information being carried out to analyzing and processing, can directly to the target data in this CDN buffer memory device, carry out read operation or write operation, avoided all from database, reading and writing data at every turn, improve the speed that this application server reads and writes data, shortened the response time of this application server.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (10)

1. the method reading and writing data, is characterized in that, comprising:
Application server receives the data request information that client sends; Described data request information comprises the identification information of target data;
According to described identification information, inquire about in the nearest CDN buffer memory device of application server described in the content distributing network CDN middle distance that described application server accesses whether store the target data that described identification information is corresponding; Wherein, described CDN buffer memory device carries out buffer memory for the data that described application server is got from other equipment including database;
When inquiring while storing described target data in described CDN buffer memory device, described target data is carried out to the indicated read operation of described data request information or write operation;
While not storing described target data in definite described CDN buffer memory device, from storing the equipment of described target data, obtain described target data, the described target data of obtaining is stored in described CDN buffer memory device, and after in the described target data of obtaining stores described CDN buffer memory device into, the described target data of storing in described CDN buffer memory device is carried out to the indicated read operation of described data request information or write operation.
2. method according to claim 1, is characterized in that, when described application server is not stored described target data in definite described CDN buffer memory device, from storing the equipment of described target data, obtains described target data, comprising:
When described application server is not stored described target data in definite described CDN buffer memory device, determine in distributed caching equipment Cbase whether store the target data that described identification information is corresponding;
If determine in distributed caching equipment Cbase and store the target data that described identification information is corresponding, obtain described target data from described Cbase;
If determine in described Cbase and do not store the target data that described identification information is corresponding, obtain described target data in described database.
3. method according to claim 2, is characterized in that, described identification information comprises data key value Key; ?
Described application server determines in distributed caching equipment Cbase whether store the target data that described identification information is corresponding, comprising:
Described application server determines in described Cbase, whether there be the data value Value corresponding with described Key;
If determine in described Cbase and have the data value Value corresponding with described Key, determine in described Cbase and store described target data;
If determine in described Cbase and do not have the data value Value corresponding with described Key, determine in described Cbase and do not store described target data.
4. method according to claim 2, is characterized in that, described data request information also comprises the identification information of other target datas relevant to described target data; ?
After described application server carries out described data request information indicated read operation or write operation to described target data, described method also comprises:
Described application server stores described other target datas of described databases storage in described Cbase into, so that described application server, when receiving the data request information of the identification information that comprises described other target datas, stores described other target datas of storing in described Cbase in described CDN buffer memory device into.
5. according to the method described in claim 2 to 4 any one, it is characterized in that, at described application server, described target data is carried out after the indicated write operation of described data request information, described method also comprises:
Described application server, according to the described target data that has been performed described write operation in described CDN buffer memory device, upgrades described Cbase and described database.
6. an application server, is characterized in that, comprising:
Receiving element, the data request information sending for receiving client; Described data request information comprises the identification information of target data;
Processing unit, for according to described identification information, inquires about in the nearest CDN buffer memory device of application server described in the content distributing network CDN middle distance that described application server accesses whether store the target data that described identification information is corresponding; When inquiring while storing described target data in described CDN buffer memory device, described target data is carried out to the indicated read operation of described data request information or write operation; Wherein, described CDN buffer memory device carries out buffer memory for the data that described application server is got from other equipment including database;
Described processing unit also for, while not storing described target data in definite described CDN buffer memory device, from storing the equipment of described target data, obtain described target data, the described target data of obtaining is stored in described CDN buffer memory device, and after in the described target data of obtaining stores described CDN buffer memory device into, the described target data of storing in described CDN buffer memory device is carried out to the indicated read operation of described data request information or write operation.
7. application server according to claim 6, is characterized in that, described processing unit specifically for:
While not storing described target data in definite described CDN buffer memory device, determine in distributed caching equipment Cbase whether store the target data that described identification information is corresponding;
If determine in distributed caching equipment Cbase and store the target data that described identification information is corresponding, obtain described target data from described Cbase;
If determine in described Cbase and do not store the target data that described identification information is corresponding, obtain described target data in described database.
8. application server according to claim 7, is characterized in that, described identification information comprises data key value Key; Described processing unit specifically for, determine in described Cbase, whether there be the data value Value corresponding with described Key;
If determine in described Cbase and have the data value Value corresponding with described Key, determine in described Cbase and store described target data;
If determine in described Cbase and do not have the data value Value corresponding with described Key, determine in described Cbase and do not store described target data.
9. application server according to claim 7, is characterized in that, described data request information also comprises the identification information of other target datas relevant to described target data; Described processing unit also for, described other target datas of described databases storage are stored in described Cbase, so that described application server, when receiving the data request information of the identification information that comprises described other target datas, stores described other target datas of storing in described Cbase in described CDN buffer memory device into.
10. according to the application server described in claim 7 to 9 any one, it is characterized in that, described, described target data is carried out after the indicated write operation of described data request information, described processing unit also for, according to the described target data that has been performed described write operation in described CDN buffer memory device, upgrade described Cbase and described database.
CN201310745987.5A 2013-12-30 2013-12-30 Data reading and writing method and application server Pending CN103747072A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310745987.5A CN103747072A (en) 2013-12-30 2013-12-30 Data reading and writing method and application server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310745987.5A CN103747072A (en) 2013-12-30 2013-12-30 Data reading and writing method and application server

Publications (1)

Publication Number Publication Date
CN103747072A true CN103747072A (en) 2014-04-23

Family

ID=50504058

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310745987.5A Pending CN103747072A (en) 2013-12-30 2013-12-30 Data reading and writing method and application server

Country Status (1)

Country Link
CN (1) CN103747072A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104391662A (en) * 2014-12-12 2015-03-04 北京奇虎科技有限公司 Data reading and writing method and device
CN104765888A (en) * 2015-04-30 2015-07-08 北京奇艺世纪科技有限公司 Data access system, method and device
WO2015196692A1 (en) * 2014-06-24 2015-12-30 中兴通讯股份有限公司 Cloud computing system and processing method and apparatus for cloud computing system
CN105447171A (en) * 2015-12-07 2016-03-30 北京奇虎科技有限公司 Data caching method and apparatus
CN105915600A (en) * 2016-04-13 2016-08-31 乐视控股(北京)有限公司 Data writing-in method based CDN network system and CDN network system thereof
CN106202373A (en) * 2016-07-08 2016-12-07 青岛海信传媒网络技术有限公司 Multiple terminals data processing method and data server
CN106302829A (en) * 2016-10-26 2017-01-04 腾讯音乐娱乐(深圳)有限公司 A kind of information access method, device and server
CN106557262A (en) * 2015-09-23 2017-04-05 腾讯科技(深圳)有限公司 A kind of data processing method and device
CN106911782A (en) * 2017-02-28 2017-06-30 北京微影时代科技有限公司 A kind of method for reading data and device
CN106933932A (en) * 2015-12-31 2017-07-07 华为软件技术有限公司 Data processing method, device and application server
CN107305576A (en) * 2016-04-25 2017-10-31 北京京东尚科信息技术有限公司 The pseudo- static treatment method and apparatus of the page
CN108009250A (en) * 2017-12-01 2018-05-08 武汉斗鱼网络科技有限公司 A kind of more foundation of classification race data buffer storage, querying method and devices
CN109062602A (en) * 2018-07-20 2018-12-21 乐蜜有限公司 It is a kind of for the data processing method of application program, device and electronic equipment
CN111654741A (en) * 2019-03-04 2020-09-11 青岛海尔多媒体有限公司 Video data acquisition method and device, computer equipment, storage medium
CN112839308A (en) * 2019-11-25 2021-05-25 成都鼎桥通信技术有限公司 Data processing method, device and storage medium
CN112883065A (en) * 2021-03-03 2021-06-01 中煤航测遥感集团有限公司 Data storage method and device and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002071242A1 (en) * 2001-03-01 2002-09-12 Akamai Technologies, Inc. Optimal route selection in a content delivery network
CN1777880A (en) * 2002-02-14 2006-05-24 塞维斯公司 Managed object replication and delivery
CN102047244A (en) * 2008-04-04 2011-05-04 第三雷沃通讯有限责任公司 Handling Long Tail Content in a Content Delivery Network (CDN)
CN102231749A (en) * 2011-08-12 2011-11-02 乐视网信息技术(北京)股份有限公司 System and method for transmitting live stream by utilizing content delivery network (CDN)
CN103268318A (en) * 2013-04-16 2013-08-28 华中科技大学 Distributed key value database system with strong consistency and read-write method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002071242A1 (en) * 2001-03-01 2002-09-12 Akamai Technologies, Inc. Optimal route selection in a content delivery network
CN1777880A (en) * 2002-02-14 2006-05-24 塞维斯公司 Managed object replication and delivery
CN102047244A (en) * 2008-04-04 2011-05-04 第三雷沃通讯有限责任公司 Handling Long Tail Content in a Content Delivery Network (CDN)
CN102231749A (en) * 2011-08-12 2011-11-02 乐视网信息技术(北京)股份有限公司 System and method for transmitting live stream by utilizing content delivery network (CDN)
CN103268318A (en) * 2013-04-16 2013-08-28 华中科技大学 Distributed key value database system with strong consistency and read-write method thereof

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015196692A1 (en) * 2014-06-24 2015-12-30 中兴通讯股份有限公司 Cloud computing system and processing method and apparatus for cloud computing system
CN105323271A (en) * 2014-06-24 2016-02-10 中兴通讯股份有限公司 Cloud computing system, and processing method and apparatus thereof
CN105323271B (en) * 2014-06-24 2020-04-24 中兴通讯股份有限公司 Cloud computing system and processing method and device thereof
CN104391662A (en) * 2014-12-12 2015-03-04 北京奇虎科技有限公司 Data reading and writing method and device
CN104765888A (en) * 2015-04-30 2015-07-08 北京奇艺世纪科技有限公司 Data access system, method and device
CN104765888B (en) * 2015-04-30 2019-03-26 北京奇艺世纪科技有限公司 A kind of data access system, method and device
CN106557262B (en) * 2015-09-23 2020-07-14 腾讯科技(深圳)有限公司 Data processing method and device
CN106557262A (en) * 2015-09-23 2017-04-05 腾讯科技(深圳)有限公司 A kind of data processing method and device
CN105447171A (en) * 2015-12-07 2016-03-30 北京奇虎科技有限公司 Data caching method and apparatus
CN106933932A (en) * 2015-12-31 2017-07-07 华为软件技术有限公司 Data processing method, device and application server
CN106933932B (en) * 2015-12-31 2020-11-06 华为技术有限公司 Data processing method and device and application server
CN105915600A (en) * 2016-04-13 2016-08-31 乐视控股(北京)有限公司 Data writing-in method based CDN network system and CDN network system thereof
CN107305576A (en) * 2016-04-25 2017-10-31 北京京东尚科信息技术有限公司 The pseudo- static treatment method and apparatus of the page
CN106202373A (en) * 2016-07-08 2016-12-07 青岛海信传媒网络技术有限公司 Multiple terminals data processing method and data server
CN106302829A (en) * 2016-10-26 2017-01-04 腾讯音乐娱乐(深圳)有限公司 A kind of information access method, device and server
CN106911782A (en) * 2017-02-28 2017-06-30 北京微影时代科技有限公司 A kind of method for reading data and device
CN108009250A (en) * 2017-12-01 2018-05-08 武汉斗鱼网络科技有限公司 A kind of more foundation of classification race data buffer storage, querying method and devices
CN109062602A (en) * 2018-07-20 2018-12-21 乐蜜有限公司 It is a kind of for the data processing method of application program, device and electronic equipment
CN111654741A (en) * 2019-03-04 2020-09-11 青岛海尔多媒体有限公司 Video data acquisition method and device, computer equipment, storage medium
CN112839308A (en) * 2019-11-25 2021-05-25 成都鼎桥通信技术有限公司 Data processing method, device and storage medium
CN112883065A (en) * 2021-03-03 2021-06-01 中煤航测遥感集团有限公司 Data storage method and device and computer equipment

Similar Documents

Publication Publication Date Title
CN103747072A (en) Data reading and writing method and application server
US11349940B2 (en) Server side data cache system
CN111414389B (en) Data processing method and device, electronic equipment and storage medium
KR102097881B1 (en) Method and apparatus for processing a short link, and a short link server
US9720952B2 (en) Virtual block devices
CN106919634B (en) Method and web browser for sharing data across applications
CN103312733B (en) Information processing method and device
JP2019153323A (en) System, method and storage medium for improving access to search result
RU2017106890A (en) METHOD FOR ACCESS TO WEB-UNITS, DEVICE AND WEB-UNIT SYSTEM
CN103152367A (en) Cache dynamic maintenance updating method and system
CN101702173A (en) Method and device for increasing access speed of mobile portal dynamic page
CN103530349A (en) Method and equipment for cache updating
CN103473326A (en) Method and device providing searching advices
WO2016115957A1 (en) Method and device for accelerating computers and intelligent devices for users and applications
US20160188717A1 (en) Network crawling prioritization
CN104102577A (en) Test method of multi-version webpage visiting
CN111803917B (en) Resource processing method and device
CN103150363A (en) Method and device for accessing web pages
CN107193754B (en) Method and apparatus for data storage for searching
CN104980311B (en) Predict the method, apparatus and system of network access
CN107145488A (en) The method and apparatus of data item is chosen in a kind of record results page
CN104021192A (en) Database renewing method and device
CN119003903A (en) Webpage resource loading method, device and equipment of application program and storage medium
CN105718520A (en) Internet propagation trace tracking method, apparatus and system
CN116302258A (en) Page operation recording method, playback method, device, server and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20160108

Address after: 100081 Beijing, Zhongguancun, South Street, No. 1, building 689, building 1153, No., No. 5

Applicant after: LETV CLOUD COMPUTING CO., LTD.

Address before: Room six, building 19, building 68, No. 100089 South Road, Haidian District, Beijing

Applicant before: LeTV Information Technology (Beijing) Co., Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140423