CN104243582A - Online shopping platform concurrent access optimizing device and method - Google Patents
Online shopping platform concurrent access optimizing device and method Download PDFInfo
- Publication number
- CN104243582A CN104243582A CN201410468550.6A CN201410468550A CN104243582A CN 104243582 A CN104243582 A CN 104243582A CN 201410468550 A CN201410468550 A CN 201410468550A CN 104243582 A CN104243582 A CN 104243582A
- Authority
- CN
- China
- Prior art keywords
- page
- user
- access
- server
- identifying code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides an online shopping platform concurrent access optimizing device and method. By the adoption of the online shopping platform concurrent access optimizing device and method, the concurrence amount can be increased, server resource allocation can be optimized, and the utilization rate of server sources can be improved. The optimizing device comprises a user request processing unit, a page generating device, an information processing unit and a verification code storage unit, wherein the user request processing unit, the page generating device, the information processing unit and the verification code storage unit are arranged on the server. The optimizing method comprises the following steps that firstly, the user request processing unit processes an access request sent by a user and judges whether the access request is a request for initiating product purchasing or not; secondly, a page generating unit extracts a page and product information which are needed during user access and data needed by the page and extracts a verification code randomly from the verification code storage unit and combines the page, the product information and the verification code to generate a purchasing page, and the purchasing page is fed back to a client side; thirdly, the access request sent by the client side and the response of a server side are recorded and processed in a cache, and user access data are generated; fourthly, the user access data are synchronously stored in a database in batches from the cache.
Description
Technical field
The present invention relates to a kind of e-commerce platform performance optimization, particularly a kind of net purchase platform Concurrency Access optimization device and method.
Background technology
The relative maturity of ecommerce in recent years, and form certain commercial size, people's shopping way from traditional shops do shopping shopping at network change, shopping at network platform increases day by day, and most website user experiences not good enough, trace it to its cause and be mainly that server bottom-layer design is unreasonable or page access optimization inadequate, cause server under large concurrent scene cannot give play to its performance, response speed declines, thus makes user access experience decline.
In addition, on net purchase platform, in order to improve website traffic, the mode having some marketing activities to adopt auction to buy is carried out, also the mode having net purchase platform all to adopt auction to buy is runed, and snapping under this scene, more can cause the generation of large Concurrency Access, in order to address this problem, current most server ensures that the justice of snapping normally is carried out by mode that is synchronous or queue, and this can make the performance of server have no idea to maximize the use, concurrency does not reach requirement, Consumer's Experience can be sacrificed by the mode of queue, affect the friendliness of user.
Summary of the invention
In order to solve the problem, the present invention proposes a kind of net purchase platform Concurrency Access optimization device and method, can promote concurrency, the resource distribution of Optimized Service device, improves server resource utilance.
Technical scheme of the present invention is achieved in that
A kind of net purchase platform Concurrency Access optimization device, comprises the user's requesting processing be arranged on server, webpage generating device, information process unit, identifying code memory cell;
User's requesting processing, for judging the solicited message that user side is submitted to, and sends the instruction of the generation page according to user access request to webpage generating device;
Information process unit, runs in the buffer memory of server, for the treatment of product price, product information such as auction history, user's purchase information etc.;
Identifying code memory cell, stores the identifying code generated in advance;
Webpage generating device, for generating user to access pages.
Further, described webpage generating device comprises dynamic page data storage cell and page generating unit; Dynamic page data storage cell is arranged in the buffer memory of server, for storing the data that can produce the acquisition of high concurrent dynamic page needs when user accesses; The page that described page generating unit needs to access for extracting user from server, extracts the data needed for this page simultaneously, generates user to access pages, return to user side from dynamic page data memory cell.
Further, described identifying code cell stores has the identifying code being no less than 100,000.
A kind of net purchase platform Concurrency Access optimization method, the method comprises the following steps:
The access request that step one, user's requesting processing process user send, judges that this access is the request dynamic page or static page, whether initiates the information such as request of buying, and responds, and sends instruction to page generating unit;
Step 2, according to user access request, page generating unit extracts user and accesses the required page, product information and the data needed for this page, and send the request of extraction identifying code to identifying code memory cell, and the data needed for the page, product information, this page and the random identifying code merging generation purchase page extracted are returned to user side;
Recording processing is carried out in the response of step 3, the access request sent by user side in the buffer and server end, and generates user accesses data;
Step 4, user accesses data batch from buffer memory is asynchronously stored into database.
Preferably, described product information locks by light granularity lock.
Known by describing above, compared with prior art, tool of the present invention has the following advantages in the present invention:
1, the present invention by prestoring a large amount of identifying code in identifying code memory cell, when needs identifying code, in identifying code memory cell, obtain one at random and return to user side, which offers a saving the CPU time of producing identifying code, I takes charge of auction net test response speed before optimization is 350tps, is 10000tps after optimization.
2, the present invention is by arranging dynamic page data storage cell, dynamic page data storage cell is arranged in the buffer, data required for the page of user often being accessed are stored in this dynamic page data storage cell, just without the need to removing accessing database again time such user accesses these pages, direct access cache obtains data, solve dynamic page database under high complications and meet with the problem of bottleneck, greatly improve access speed.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is overall system diagram of the present invention;
Fig. 2 is the operation principle block diagram of page process units of the present invention;
Fig. 3 is identifying code memory cell operation principle block diagram of the present invention;
Fig. 4 is that information process unit of the present invention is snapping the operation principle block diagram of environment.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
With reference to Fig. 1-Fig. 4, a kind of net purchase platform Concurrency Access optimization device, comprises the user's requesting processing 1 be arranged on server, webpage generating device 2, information process unit 3, identifying code memory cell 4;
User's requesting processing 1, for judging the solicited message that user side is submitted to, and sends the instruction of the generation page according to user access request to webpage generating device;
Information process unit 3, run in the buffer memory of server, for the treatment of product price, product information such as auction history, user's purchase information etc., particularly snapping in environment, the time-consuming operations such as maintenance auction history all can be put and carry out in the buffer, and then need the data of preserving to carry out asynchronous batch by certain policing algorithm these be stored in database, avoid frequent accessing database, improve running efficiency of system;
Identifying code memory cell 4, stores the identifying code generated in advance; Described identifying code cell stores has the identifying code being no less than 100,000.
Webpage generating device 2, for generating user to access pages.Described webpage generating device 2 comprises dynamic page data storage cell 21 and page generating unit 22; Dynamic page data storage cell 21 is arranged in the buffer memory of server, for storing the data that can produce the acquisition of high concurrent dynamic page needs when user accesses; The page that described page generating unit 22 needs to access for extracting user from server, extracts the data needed for this page simultaneously, generates user to access pages, return to user side from dynamic page data memory cell 21.
Above-mentioned net purchase platform Concurrency Access optimization device is utilized to comprise the steps: the process that net purchase platform is optimized
The access request that step one, user's requesting processing process user send, judges that this access is the request dynamic page or static page, whether initiates the information such as request of buying, and responds, and sends instruction to page generating unit; If for user's access is static page, then takies resource less, user can be returned to by extracting directly static page; If access is dynamic page, then think that page generating unit sends instruction;
Step 2, according to user access request, page generating unit extracts user and accesses the required page, product information and the data needed for this page, and send the request of extraction identifying code to identifying code memory cell, and the data needed for the page, product information, this page and the random identifying code merging generation purchase page extracted are returned to user side;
Recording processing is carried out in the response of step 3, the access request sent by user side in the buffer and server end, and generates user accesses data;
Step 4, user accesses data batch from buffer memory is asynchronously stored into database.
In addition, this method utilizes light granularity lock to lock to product information, in auction, purchasing process, arranges a lock for each goods to auction, and the scope of lock is small grain size operation, greatly can improve concurrency.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (5)
1. a net purchase platform Concurrency Access optimization device, is characterized in that, comprises the user's requesting processing be arranged on server, webpage generating device, information process unit, identifying code memory cell;
User's requesting processing, for judging the solicited message that user side is submitted to, and sends the instruction of the generation page according to user access request to webpage generating device;
Information process unit, runs in the buffer memory of server, for the treatment of product price, product information such as auction history, user's purchase information etc.;
Identifying code memory cell, stores the identifying code generated in advance;
Webpage generating device, for generating user to access pages.
2. a kind of net purchase platform Concurrency Access optimization device as claimed in claim 1, is characterized in that: described webpage generating device comprises dynamic page data storage cell and page generating unit;
Dynamic page data storage cell is arranged in the buffer memory of server, for storing the data that can produce the acquisition of high concurrent dynamic page needs when user accesses;
The page that described page generating unit needs to access for extracting user from server, extracts the data needed for this page simultaneously, generates user to access pages, return to user side from dynamic page data memory cell.
3. a kind of net purchase platform Concurrency Access optimization device as claimed in claim 1, is characterized in that: described identifying code cell stores has the identifying code being no less than 100,000.
4. a net purchase platform Concurrency Access optimization method, it is characterized in that, the method comprises the following steps:
The access request that step one, user's requesting processing process user send, judges that this access is the request dynamic page or static page, whether initiates the information such as request of buying, and responds, and sends instruction to page generating unit;
Step 2, according to user access request, page generating unit extracts user and accesses the required page, product information and the data needed for this page, and send the request of extraction identifying code to identifying code memory cell, and the data needed for the page, product information, this page and the random identifying code merging generation purchase page extracted are returned to user side;
Recording processing is carried out in the response of step 3, the access request sent by user side in the buffer and server end, and generates user accesses data;
Step 4, user accesses data batch from buffer memory is asynchronously stored into database.
5. a kind of net purchase platform Concurrency Access optimization method as claimed in claim 4, is characterized in that: described product information locks by light granularity lock.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410468550.6A CN104243582A (en) | 2014-09-15 | 2014-09-15 | Online shopping platform concurrent access optimizing device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410468550.6A CN104243582A (en) | 2014-09-15 | 2014-09-15 | Online shopping platform concurrent access optimizing device and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104243582A true CN104243582A (en) | 2014-12-24 |
Family
ID=52230910
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410468550.6A Pending CN104243582A (en) | 2014-09-15 | 2014-09-15 | Online shopping platform concurrent access optimizing device and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104243582A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106204232A (en) * | 2016-07-18 | 2016-12-07 | 苏州华车网络科技有限公司 | A kind of system and method processing high concurrent interaction data request |
CN106598881A (en) * | 2016-12-20 | 2017-04-26 | 北京小米移动软件有限公司 | Page processing method and device |
CN108632327A (en) * | 2017-03-24 | 2018-10-09 | 北京嘀嘀无限科技发展有限公司 | Method for processing business, device and storage medium |
CN109325833A (en) * | 2018-10-10 | 2019-02-12 | 深圳市心版图科技有限公司 | Nursery stock online trading method, terminal and computer-readable medium |
CN111198892A (en) * | 2019-12-24 | 2020-05-26 | 泰康保险集团股份有限公司 | Information processing method, information processing device, electronic equipment and storage medium |
CN112711483A (en) * | 2020-12-10 | 2021-04-27 | 广州广电运通金融电子股份有限公司 | High-concurrency method, system and equipment for processing big data annotation service |
CN113256389A (en) * | 2021-06-15 | 2021-08-13 | 海尔数字科技(青岛)有限公司 | On-line exhibition hall exhibition method, equipment and storage medium |
CN113435931A (en) * | 2021-06-29 | 2021-09-24 | 未鲲(上海)科技服务有限公司 | Service data processing method and device, computer equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101154230A (en) * | 2006-09-30 | 2008-04-02 | 中兴通讯股份有限公司 | Responding method for large data volume specified searching web pages |
CN101488135A (en) * | 2008-01-14 | 2009-07-22 | 盛大计算机(上海)有限公司 | Designing and acquiring method for delayed personalized web page |
CN102480397A (en) * | 2010-11-26 | 2012-05-30 | 金蝶软件(中国)有限公司 | Method and equipment for accessing internet pages |
CN103268321A (en) * | 2013-04-19 | 2013-08-28 | 中国建设银行股份有限公司 | Data processing method and device for high concurrency transaction |
-
2014
- 2014-09-15 CN CN201410468550.6A patent/CN104243582A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101154230A (en) * | 2006-09-30 | 2008-04-02 | 中兴通讯股份有限公司 | Responding method for large data volume specified searching web pages |
CN101488135A (en) * | 2008-01-14 | 2009-07-22 | 盛大计算机(上海)有限公司 | Designing and acquiring method for delayed personalized web page |
CN102480397A (en) * | 2010-11-26 | 2012-05-30 | 金蝶软件(中国)有限公司 | Method and equipment for accessing internet pages |
CN103268321A (en) * | 2013-04-19 | 2013-08-28 | 中国建设银行股份有限公司 | Data processing method and device for high concurrency transaction |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106204232A (en) * | 2016-07-18 | 2016-12-07 | 苏州华车网络科技有限公司 | A kind of system and method processing high concurrent interaction data request |
CN106598881A (en) * | 2016-12-20 | 2017-04-26 | 北京小米移动软件有限公司 | Page processing method and device |
CN108632327A (en) * | 2017-03-24 | 2018-10-09 | 北京嘀嘀无限科技发展有限公司 | Method for processing business, device and storage medium |
CN109325833A (en) * | 2018-10-10 | 2019-02-12 | 深圳市心版图科技有限公司 | Nursery stock online trading method, terminal and computer-readable medium |
CN111198892A (en) * | 2019-12-24 | 2020-05-26 | 泰康保险集团股份有限公司 | Information processing method, information processing device, electronic equipment and storage medium |
CN112711483A (en) * | 2020-12-10 | 2021-04-27 | 广州广电运通金融电子股份有限公司 | High-concurrency method, system and equipment for processing big data annotation service |
CN113256389A (en) * | 2021-06-15 | 2021-08-13 | 海尔数字科技(青岛)有限公司 | On-line exhibition hall exhibition method, equipment and storage medium |
CN113435931A (en) * | 2021-06-29 | 2021-09-24 | 未鲲(上海)科技服务有限公司 | Service data processing method and device, computer equipment and storage medium |
CN113435931B (en) * | 2021-06-29 | 2024-06-11 | 广州喜淘信息科技有限公司 | Service data processing method, device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104243582A (en) | Online shopping platform concurrent access optimizing device and method | |
WO2017157149A1 (en) | Social network-based recommendation method and apparatus, server and storage medium | |
US10318988B2 (en) | Managing cookie data | |
TW201734914A (en) | Content recommendation method, apparatus and system | |
US8880513B2 (en) | Presentation of items based on a theme | |
CN107330717B (en) | Advertisement putting method and system | |
WO2013107376A1 (en) | Information processing method and system for network trading platform | |
CN108717426B (en) | Enterprise data updating method and device, computer equipment and storage medium | |
US20150304409A1 (en) | Determining at least one cost factor associated with using the cloud to provide an application component | |
CN111865558B (en) | Service data processing method and device, electronic equipment and storage medium | |
WO2021175021A1 (en) | Product push method and apparatus, computer device, and storage medium | |
CN103902548B (en) | A kind of system and method and registration, ticket booking, net purchase system for accessing database | |
CN110175862A (en) | Commodity price calculation method and system are sold for electric business platform | |
CN104424325B (en) | Data query method and apparatus | |
CN104158875B (en) | It is a kind of to share the method and system for mitigating data center server task | |
CN107707593A (en) | A kind of dynamic resource for improving cache hit rate accesses accelerating method and device | |
WO2016172985A1 (en) | Commission allocation method and system | |
US9785678B1 (en) | Determining taxonomy nodes for browsing | |
CN106875262B (en) | Method, apparatus and computer-readable storage medium for order processing | |
CN111582899B (en) | Quantification method, device and system for showing link effect and storage medium | |
CN106257449A (en) | A kind of information determines method and apparatus | |
CN116319576A (en) | Access flow control method, device, computer equipment and storage medium | |
CN104021481A (en) | High-efficiency order batch-processing method of tobacco industry orders | |
CN113822691A (en) | User account identification method, device, system and medium | |
CN111915347A (en) | Method, device and system for effectively storing and applying promotion purchase price |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20141224 |
|
WD01 | Invention patent application deemed withdrawn after publication |