CN104243581A - Multi-level cache method and system achieving high cohesion and low coupling - Google Patents

Multi-level cache method and system achieving high cohesion and low coupling Download PDF

Info

Publication number
CN104243581A
CN104243581A CN201410468275.8A CN201410468275A CN104243581A CN 104243581 A CN104243581 A CN 104243581A CN 201410468275 A CN201410468275 A CN 201410468275A CN 104243581 A CN104243581 A CN 104243581A
Authority
CN
China
Prior art keywords
data object
data
high cohesion
data objects
operation requests
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.)
Granted
Application number
CN201410468275.8A
Other languages
Chinese (zh)
Other versions
CN104243581B (en
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.)
North latitude communication technology Nanjing Co., Ltd.
Original Assignee
CHENGDU BEIWEI HANGXIN NETWORK 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 CHENGDU BEIWEI HANGXIN NETWORK TECHNOLOGY Co Ltd filed Critical CHENGDU BEIWEI HANGXIN NETWORK TECHNOLOGY Co Ltd
Priority to CN201410468275.8A priority Critical patent/CN104243581B/en
Publication of CN104243581A publication Critical patent/CN104243581A/en
Application granted granted Critical
Publication of CN104243581B publication Critical patent/CN104243581B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a multi-level cache method and system achieving high cohesion and low coupling. The method is used for providing hierarchical arrangement for operation requests for obtaining data objects of service applications, and comprises the steps that operation requests of data objects are sent out; according to the operation requests, the data objects are merged and classified in a queue mode according to service functions, and layer-by-layer packaging is achieved by adopting a data object-oriented development mode; the data objects are managed based on definition of configuration, and operation interfaces are provided for the data objects so that dynamic content can be cached. The method and system achieve high cohesion and low coupling, an overall system framework is designed in a layered mode according to the operation requests for obtaining the data objects of the service appliances, the data objects are called in a uniform mode, a configuration-based quick definition development mode is provided for content management and other service logics needing expansibility, the content release requirement of most data objects is supported, secondary development requirements are reduced, and decoupling is carried out on semantic layers.

Description

Realize high cohesion and the low multi-level buffer method that is coupled and system thereof
Technical field
The invention belongs to communication technical field, relate to and a kind ofly realize high cohesion and the low multi-level buffer method that is coupled and system thereof.
Background technology
Along with popularizing of Internet technology, arise at the historic moment in electronic store, it brings many facilities to the life of people, and people start custom and on electronic store, carry out various application to meet life requirement, typically apply as electronic business transaction, flow process generally comprises: browse commodity, commodity add shopping cart, inquiry shopping cart commodity, inquiry order status, derive order etc., thereupon response speed is had higher requirement.
At present, for electronic store 12580, as the integrated information service platform that China Mobile provides for user, at home, the inquiry that 12580 carry out food and drink, amusement, tourism, weather, traffic, the various information such as convenience-for-people can be dialed at any time, and hotel, the inquiry of air ticket, reservation, Query Result will inform user with voice and the mode such as note, multimedia message.12580 between trade company and consumer, constructs one based on the two day market of " subscriber segmentation demand coupling, the direct promotion of advertisement ", is devoted to for client provides " expert's level " information service.
Publication No. be CN103166997A patent document discloses a kind of memcache distributed caching method, comprise: first, buffer memory obtains, and adopts client to return to one or more ip addresses of cache node server corresponding to unique key by request name node server.Then, client obtains data from certain data source, and client, by request name node server, makes one or more ip addresses of the cache node server corresponding to name node server-wide unique key.Afterwards, client obtains first ip, by cache node server corresponding for buffer memory write.The remarkable shortcoming of prior art is: can not adapt to the demand that following various application system provides the unified platform to serve to electronic store, and provides the interface support for various data with existing source.
Summary of the invention
The object of the invention is to overcome above-mentioned deficiency, there is provided a kind of and realize high cohesion and the low multi-level buffer method be coupled, it can accelerate the response speed of data object operation request, meets the demand that following various application system provides the unified platform to serve to electronic store.
To achieve these goals, the technical solution used in the present invention is:
Realize high cohesion and the low multi-level buffer method be coupled, it is characterized in that, for the operation requests of the data object obtaining service application provides hierarchical arrangement, comprising:
Send the operation requests of data object;
According to described operation requests, adopt lining up mode that described data object is carried out merger and classification according to business function, and adopt the development scheme of data-oriented object successively to encapsulate;
Definition based on configuration manages described data object, and provides the operation-interface of data object, to carry out buffer memory to dynamic content.
Preferably, wherein, the described definition managed data object based on configuration comprises: the memcached setting each data object corresponding stored, according to the Major key of data object by the memcached of described distribution of data objects to correspondence.
Preferably, wherein, described by distribution of data objects to corresponding memcached for adopting hash algorithm.
Preferably, wherein, describedly buffer memory is carried out to dynamic content comprise: dynamically load is redistributed on the operation-interface be associated with the content of buffer memory by load balancer.
To achieve these goals, the technical solution used in the present invention is:
Realize high cohesion and the low multilevel cache system be coupled, it is characterized in that, overall architecture carries out hierarchical design according to the operation requests of the data object obtaining service application, comprising:
Client layer, for sending the operation requests of data object;
Service layer, for according to described operation requests, adopts lining up mode that described data object is carried out merger and classification according to business function, and adopts the development scheme of data-oriented object successively to encapsulate;
Accumulation layer, for managing described data object based on the definition of configuration, and provides the operation-interface of data object, to carry out buffer memory to dynamic content.
Preferably, wherein, described accumulation layer comprises: the memcached adopting lining up mode distribution.
Preferably, wherein, described accumulation layer also comprises extender operation-interface, for extending database server.
Preferably, wherein, described accumulation layer also comprises load balancer, for dynamically redistributing load at the operation-interface be associated with single buffer memory.
Beneficial effect of the present invention is:
First, realize high cohesion to be coupled with low, overall system framework carries out hierarchical design according to the operation requests of the data object obtaining service application, comprises client layer, service layer and accumulation layer, full decoupled between layers, called by unified approach, Content Management etc. is had to the service logic of autgmentability needs, the quick definition development scheme based on configuration is provided, support that most data object content issues requirement, reduce secondary development demand, implement decoupling zero at semantic layer.
Second, improve the access speed of user, adopt distributed caching, the dynamic content dynamically relevant to user adopts memcached to store, reduced the number of times of reading database by data cached in internal memory and object, thus speed that is dynamic, database-driven website is provided, in addition, load dynamically redistributes on the operation-interface be associated with single buffer memory by load balancer, alleviates the burden of database.
3rd, possess the infinite expanding of data, initial user and visit capacity only need a station server just can bear, reserved extender interface, can extending database server easily, allow the more data of system support.Overcome prior art in order to extending database server, mostly adopt the program of third party's exploitation to realize caused technological deficiency, effectively alleviate mass data and store and high efficiency access.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide further understanding of the present application, and form a application's part, the schematic description and description of the application, for explaining the application, does not form the improper restriction to the application.In the accompanying drawings:
Fig. 1 is the schematic flow sheet realizing high cohesion and the low multi-level buffer method be coupled of the present invention;
Fig. 2 is the mutual time diagram of embodiment of method shown in Fig. 1;
Fig. 3 is the structural representation realizing high cohesion and the low multilevel cache system be coupled of the present invention.
Embodiment
As employed some vocabulary to censure specific components in the middle of specification and claim.Those skilled in the art should understand, and hardware manufacturer may call same assembly with different noun.This specification and claims are not used as with the difference of title the mode distinguishing assembly, but are used as the criterion of differentiation with assembly difference functionally." comprising " as mentioned in the middle of specification and claim is in the whole text an open language, therefore should be construed to " comprise but be not limited to "." roughly " refer to that in receivable error range, those skilled in the art can solve the technical problem within the scope of certain error, reach described technique effect substantially.Specification subsequent descriptions is implement the better embodiment of the application, and right described description is for the purpose of the rule that the application is described, and is not used to the scope limiting the application.The protection range of the application is when being as the criterion depending on the claims person of defining.
Embodiment 1
Please refer to Fig. 1, of the present inventionly realize high cohesion and the low multi-level buffer method be coupled, for the operation requests of the data object obtaining service application provides hierarchical arrangement, comprising: S100, send the operation requests of data object; S200, according to described operation requests, adopts lining up mode that described data object is carried out merger and classification according to business function, and adopts the development scheme of data-oriented object successively to encapsulate; S300, the definition based on configuration manages described data object, and provides the operation-interface of data object, to carry out buffer memory to dynamic content.
Preferably, describedly data object is carried out merger and classification comprises: adopt lining up mode to be distributed by data object.
Preferably, the described definition managed data object based on configuration comprises: the memcached setting each data object corresponding stored, according to the Major key of data object by the memcached of described distribution of data objects to correspondence.
Preferably, described by distribution of data objects to corresponding memcached for adopting hash algorithm.
Preferably, describedly buffer memory is carried out to dynamic content comprise: dynamically load is redistributed on the operation-interface be associated with the content of buffer memory by load balancer.
Method of the present invention is applied in 12580 electronic stores by the present embodiment, 12580 is integrated information service platforms that China Mobile provides for user, at home, the inquiry that 12580 carry out food and drink, amusement, tourism, weather, traffic, the various information such as convenience-for-people can be dialed at any time, and hotel, the inquiry of air ticket, reservation, Query Result will inform user with voice and the mode such as note, multimedia message.
The travelling merchants' service provided for 12580, its service mainly comprises: plane ticket booking, can inquire about the normal fare of internal ticket, discount admission fee, city of setting out, arrive city, airline, flight number, start-stop airport, the departure time, the time of advent, all times, type, freight space, fuel oil expense, remarks, label change the policy of moving back; And can easily enjoy air ticket reservation, draw a bill, send ticket, return ticket, change the series of services such as label.Hotel reservation, can inquire about hotel's title, brief introduction, classification, address, price, room (bed) type, foreground phone, with or without broadband, periphery sight spot, conferencing function, the supporting situation of business, club, area, parking, dining room situation, finishing configuring condition, traffic conditions, close crossing, airport, railway station to the various information such as distance in hotel; And easily can enjoy the series of services such as reservation, reservation change, reservation cancellation, subscription information inquiry in hotel.
Please refer to Fig. 2, preferably, user logs in 12580 stores, sends the operation requests of data object; 12580 store platforms according to the register request of user, identifying user identity, and return the result.
Preferably, 12580 store platforms adopt lining up mode that described data object is carried out merger and classification according to business function, such as plane ticket booking, comprise the normal fare of internal ticket, discount admission fee, city of setting out, arrive city, airline, flight number, start-stop airport, the departure time, the time of advent, all times, type, freight space, fuel oil expense, remarks, label change the policy of moving back, and adopt the development scheme of data-oriented object successively to encapsulate.
Preferably, definition based on configuration manages described data object, user orders the goods, as specific embodiment, user orders air ticket, submits order to, 12580 store platform processes air ticket orders, success submits to the request of payment to payment platform, and provides the operation-interface of data object, to carry out buffer memory to dynamic content.
Preferably, payment platform initiates to pay to user, and user confirms to pay, and paymate processes pays, and returns payment result to user.
Preferably, 12580 store platforms upgrade pay status, and sequence information is notified trade company, dynamically the renewal of pay status are redistributed on the operation-interface be associated with the content of buffer memory by load balancer.
Preferably, 12580 store platforms initiate to issue electronic ticket request to authentication platform, and authentication platform issues electronic ticket to user, and return electron certificate issues result to 12580 store platform.
Preferably, user holds electronic ticket and goes to trade company to consume, and trade company initiates the request of checking electronic ticket in authentication platform, and authentication platform returns the result to trade company.
Preferably, authentication platform returns the result to 12580 store platforms, upgrades consumption status, dynamically the renewal of consumption status is redistributed on the operation-interface be associated with the content of buffer memory by load balancer.Be proved to be successful, then trade company provides plane ticket booking service to user.
Preferably, describedly data object is carried out merger and classification comprises: adopt lining up mode to be distributed by data object.
Preferably, the described definition managed data object based on configuration comprises: the memcached setting each data object corresponding stored, according to the Major key of data object by the memcached of described distribution of data objects to correspondence.
Preferably, described by distribution of data objects to corresponding memcached for adopting hash algorithm.Memcached stores the right hashmap of key/value based on one, and its finger daemon (daemon) is write with C, but client can be write with any language, and is communicated with finger daemon by memcached agreement.
Preferably, 12580 store platforms set up distributed memory target cache system, for Dynamic Web Applications to alleviate database loads by memcached.It reduces the number of times of reading database by data cached in internal memory and object, thus improves speed that is dynamic, database-driven website.
In the particular embodiment, memcached is high performance distributed memory caching server, accelerate different with the front end buffer memory of Squid, it is the reaction that mode by reducing data base querying based on memory cache object improves web station system, and wherein the most attracting characteristic supports distributed deployment exactly, that is can set up a pile memcached service on a group machine, each service can use the memory block of different size according to the hardware configuration of specific service device.
Preferably, the server customer communication of memcached uses simply based on the agreement of line of text.Therefore, also can preserve data on memcached by telnet, obtain data, such as:
$telnet?localhost?11211
Trying?127.0.0.1...
Connected?to?localhost.localdomain(127.0.0.1).
Escape?character?is.
Set foo 003 (initiating to pay)
Bar (sequence information)
STORED (confirming to pay)
Get foo (returning payment result)
VALUE foo 03 (sequence information)
Bar (sequence information)
Preferably, in order to improve performance, the data of preserving in memcached are all stored in the built-in memory storage space of memcached.In addition, after content capacity reaches designated value, just automatically delete based on LRU (Least Recently Used) algorithm the buffer memory do not used.
Preferably, use memcached-Server end, run in service end:
#./memcached-d-m?2048-l?10.0.0.40-p?11211
The process that one takies 2G internal memory will be started, and open 11211 ports for receiving request.Because 32 systems can only process the addressing of 4G internal memory, so 2-3 process can be run on 32 servers being greater than 4G internal memory use PAE, and monitor at different port.
Preferably, use memcached-Client end, application end comprise one for Client described Class after, just can directly use, such as:
$options["servers"]=array("192.168.1.41:11211","192.168.1.42:11212");
$options["debug"]=false;
$memc=new?MemCachedClient($options);
$myarr=array("one","two",3);
$memc->set("key_one",$myarr);
$val=$memc->get("key_one");
print$val[0]."\n";//prints'one‘
print$val[1]."\n";//prints'two‘
print$val[2]."\n";//prints?3
The high cohesion that realizes of the present invention is applied in 12580 electronic stores with the low multi-level buffer method be coupled, and can promote: the speed browsing store, commodity add the speed of shopping cart, the speed of inquiry order status, and the speed of order derives in trade company.
Embodiment 2
Please refer to Fig. 3, the present embodiment realize high cohesion and the low multilevel cache system be coupled, overall architecture carries out hierarchical design according to the operation requests of data object obtaining service application, comprising: client layer, for sending the operation requests of data object; Service layer, for according to described operation requests, adopts lining up mode that described data object is carried out merger and classification according to business function, and adopts the development scheme of data-oriented object successively to encapsulate; Accumulation layer, for managing described data object based on the definition of configuration, and provides the operation-interface of data object, to carry out buffer memory to dynamic content.
Preferably, described accumulation layer comprises: the memcached adopting lining up mode distribution.
Preferably, the described definition managed data object based on configuration comprises: the memcached setting each data object corresponding stored, according to the Major key of data object by the memcached of described distribution of data objects to correspondence.
Preferably, described accumulation layer also comprises extender interface, for extending database server.
Preferably, described accumulation layer also comprises load balancer, for dynamically redistributing load at the operation-interface be associated with single buffer memory.
The distributed caching of the present embodiment is the content object buffer memory copy in the memcached adopting lining up mode distribution by user's access or download, when content object again accessed by the user or download time, the source server that content object is corresponding need not be connected to, and directly by buffer memory, the buffer memory device of content object copy provides, thus accelerate access and the download of content object, and reduction takies the upper level network bandwidth of buffer memory device.
Single server limited memory, the data in internal memory are easily lost, and now the pressure of database can be very large, buffer memory cannot be recovered rapidly in short time, now, multiple servers is needed to form distributed with the internal memory solving separate unit machine restriction, data redundancy and behavior extension problem.Data suit on memcached different in cache cluster by hash algorithm by distributed caching, effectively alleviate mass data and store and high efficiency access.
The present embodiment is applied in the inquiry about the hotels service in 12580 electronic stores, comprising: inquiry hotel title, brief introduction, classification, address, price, room (bed) type, foreground phone, with or without broadband, periphery sight spot, conferencing function, the supporting situation of business, club, area, parking, dining room situation, finishing configuring condition, traffic conditions, close crossing, airport, railway station to the various information such as distance in hotel.
Preferably, user logs in 12580 stores, sends the operation requests of data object; 12580 store platforms according to the register request of user, identifying user identity, and return the result.
Preferably, 12580 store platforms adopt lining up mode that described data object is carried out merger and classification according to business function, such as hotel's title, brief introduction, classification, address, price, room (bed) type, foreground phone, with or without broadband, periphery sight spot, conferencing function, the supporting situation of business, club, area, parking, dining room situation, finishing configuring condition, traffic conditions, close crossing, airport, railway station to the distance in hotel.
Preferably, the definition based on configuration manages described data object, as specific embodiment, user carries out inquiry about the hotels, submit Query request, 12580 store platform processes inquiry request, the request of success submit Query, and provide the operation-interface of data object, to carry out buffer memory to dynamic content.
Preferably, server initiates hotel information data query to user, user browses, simultaneously, 12580 store platforms upgrade hotel information data query, and by the message notice of renewal to user to browse, by load balancer dynamically by the renewal of pay status redistribute on the operation-interface be associated with the content of buffer memory.
Preferably, the customer acceptance hotel of trade company, then initiate predetermined request to 12580 store platforms, following steps are identical with embodiment 2: user carries out hotel reservation on payment platform, issue electronic ticket by authentication platform to user, and return electron certificate issues result to 12580 store platform.
Preferably, user holds electronic ticket and goes to trade company to consume, and trade company initiates the request of checking electronic ticket in authentication platform, and authentication platform returns the result to trade company.
Preferably, authentication platform returns the result to 12580 store platforms, upgrades consumption status, dynamically the renewal of consumption status is redistributed on the operation-interface be associated with the content of buffer memory by load balancer.Be proved to be successful, then trade company provides inquiry about the hotels service to user.
Preferably, describedly data object is carried out merger and classification comprises: adopt lining up mode to be distributed by data object.
Preferably, the described definition managed data object based on configuration comprises: the memcached setting each data object corresponding stored, according to the Major key of data object by the memcached of described distribution of data objects to correspondence.
Preferably, described by distribution of data objects to corresponding memcached for adopting hash algorithm.
Preferably, 12580 store platforms set up distributed memory target cache system, for Dynamic Web Applications to alleviate database loads by memcached.It reduces the number of times of reading database by data cached in internal memory and object, thus improves speed that is dynamic, database-driven website.
In the particular embodiment, the server customer communication of memcached uses simply based on the agreement of line of text.Therefore, also can preserve data on memcached by telnet, obtain data, such as:
$telnet?localhost?11211
Trying?127.0.0.1...
Connected?to?localhost.localdomain(127.0.0.1).
Escape?character?is.
Set foo 003 (initiation inquiry request)
Bar (hotel information)
STORED (confirming hotel of trade company)
Get foo (returning Query Result)
VALUE foo 03 (hotel information)
Bar (hotel information)
Embodiment 3
The present embodiment is applied in the electronic coupon service in 12580 electronic stores, and when user search service for life, attending a banquet is sent to customer mobile phone terminal by 12580 electronic coupons with the form of note and multimedia message.Client consumes to signing cooperation trade company with 12580 electronic coupons, can enjoy and specify preferential price.12580 electronic coupons cover the industries such as food and drink, leisure, shopping, cosmetology, body-building.
Preferably, user logs in 12580 stores, sends the operation requests of data object; 12580 store platforms according to the register request of user, identifying user identity, and return the result.
Preferably, 12580 store platforms adopt lining up mode described data object to be carried out merger and classification, the electronic ticket of the every profession and trades such as such as food and drink, leisure, shopping, cosmetology, body-building according to business function.
Preferably, the definition based on configuration manages described data object, and as specific embodiment, 12580 store platforms initiate to issue electronic ticket request to authentication platform, and provide the operation-interface of data object, to carry out buffer memory to dynamic content.
Preferably, authentication platform issues electronic ticket to user, meanwhile, issues result to 12580 store platform return electron certificates, is redistributed on the operation-interface be associated with the content of buffer memory by the multidate information issued of electronic ticket by load balancer.
Preferably, user holds electronic ticket and goes to trade company to consume, and trade company initiates the request of checking electronic ticket to authentication platform, and authentication platform returns the result to trade company, meanwhile, to returning the result to 12580 store platform.
Preferably, authentication platform returns the result to 12580 store platforms, upgrades consumption status, dynamically the renewal of consumption status is redistributed on the operation-interface be associated with the content of buffer memory by load balancer.Be proved to be successful, then trade company provides service to user.
Preferably, describedly data object is carried out merger and classification comprises: adopt lining up mode to be distributed by data object.
Preferably, the described definition managed data object based on configuration comprises: the memcached setting each data object corresponding stored, according to the Major key of data object by the memcached of described distribution of data objects to correspondence.
Preferably, described by distribution of data objects to corresponding memcached for adopting hash algorithm.
Preferably, 12580 store platforms set up distributed memory target cache system, for Dynamic Web Applications to alleviate database loads by memcached.It reduces the number of times of reading database by data cached in internal memory and object, thus improves speed that is dynamic, database-driven website.
In the particular embodiment, the server customer communication of memcached uses simply based on the agreement of line of text.Therefore, also can preserve data on memcached by telnet, obtain data, such as:
$telnet?localhost?11211
Trying?127.0.0.1...
Connected?to?localhost.localdomain(127.0.0.1).
Escape?character?is.
Set foo 003 (initiation issues electronic ticket request)
Bar (issuing electronic ticket)
STORED (electronic ticket issues result)
Get foo (request of checking electronic ticket)
VALUE foo 03 (the result)
Bar (commodity/service is provided)
Beneficial effect of the present invention is:
First, realize high cohesion to be coupled with low, overall system framework carries out hierarchical design according to the operation requests of the data object obtaining service application, comprises client layer, service layer and accumulation layer, full decoupled between layers, called by unified approach, Content Management etc. is had to the service logic of autgmentability needs, the quick definition development scheme based on configuration is provided, support that most data object content issues requirement, reduce secondary development demand, implement decoupling zero at semantic layer.
Second, improve the access speed of user, adopt distributed caching, the dynamic content dynamically relevant to user adopts memcached to store, reduced the number of times of reading database by data cached in internal memory and object, thus speed that is dynamic, database-driven website is provided, in addition, load dynamically redistributes on the operation-interface be associated with single buffer memory by load balancer, alleviates the burden of database.
3rd, possess the infinite expanding of data, initial user and visit capacity only need a station server just can bear, reserved extender interface, can extending database server easily, allow the more data of system support.Overcome prior art in order to extending database server, mostly adopt the program of third party's exploitation to realize caused technological deficiency, effectively alleviate mass data and store and high efficiency access.
Above-mentioned explanation illustrate and describes some preferred embodiments of the application, but as previously mentioned, be to be understood that the application is not limited to the form disclosed by this paper, should not regard the eliminating to other embodiments as, and can be used for other combinations various, amendment and environment, and can in application contemplated scope described herein, changed by the technology of above-mentioned instruction or association area or knowledge.And the change that those skilled in the art carry out and change do not depart from the spirit and scope of the application, then all should in the protection range of the application's claims.

Claims (8)

1. realize high cohesion and the low multi-level buffer method be coupled, it is characterized in that, for the operation requests of the data object obtaining service application provides hierarchical arrangement, comprising:
Send the operation requests of data object;
According to described operation requests, adopt lining up mode that described data object is carried out merger and classification according to business function, and adopt the development scheme of data-oriented object successively to encapsulate;
Definition based on configuration manages described data object, and provides the operation-interface of data object, to carry out buffer memory to dynamic content.
2. realize high cohesion and the low multi-level buffer method be coupled according to claim 1, it is characterized in that, the described definition managed data object based on configuration comprises: the memcached setting each data object corresponding stored, according to the Major key of data object by the memcached of described distribution of data objects to correspondence.
3. realize high cohesion and the low multi-level buffer method be coupled according to claim 2, it is characterized in that, described by distribution of data objects to corresponding memcached for adopting hash algorithm.
4. realize high cohesion and the low multi-level buffer method be coupled according to claim 3, it is characterized in that, describedly buffer memory is carried out to dynamic content comprise: dynamically load is redistributed on the operation-interface be associated with the content of buffer memory by load balancer.
5. realize high cohesion and the low multilevel cache system be coupled, it is characterized in that, overall architecture carries out hierarchical design according to the operation requests of the data object obtaining service application, comprising:
Client layer, for sending the operation requests of data object;
Service layer, for according to described operation requests, adopts lining up mode that described data object is carried out merger and classification according to business function, and adopts the development scheme of data-oriented object successively to encapsulate;
Accumulation layer, for managing described data object based on the definition of configuration, and provides the operation-interface of data object, to carry out buffer memory to dynamic content.
6. realize high cohesion and the low multilevel cache system be coupled according to claim 5, it is characterized in that, described accumulation layer comprises: the memcached adopting lining up mode distribution.
7. realize high cohesion and the low multilevel cache system be coupled according to claim 6, it is characterized in that, described accumulation layer also comprises extender operation-interface, for extending database server.
8. realize high cohesion and the low multilevel cache system be coupled according to claim 7, it is characterized in that, described accumulation layer also comprises load balancer, for dynamically redistributing load at the operation-interface be associated with single buffer memory.
CN201410468275.8A 2014-09-15 2014-09-15 Realize the multi-level buffer method and its system of high cohesion and lower coupling Active CN104243581B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410468275.8A CN104243581B (en) 2014-09-15 2014-09-15 Realize the multi-level buffer method and its system of high cohesion and lower coupling

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410468275.8A CN104243581B (en) 2014-09-15 2014-09-15 Realize the multi-level buffer method and its system of high cohesion and lower coupling

Publications (2)

Publication Number Publication Date
CN104243581A true CN104243581A (en) 2014-12-24
CN104243581B CN104243581B (en) 2017-11-24

Family

ID=52230909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410468275.8A Active CN104243581B (en) 2014-09-15 2014-09-15 Realize the multi-level buffer method and its system of high cohesion and lower coupling

Country Status (1)

Country Link
CN (1) CN104243581B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107016008A (en) * 2016-06-06 2017-08-04 阿里巴巴集团控股有限公司 The display methods and device of information processing method and device and multidate information
CN107944039A (en) * 2017-12-07 2018-04-20 携程旅游网络技术(上海)有限公司 Air ticket data transfer method, system, storage medium and electronic equipment
CN113313277A (en) * 2021-06-10 2021-08-27 中国民航信息网络股份有限公司 Information processing method and device
CN113657863A (en) * 2021-08-23 2021-11-16 交通银行股份有限公司 Centralized operation processing system and method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102122285A (en) * 2010-01-11 2011-07-13 卓望数码技术(深圳)有限公司 Data cache system and data inquiry method
CN102624881A (en) * 2012-02-29 2012-08-01 浙江大学 Mobile-device-oriented service cache system architecture and development method
CN102724314A (en) * 2012-06-20 2012-10-10 深圳市远行科技有限公司 Memcached client side based on metadata management
US20130226955A1 (en) * 2012-02-28 2013-08-29 International Business Machines Corporation Bi-temporal key value cache system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102122285A (en) * 2010-01-11 2011-07-13 卓望数码技术(深圳)有限公司 Data cache system and data inquiry method
US20130226955A1 (en) * 2012-02-28 2013-08-29 International Business Machines Corporation Bi-temporal key value cache system
CN102624881A (en) * 2012-02-29 2012-08-01 浙江大学 Mobile-device-oriented service cache system architecture and development method
CN102724314A (en) * 2012-06-20 2012-10-10 深圳市远行科技有限公司 Memcached client side based on metadata management

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
沙燕霖: ""高可用分布式旅游电子商务网站设计与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107016008A (en) * 2016-06-06 2017-08-04 阿里巴巴集团控股有限公司 The display methods and device of information processing method and device and multidate information
CN107016008B (en) * 2016-06-06 2020-06-09 阿里巴巴集团控股有限公司 Information processing method and device and dynamic information display method and device
US10789171B2 (en) 2016-06-06 2020-09-29 Alibaba Group Holding Limited Information processing method and device, and method and device for displaying dynamic information
CN107944039A (en) * 2017-12-07 2018-04-20 携程旅游网络技术(上海)有限公司 Air ticket data transfer method, system, storage medium and electronic equipment
CN107944039B (en) * 2017-12-07 2020-07-28 携程旅游网络技术(上海)有限公司 Method and system for calling air ticket data, storage medium and electronic equipment
CN113313277A (en) * 2021-06-10 2021-08-27 中国民航信息网络股份有限公司 Information processing method and device
CN113657863A (en) * 2021-08-23 2021-11-16 交通银行股份有限公司 Centralized operation processing system and method thereof

Also Published As

Publication number Publication date
CN104243581B (en) 2017-11-24

Similar Documents

Publication Publication Date Title
CN105096172B (en) The generation of electronic invoice based on e-commerce platform and processing method and system
US7668960B2 (en) Territorial determination of remote computer location in a wide area network for conditional delivery of digitized products
US10997199B2 (en) Systems and methods for geographically distributed database systems
CN107666484A (en) A kind of CDN sharing methods and system based on block chain
US10095884B2 (en) System and method for using customer information in electronic commerce
CN108470298A (en) The methods, devices and systems of resource numerical value transfer
CN110148034A (en) A kind of excellent device and method of online shopping system architecture
CN104243581A (en) Multi-level cache method and system achieving high cohesion and low coupling
US20170103392A1 (en) System and method for transaction-based temporary email
CN103559306A (en) Query system and method for accessing data centers through cloud platform
CN106709784A (en) Cross-border e-commerce platform having high concurrency extensible distributed type architecture
CN105701112A (en) Data processing method, apparatus and system
WO2016169451A1 (en) Method and device for providing logistics service information
CN109558378A (en) File management method, device, equipment and storage medium
El Kholy et al. Framework for interaction between databases and microservice architecture
CN103369038A (en) PaaS (platform as a service) management platform and method
CN109618003A (en) A kind of servers' layout method, server and storage medium
CN106899621A (en) One kind scheduling system and method
CN102222298A (en) Infinite expansion ticket business distribution system and method
CN110401630A (en) Verification method, device, electronic equipment and the medium of transaction certificate
US20230325895A1 (en) Systems and methods for dynamic interface generation for commerce platform onboarding
CN104123637B (en) A kind of to processing method, system and the equipment that object processes
US6826602B1 (en) System and method for reverse content distribution
CN103164410A (en) File storage and operation method, file storage and operation storage equipment and file storage and operation system
CN107316220A (en) Cloud service e-commerce system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190321

Address after: 210000 North-latitude Communication Mobile Internet Industry Base, No. 1 Chuangzhi Road, Jianye District, Nanjing, Jiangsu Province (1 Building, 2 Floors, North-latitude International Center)

Patentee after: North latitude communication technology Nanjing Co., Ltd.

Address before: 610000 No. 2, 14th Floor, Building No. 66, Fourth Street, Tianfu High-tech Zone, Chengdu City, Sichuan Province

Patentee before: CHENGDU BEIWEI HANGXIN NETWORK TECHNOLOGY CO., LTD.