Movatterモバイル変換


[0]ホーム

URL:


CN101937467A - High-efficiency caching method and system of server - Google Patents

High-efficiency caching method and system of server
Download PDF

Info

Publication number
CN101937467A
CN101937467ACN 201010284443CN201010284443ACN101937467ACN 101937467 ACN101937467 ACN 101937467ACN 201010284443CN201010284443CN 201010284443CN 201010284443 ACN201010284443 ACN 201010284443ACN 101937467 ACN101937467 ACN 101937467A
Authority
CN
China
Prior art keywords
data
service equipment
buffer memory
request
server
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
CN 201010284443
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.)
BEIJING KAIXINREN INFORMATION TECHNOLOGY Co Ltd
Original Assignee
BEIJING KAIXINREN INFORMATION TECHNOLOGY 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 BEIJING KAIXINREN INFORMATION TECHNOLOGY Co LtdfiledCriticalBEIJING KAIXINREN INFORMATION TECHNOLOGY Co Ltd
Priority to CN 201010284443priorityCriticalpatent/CN101937467A/en
Publication of CN101937467ApublicationCriticalpatent/CN101937467A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Landscapes

Abstract

The invention discloses a high-efficiency caching method and a high-efficiency caching system of a server. The method comprises the steps that: S1, a web server receives an access request sent by a user; S2, the web server sends a write-in or reading data request to caching service equipment according to the access request sent by the user; and S3, the caching service equipment writes in or reads data according to the request of the web server and feeds back the read data to the web server. The cache service equipment is used in the invention, so that when the user frequently accesses the data of the same type, the data acquired by the user through a databank server at the first time of access can be cached into the caching service equipment, and the later accessed data can be directly read from the cache without accessing the databank server, so that the access amount of the databank server is reduced and the efficiency of the frequent access to the data of the same type is improved.

Description

A kind of efficient caching method and system of server
Technical field
The present invention relates to a kind of efficient caching method and system of computer system data disposal route, particularly a kind of server, be applicable to the computer service system that Data Update is more frequent.
Background technology
At present, in the page program of website, generally all can relate to some and be stored in general information in the database server, as the province tabulation, commodity classification etc., these information all are identical for each calling party.Usually during each user capture, all to go database server to read, be shown to the user then; The database server load is increased the weight of, can't serve prior issued transaction fast, and the web server also must ceaselessly be created the database server connecting object, the consumption ample resources, caused when the user is a lot, the response speed of webpage is very slow.For example, there are 100 people that certain webpage is sent request of access in the same time, so just need from database server, read 100 secondary data, send to the people that these send request of access then respectively, be a kind of great waste like this to the database server resource of preciousness, very low to the efficient of same categorical data frequent access.
Summary of the invention
The objective of the invention is to, a kind of efficient caching method and system of server is provided, it can reduce the visit capacity of database server,Improved efficient to same categorical data frequent access.
For solving the problems of the technologies described above, the present invention adopts following technical scheme: a kind of efficient caching method of server may further comprise the steps:
S1, the web server receives the request of access that the user sends;
The request of access that S2, web server send according to the user is sent to the buffer memory service equipment and is write or the request of reading of data;
S3, buffer memory service equipment write or reading of data according to the request of web server, and data streams read is returned to the web server.
In the efficient caching method of aforesaid a kind of server, described step S3 comprises: during the data that do not have in the expired or buffer memory service equipment when the data of storing in the buffer memory service equipment to inquire about, the buffer memory service equipment sends the reading of data request to database server, return to the web server obtain data from database server after, the buffer memory service equipment is also preserved these data a simultaneously.
In the efficient caching method of aforesaid a kind of server, the expired determination methods of the data of storing in the described buffer memory service equipment is: is set effective time for the data of storing in the buffer memory service equipment.Surpassing the storage time of data is expired described effective time.
Described buffer memory is transparent for access program, need not buffer memory be set explicitly.Only need indicate this access, may how long effective.Back buffer memory service equipment can be provided with the result data of this visit the effective time of one section designated length, and in effective time, same request can not impact back-end data base, just directly the result is returned.
Realize the efficient caching system of a kind of server of preceding method, comprising:
The request receiver module is used for the web server and receives the request of access that the user sends;
Data demand module is used for the request of access sent according to the user, and the web server sends to the buffer memory service equipment and writes or the request of reading of data;
Data processing module is used for the request according to the web server, and the buffer memory service equipment writes or reading of data, and data streams read is returned to the web server.
In the efficient caching system of aforesaid a kind of server, be provided with the data check module in the described data processing module, be used for verification current cache service equipment and whether exist the data of user inquiring or data whether expired, and database server is sent the reading of data request according to the verification situation.During the data that do not have in the expired or buffer memory service equipment when the data of buffer memory service equipment to inquire about, the buffer memory service equipment sends the reading of data request to database server, return to the web server obtain data from database server after, the buffer memory service equipment is also preserved these data a simultaneously.
In the efficient caching system of aforesaid a kind of server, be provided with time block in the described data check module, time block is used for to the data that the buffer memory service equipment is stored being set effective time.Surpassing the storage time of data is expired described effective time.
Described buffer memory is transparent for access program, need not buffer memory be set explicitly.Only need indicate this access, may how long effective.Back buffer memory service equipment can be provided with the result data of this visit the effective time of one section designated length, and in effective time, same request can not impact back-end data base, just directly the result is returned.
Compared with prior art, the present invention adopts the buffer memory service equipment, the user during to same categorical data frequent access, the data that obtain by database server in the time of the user can being visited for the first time are stored in the buffer memory service equipment, later visit data can directly read from the buffer memory service equipment, do not need the accessing database server, reduced the visit capacity of database server,Improved efficient to same categorical data frequent access.
Description of drawings
Fig. 1 is the structural representation of a kind of embodiment of the present invention;
Fig. 2 is the workflow diagram of embodiments of the invention.
Reference numeral: 1-asks receiver module, 2-data demand module, 3-data processing module, 4-web server, 5-buffer memory service equipment, 6-database server, 7-data check module.
The present invention is further illustrated below in conjunction with the drawings and specific embodiments.
Embodiment
Embodiments of the invention: a kind of efficient caching method of server may further comprise the steps:
S1, the web server receives the request of access that the user sends;
The request of access that S2, web server send according to the user is sent to the buffer memory service equipment and is write or the request of reading of data;
S3, buffer memory service equipment write or reading of data according to the request of web server, and data streams read is returned to the web server.
Described step S3 comprises: during the data that do not have in the expired or buffer memory service equipment when the data of storing in the buffer memory service equipment to inquire about, the buffer memory service equipment sends read data operation to database server, from database server, obtain after the data, return to the web server, the buffer memory service equipment is also preserved these data a simultaneously.
The expired determination methods of the data of storing in the described buffer memory service equipment is: is set effective time for the data of storing in the buffer memory service equipment.Surpassing the storage time of data is expired described effective time.Be 1min the effective time that present embodiment is provided with data.
Described buffer memory is transparent for access program, need not buffer memory be set explicitly.Only need indicate this access, may how long effective.Back buffer memory service equipment can be provided with the result data of this visit the effective time of one section designated length, and in effective time, same request can not impact back-end data base, just directly the result is returned.
Realize the efficient caching system of a kind of server of preceding method, comprising:
Request receiver module 1 is used forweb server 4 and receives the request of access that the user sends;
Data demand module 2 is used for the request of access sent according to the user, andweb server 4 sends to buffermemory service equipment 5 and writes or the request of reading of data;
Data processing module 3 is used for the request according toweb server 4, and buffermemory service equipment 5 writes or reading of data, and data streams read is returned toweb server 4.
Be provided withdata check module 7 in the describeddata processing module 3, be used for verification currentcache service equipment 5 and whether exist the data of user inquiring or data whether expired, anddatabase server 6 is sent the reading of data request according to the verification situation.During the data that do not have in the expired or buffermemory service equipment 5 when the data of buffermemory service equipment 5 to inquire about, buffermemory service equipment 5 sends the reading of data request todatabase server 6, return toweb server 4 obtain data fromdatabase server 6 after, buffermemory service equipment 5 is also preserved these data a simultaneously.
Be provided with time block in the describeddata check module 7, time block is used for to the data that the buffer memory service equipment is stored being set effective time.Surpassing the storage time of data is expired described effective time.Be 1min the effective time that present embodiment is provided with data.
Described buffer memory is transparent for access program, need not buffer memory be set explicitly.Only need indicate this access, may how long effective.Back buffer memory service equipment can be provided with the result data of this visit the effective time of one section designated length, and in effective time, same request can not impact back-end data base, just directly the result is returned.
The workflow of a kind of embodiment of the present invention: (as Fig. 2)
S1, the web server receives the request of access that the user sends;
The request of access that S2, web server send according to the user is sent to the buffer memory service equipment and is write or the request of reading of data;
S3, buffer memory service equipment write or reading of data according to the request of web server, and data streams read is returned to the web server.
Example explanation: such as 1000 certain stars' of user capture homepage was arranged in one minute, this homepage will obtain star's bean vermicelli tabulation, traditional method obtains star's bean vermicelli tabulation, is to read identical data from database 1000 times, is distributed to each user then respectively.If use method of the present invention, only need read one time the data in the database, these data are kept in the buffer memory, and expired time is set 1 minute, except first user is data in the reading database, all the other 999 people are the results who reads from buffer memory, can save the expense of reading database like this, reduce the frequency of reading database greatly.In addition, because first user is the data that directly read from database, outside the shared time is long slightly, other users are the data that read from buffer memory within expired time, the browser response is fast especially, and the page is presented in face of the user very soon, has brought favorable experience to the user.
Say for another example, the someone has visited 50 pages within 10 minutes, each page all need be obtained good friend's relation, and the possibility that these good friends passes tie up to variation within 10 minutes is little, when not needing so whenever to browse a page, all send the request of friend information in the reading database.Only this friend information need be buffered in the buffer memory service equipment, and 10 minutes expired time are set, can directly fetch data from the buffer memory service equipment when getting good friend's relation within expired time, it is fast to read page data speed, has brought favorable experience to the user.

Claims (6)

CN 2010102844432010-09-172010-09-17High-efficiency caching method and system of serverPendingCN101937467A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN 201010284443CN101937467A (en)2010-09-172010-09-17High-efficiency caching method and system of server

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN 201010284443CN101937467A (en)2010-09-172010-09-17High-efficiency caching method and system of server

Publications (1)

Publication NumberPublication Date
CN101937467Atrue CN101937467A (en)2011-01-05

Family

ID=43390796

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN 201010284443PendingCN101937467A (en)2010-09-172010-09-17High-efficiency caching method and system of server

Country Status (1)

CountryLink
CN (1)CN101937467A (en)

Cited By (27)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102255879A (en)*2011-01-142011-11-23北京开心人信息技术有限公司Method and system for realizing local cache of uncompleted input content by user
CN102508844A (en)*2011-09-262012-06-20北京金马甲产权网络交易有限公司Cache system for dynamic sharing data of network bidding and cache method for dynamic sharing data of network bidding
CN103188297A (en)*2011-12-292013-07-03北大方正集团有限公司Method and system for storing and obtaining information
CN103414776A (en)*2013-08-142013-11-27上海兆民云计算科技有限公司Method for copying content in desktop cloud system external device room
CN104281668A (en)*2014-09-282015-01-14墨仕(厦门)电子商务有限公司Data processing method
CN104378396A (en)*2013-08-152015-02-25上海七牛信息技术有限公司Data management device and method
CN104484186A (en)*2014-12-312015-04-01天津南大通用数据技术股份有限公司Design method based on web front end for data analysis
CN105956111A (en)*2016-05-032016-09-21中山市奥创通风设备有限公司 Cloud Service Intelligent Control System of Air Purifier
CN106209848A (en)*2016-07-132016-12-07国网河南省电力公司南阳供电公司Electric power communication method and device
CN106209844A (en)*2016-07-132016-12-07国网河南省电力公司南阳供电公司The electric power safety means of communication
CN106209847A (en)*2016-07-132016-12-07国网河南省电力公司南阳供电公司Electric data transmission method and device
CN106231622A (en)*2016-08-152016-12-14北京邮电大学A kind of content storage method limited based on buffer memory capacity
CN106254322A (en)*2016-07-272016-12-21南阳理工学院A kind of English teaching data transmission method and device
CN106326389A (en)*2016-08-172017-01-11深圳市金证科技股份有限公司Data-caching-based service request processing method and system
CN106657258A (en)*2016-11-042017-05-10成都视达科信息技术有限公司Realization method and device of safe acceleration middleware based on NGINX+LUA
WO2017084520A1 (en)*2015-11-182017-05-26阿里巴巴集团控股有限公司Method and apparatus for synchronizing data files in a cloud environment
CN104699628B (en)*2015-03-112018-07-27小米科技有限责任公司The pre-stored method and device of caching
CN109325054A (en)*2018-07-232019-02-12中国建设银行股份有限公司Data processing method, system and storage medium based on caching
CN110474938A (en)*2018-05-092019-11-19视联动力信息技术股份有限公司Information query method and device
CN111835557A (en)*2020-06-192020-10-27青岛聚好联科技有限公司Alarm method and equipment
CN111858664A (en)*2020-06-232020-10-30苏州浪潮智能科技有限公司 A BMC-based data persistence method and system
CN112035485A (en)*2020-09-032020-12-04徐州金蝶软件有限公司Method and system for realizing efficient query of credit information data based on distributed architecture
CN112055039A (en)*2019-06-062020-12-08阿里巴巴集团控股有限公司Data access method, device and system and computing equipment
CN112187950A (en)*2020-10-102021-01-05深圳市智百威科技发展有限公司Method for solving slow remote data access
CN112989073A (en)*2021-03-112021-06-18读书郎教育科技有限公司Method for scanning textbook and inquiring and matching textbook
CN113032338A (en)*2021-05-312021-06-25智者四海(北京)技术有限公司Cross-data-center data storage and query method and system
CN113750521A (en)*2020-06-012021-12-07上海莉莉丝科技股份有限公司Data storage system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1605073A (en)*2001-12-132005-04-06汤姆森许可公司 Device and method for information transmission using cache server
CN101127783A (en)*2007-09-282008-02-20北京金山软件有限公司A website buffering method and device
CN101169790A (en)*2007-11-302008-04-30中兴通讯股份有限公司Matrix type data caching method and device based on WEB application
US20090248697A1 (en)*2008-03-312009-10-01Richardson David RCache optimization

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1605073A (en)*2001-12-132005-04-06汤姆森许可公司 Device and method for information transmission using cache server
CN101127783A (en)*2007-09-282008-02-20北京金山软件有限公司A website buffering method and device
CN101169790A (en)*2007-11-302008-04-30中兴通讯股份有限公司Matrix type data caching method and device based on WEB application
US20090248697A1 (en)*2008-03-312009-10-01Richardson David RCache optimization

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《现代电子技术》 20070531 雷伟军 提高Web服务器性能的方法 第74页右栏第4段,图1 1-6 , 第2007年第9期*

Cited By (34)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102255879A (en)*2011-01-142011-11-23北京开心人信息技术有限公司Method and system for realizing local cache of uncompleted input content by user
CN102508844A (en)*2011-09-262012-06-20北京金马甲产权网络交易有限公司Cache system for dynamic sharing data of network bidding and cache method for dynamic sharing data of network bidding
CN103188297A (en)*2011-12-292013-07-03北大方正集团有限公司Method and system for storing and obtaining information
CN103188297B (en)*2011-12-292016-05-18北大方正集团有限公司A kind of message stores and acquisition methods and system
CN103414776A (en)*2013-08-142013-11-27上海兆民云计算科技有限公司Method for copying content in desktop cloud system external device room
CN104378396A (en)*2013-08-152015-02-25上海七牛信息技术有限公司Data management device and method
CN104378396B (en)*2013-08-152018-05-15上海七牛信息技术有限公司Data administrator and method
CN104281668A (en)*2014-09-282015-01-14墨仕(厦门)电子商务有限公司Data processing method
CN104484186A (en)*2014-12-312015-04-01天津南大通用数据技术股份有限公司Design method based on web front end for data analysis
CN104699628B (en)*2015-03-112018-07-27小米科技有限责任公司The pre-stored method and device of caching
WO2017084520A1 (en)*2015-11-182017-05-26阿里巴巴集团控股有限公司Method and apparatus for synchronizing data files in a cloud environment
CN105956111A (en)*2016-05-032016-09-21中山市奥创通风设备有限公司 Cloud Service Intelligent Control System of Air Purifier
CN106209847A (en)*2016-07-132016-12-07国网河南省电力公司南阳供电公司Electric data transmission method and device
CN106209844A (en)*2016-07-132016-12-07国网河南省电力公司南阳供电公司The electric power safety means of communication
CN106209848A (en)*2016-07-132016-12-07国网河南省电力公司南阳供电公司Electric power communication method and device
CN106254322A (en)*2016-07-272016-12-21南阳理工学院A kind of English teaching data transmission method and device
CN106231622B (en)*2016-08-152018-02-23北京邮电大学A kind of content storage method based on buffer memory capacity limitation
CN106231622A (en)*2016-08-152016-12-14北京邮电大学A kind of content storage method limited based on buffer memory capacity
CN106326389A (en)*2016-08-172017-01-11深圳市金证科技股份有限公司Data-caching-based service request processing method and system
CN106657258B (en)*2016-11-042019-07-12成都视达科信息技术有限公司A kind of safety acceleration Middleware implementation method and device based on NGINX+LUA
CN106657258A (en)*2016-11-042017-05-10成都视达科信息技术有限公司Realization method and device of safe acceleration middleware based on NGINX+LUA
CN110474938A (en)*2018-05-092019-11-19视联动力信息技术股份有限公司Information query method and device
CN109325054A (en)*2018-07-232019-02-12中国建设银行股份有限公司Data processing method, system and storage medium based on caching
CN112055039A (en)*2019-06-062020-12-08阿里巴巴集团控股有限公司Data access method, device and system and computing equipment
CN113750521A (en)*2020-06-012021-12-07上海莉莉丝科技股份有限公司Data storage system and method
CN113750521B (en)*2020-06-012024-03-22上海莉莉丝科技股份有限公司Data storage system and method
CN111835557A (en)*2020-06-192020-10-27青岛聚好联科技有限公司Alarm method and equipment
CN111858664A (en)*2020-06-232020-10-30苏州浪潮智能科技有限公司 A BMC-based data persistence method and system
CN111858664B (en)*2020-06-232023-01-10苏州浪潮智能科技有限公司 A BMC-based data persistence method and system
CN112035485A (en)*2020-09-032020-12-04徐州金蝶软件有限公司Method and system for realizing efficient query of credit information data based on distributed architecture
CN112035485B (en)*2020-09-032023-09-26江苏新蝶数字科技有限公司Method and system for realizing efficient query of credit information data based on distributed architecture
CN112187950A (en)*2020-10-102021-01-05深圳市智百威科技发展有限公司Method for solving slow remote data access
CN112989073A (en)*2021-03-112021-06-18读书郎教育科技有限公司Method for scanning textbook and inquiring and matching textbook
CN113032338A (en)*2021-05-312021-06-25智者四海(北京)技术有限公司Cross-data-center data storage and query method and system

Similar Documents

PublicationPublication DateTitle
CN101937467A (en)High-efficiency caching method and system of server
CN109240946B (en)Multi-level caching method of data and terminal equipment
CN102104636B (en)Domain name system lookup latency reduction
CN103856567B (en)Small file storage method based on Hadoop distributed file system
JP2019153323A (en)System, method and storage medium for improving access to search result
CN108932287B (en)A kind of mass small documents wiring method based on Hadoop
CN110795457B (en)Data caching processing method, device, computer equipment and storage medium
US20210303191A1 (en)Method and system for synchronizing requests related to key-value storage having different portions
CN101923577B (en)Expandable counting method and system
CN108804566A (en)A kind of mass small documents read method based on Hadoop
CN102521251A (en)Method for directly realizing personalized search, device for realizing method, and search server
US20070043879A1 (en)System and method for shortening click URLS
CN103425708A (en)Optimized web paging query method and device
US11748357B2 (en)Method and system for searching a key-value storage
CN107911799B (en)Method for utilizing intelligent route
CN114138840A (en)Data query method, device, equipment and storage medium
CN101739412A (en)Web page safety evaluating device and web page safety evaluating method for intelligent card
CN102354385A (en)Mobile terminal, server and security information pushing method
CN108932288A (en)A kind of mass small documents caching method based on Hadoop
CN202025314U (en)High-efficiency cache system of server
CN101576854A (en)File access method, device and system
CN106055637B (en)A kind of caching data processing method and server
CN103678314A (en)Mass data processing system, equipment and method based on association rule extraction
CN104270471A (en)Method, device and system for achieving new function reminding
CN106919696A (en)SEO websites construction method and the response method of SEO requests

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20110105

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp