CN112365329A - Auction platform high-concurrency optimization processing system for small program end - Google Patents
Auction platform high-concurrency optimization processing system for small program end Download PDFInfo
- Publication number
- CN112365329A CN112365329A CN202011167567.XA CN202011167567A CN112365329A CN 112365329 A CN112365329 A CN 112365329A CN 202011167567 A CN202011167567 A CN 202011167567A CN 112365329 A CN112365329 A CN 112365329A
- Authority
- CN
- China
- Prior art keywords
- auction
- data
- processing system
- optimization processing
- applet
- 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
- 238000012545 processing Methods 0.000 title claims abstract description 20
- 238000005457 optimization Methods 0.000 title claims abstract description 16
- 230000007246 mechanism Effects 0.000 claims description 14
- 230000004044 response Effects 0.000 claims description 11
- 238000000034 method Methods 0.000 claims description 8
- 230000002085 persistent effect Effects 0.000 claims description 7
- 238000013461 design Methods 0.000 claims description 6
- 238000004590 computer program Methods 0.000 abstract description 2
- 230000008569 process Effects 0.000 description 6
- 230000002159 abnormal effect Effects 0.000 description 3
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/08—Auctions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Finance (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Accounting & Taxation (AREA)
- Entrepreneurship & Innovation (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a high concurrency optimization processing system for an auction platform of a small program end, relates to the technical field of computer programs, and solves the technical problems that high concurrency of the auction platform is optimized, the stability and reliability of the platform system are enhanced, and the user experience of the auction platform is improved.
Description
Technical Field
The invention relates to the technical field of computer programs, in particular to a high-concurrency optimization processing system for an auction platform of an applet terminal.
Background
With the rapid development of the mobile internet, people increasingly use applets, various types of applets are produced, and the auction platform is moved to the applet end, so that the auction is not limited to the traditional offline mode, and the traditional auction mode is produced by combining the mobile internet and the applet auction platform. The method is characterized in that an item owner can release an item in an applet auction platform, a user with purchasing intention selects an interested auction to submit a guarantee fund to start to participate in auction according to own preference and needs, and finally the user with the highest bid after the auction is finished obtains the qualification of owning the auction and can further communicate with the auction publisher.
The mobile applet auction is different from the traditional offline auction in that a plurality of auctions are performed on an auction platform at the same time, and a large number of users can participate in the auction for a plurality of auction products at the same time.
Disclosure of Invention
The invention aims to enhance the stability and reliability of a platform and improve the user experience of an auction platform, and the high-concurrency optimization processing system for the auction platform of the small program end can effectively solve the problems in the background technology.
In order to achieve the purpose, the invention adopts the following technical scheme:
an auction platform high concurrency optimization processing system for an applet end comprises a design request interface, a restart and overload protection mechanism, data security and a WebSocket protocol under high concurrency;
the design request interface means that a mobile terminal small program auction page is divided into two parts: one is an applet front-end service platform; the other is a server-side background interface participating in auction, the background interface is used for supporting the front-end service and enabling the front-end service to be smoothly realized, and the response speed can be greatly improved by setting a request interface, so that the system can be ensured to simultaneously process a plurality of requests;
the system comprises a CGI (common gateway interface) layer, the restart and overload protection mechanism is arranged on the CGI layer, and can avoid that the system is in an abnormal state under the condition of overload work of an available connection process, so that the condition that the system crashes due to frequent clicking of a user and vicious circle is finally avoided;
the data security under the high concurrency means that an optimistic lock thought is adopted, a version number is added to bid data of each user, the version number is used for preventing data of other people from being covered when a plurality of people operate one piece of data at the same time, the problem of queues is not required to be considered by adopting the optimistic lock mode, and the data security can be still ensured under the condition that a system responds to a large number of requests at the same time.
The WebSocket protocol is used for realizing the persistent link, can realize the persistent link, and can avoid the frequent request of a client for a server, so that the response speed of the system is improved.
Preferably, the applet front-end service platform comprises a merchant parking, a shot issuing, an auction participant registration entry, an auction participant payment deposit, an auction participation and an auction result obtaining.
Preferably, the small program front-end service platform improves response speed through CDN content delivery, and the CDN can redirect the user's request to the service node closest to the user in real time according to network flow, connection of each node, load condition, distance to the user, response time and other comprehensive information, so that the user can obtain the required content nearby, the problem of congestion of the Internet network is solved, and the response speed of the user accessing the website is improved; and the background interface of the server requests to adopt the operation of the memory level, and the operation is stored in a system database in an asynchronous writing mode.
Preferably, the asynchronous writing mode is realized by putting data in a cache, not immediately storing the data of the database and using a queue storage mode, and the storage mode has the advantages of reducing traffic peak, decoupling and high availability.
Preferably, the optimistic lock is that all requests of a piece of data are qualified to be modified, and a version number of the piece of data is obtained, if the version numbers are consistent, the system updates, and if the version numbers are inconsistent, the system refuses to update, and the optimistic lock mechanism avoids the overhead of database locking in long transactions, thereby greatly improving the overall performance of the system under large concurrency.
Compared with the prior art, the invention has the beneficial effects that:
1. the response speed can be greatly improved by setting a request interface, so that the system can simultaneously process a plurality of requests in parallel;
2. the restart and overload protection mechanism can avoid that the system falls into an abnormal state under the condition that the available connection process is in overload work, thereby avoiding the condition that the system crashes due to frequent clicking of a user and vicious circle;
3. the 'optimistic lock' mode is adopted, the problem of queues is not required to be considered, and the system can still ensure the safety of data under the condition of simultaneously responding a large number of requests;
4. the WebSocket protocol can realize persistent link and can avoid the frequent request of a client for a server, thereby improving the response speed of the system.
Drawings
FIG. 1 is a flow chart of the optimization of the design request interface of the auction platform high concurrency optimization processing system for the applet terminal according to the present invention;
FIG. 2 is a flowchart of the restart and overload protection mechanism of the auction platform high concurrency optimization processing system for the applet end according to the present invention;
fig. 3 is a flow chart of an optimistic lock operation of the auction platform high concurrency optimization processing system for the applet terminal according to the present invention.
Detailed Description
Example 1
An auction platform high concurrency optimization processing system for an applet end comprises a design request interface, a restart and overload protection mechanism, data security and a WebSocket protocol under high concurrency;
as shown in fig. 1, the design request interface refers to a mobile applet auction page divided into two parts: one is a small program front-end service platform which comprises a merchant parking, a shot issuing, an auction holder registration and registration, an auction holder payment guarantee, an auction participation and an auction obtaining result; the other is a server-side background interface participating in auction, the background interface is used for supporting front-end services and enabling the front-end services to be smoothly realized, the small program front-end service platform improves response speed through CDN content distribution, the server-side background interface requests to adopt memory-level operation, all bid data are stored in a memory database firstly, and then are stored in a system database in an asynchronous writing mode to improve storage speed, the asynchronous writing mode adopts a mode of putting data in a cache, the data of the database are not immediately stored, but queue storage is used for realizing, the request interface can greatly improve response speed, and therefore the system can be guaranteed to simultaneously process a plurality of requests in parallel.
As shown in fig. 2, the restart and overload protection mechanism is to perform processing when a full load state of the system is detected, the processing employs a rejection request mechanism, the rejection request is also a protection measure, the system includes a CGI entry layer, the restart and overload protection mechanism is disposed in the CGI entry layer, CGI is a common gateway interface, which is a standard interface for a Web server host to provide information service, through the CGI interface, a Web server can obtain information submitted by a client, forward the information to a CGI program of a server for processing, and finally return a result to the client; the CGI communication system consists of two parts: one part is an html page, namely a page displayed on a browser at a user side; the other part is the Cgi program running on the server, the overload protection mechanism is arranged at the CGI entrance layer, and is intercepted at the html page, namely the front end part, so that excessive data is not allowed to enter the Cgi program, and the system load is reduced; the overload protection of the system is firstly clear, the maximum processing capacity of the system is needed to be rejected for requests exceeding the processing capacity range of the system, the retry behavior of a user is needed to be delayed properly, in addition, the middle layer server sends the requests to the back end, the retry mechanism is needed to be used with caution, strict frequency control is needed, the overload protection is arranged at a CGI entrance layer, the direct requests of the client are returned quickly, and the protection mechanism can avoid that the system is in an abnormal state under the condition that an available connection process works in overload, so that the condition that the system crashes due to frequent clicking of the user and vicious circle is finally avoided;
as shown in fig. 3, the data security under high concurrency means that an idea of "optimistic lock" is adopted, a version number is added to the bid data of each user, the version number of the optimistic lock is a version identifier of the data, when the data is read, the version number is read together, and when the data is updated later, adding one to the version number, and comparing the version data of the submitted data with the current version information of the corresponding record of the database table, if the submitted data version number is equal to the current version number of the database table, the data version number is updated, otherwise, the data version number is regarded as overdue data, and the optimistic lock version number has the function of preventing a plurality of people from operating one piece of data at the same time, the data of others is covered, the problem of thread safety can be solved when multiple threads are written into the same file, an optimistic lock idea is adopted, a version number is added to the bidding data of each user, and the optimistic lock principle is as follows: all requests for a data are qualified for modification, and a version number of the data is obtained, if the version numbers are consistent, the system performs updating, and if the version numbers are inconsistent, the system rejects updating, for example: when the A user bids 100 yuan, the 100 metadata has a special version, and when the B user bids 100 yuan at the same time, the version number is not matched with the A user, so that the updating and the storage cannot be realized. The mode of 'optimistic lock' does not need to consider the problem of queue, and the system can still ensure the safety of data under the condition of simultaneously responding to a large number of requests.
The WebSocket protocol is used for realizing the persistent link, a traditional polling mode is abandoned, participants open a shot page, a client and a server establish a persistent link, when the shot price of the server changes, the client actively pushes a client applet, the client uses the WebSocket protocol to realize the persistent link, the client can be prevented from frequently requesting the server, and therefore the response speed of the system is improved.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art should be considered to be within the technical scope of the present invention, and the technical solutions and the inventive concepts thereof according to the present invention should be equivalent or changed within the scope of the present invention.
Claims (5)
1. An auction platform high concurrency optimization processing system for an applet end is characterized in that: the method comprises the steps of designing a request interface, restarting and overload protection mechanisms, and high-concurrency data security and WebSocket protocols;
the design request interface means that a mobile terminal small program auction page is divided into two parts: one is an applet front-end service platform; the other is a server-side background interface participating in auction, and the background interface is used for supporting the front-end service and enabling the front-end service to be smoothly realized;
the system comprises a CGI entry layer, and the restarting and overload protection mechanism is arranged on the CGI entry layer;
the data security under the high concurrency means that an optimistic lock thought is adopted, a version number is added to the bidding data of each user, and the version number is used for preventing data of other people from being covered when a plurality of people operate one piece of data at the same time;
the WebSocket protocol is used for realizing the persistent link.
2. The auction platform high concurrency optimization processing system for applet end according to claim 1, wherein: the small program front-end service platform comprises a merchant parking, a shot issuing, an auction holder registration entry, an auction holder payment guarantee deposit, an auction participation and an auction obtaining result.
3. The auction platform high concurrency optimization processing system for applet end according to claim 2, wherein: the small program front-end service platform is used for improving the response speed through CDN content delivery; and the background interface of the server requests to adopt the operation of the memory level, and the operation is stored in a system database in an asynchronous writing mode.
4. The auction platform high concurrency optimization processing system for applet end according to claim 3, wherein: the asynchronous writing mode is realized by putting data in a cache, not immediately storing the data of a database and using a queue storage mode.
5. The auction platform high concurrency optimization processing system for applet end according to claim 4, wherein: the optimistic lock is that all requests of a data are qualified to be modified, a version number of the data is obtained, if the version numbers are consistent, the system updates, and if the version numbers are inconsistent, the system rejects updating.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011167567.XA CN112365329A (en) | 2020-10-28 | 2020-10-28 | Auction platform high-concurrency optimization processing system for small program end |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011167567.XA CN112365329A (en) | 2020-10-28 | 2020-10-28 | Auction platform high-concurrency optimization processing system for small program end |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112365329A true CN112365329A (en) | 2021-02-12 |
Family
ID=74510991
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011167567.XA Pending CN112365329A (en) | 2020-10-28 | 2020-10-28 | Auction platform high-concurrency optimization processing system for small program end |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112365329A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107423132A (en) * | 2017-04-20 | 2017-12-01 | 山东开创云软件有限公司 | A kind of large-scale concurrent optimized treatment method for auction platform |
CN111383084A (en) * | 2018-12-28 | 2020-07-07 | 优信拍(北京)信息科技有限公司 | Auction method and system |
-
2020
- 2020-10-28 CN CN202011167567.XA patent/CN112365329A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107423132A (en) * | 2017-04-20 | 2017-12-01 | 山东开创云软件有限公司 | A kind of large-scale concurrent optimized treatment method for auction platform |
CN111383084A (en) * | 2018-12-28 | 2020-07-07 | 优信拍(北京)信息科技有限公司 | Auction method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11636544B2 (en) | Method and apparatus for order entry in an electronic trading system | |
CN100452707C (en) | A method and system for keeping data consistency | |
US20120185378A1 (en) | System and Method for Adaptive Selection of Bank Card for Payment | |
US20060136427A1 (en) | Coordinating transactional web services | |
US20030018566A1 (en) | Online auction systems | |
US20140325391A1 (en) | System and method for updating information in an instant messaging application | |
CN104092597A (en) | Instant communication method and system for financial transactions | |
RU2610414C2 (en) | Data stream distribution method and system | |
TW202004597A (en) | Virtual resource delivery and crowdfunding method and device based on block chain | |
US10432706B2 (en) | Low-latency high-throughput scalable data caching | |
JP2012531640A (en) | 24 hour global low delay computer controlled switching system | |
CN110956500B (en) | Method and system for reducing advertisement request time consumption in advertisement real-time bidding system | |
CN111667350A (en) | Auction method, device, system, computer equipment and readable storage medium | |
CN108122124B (en) | Information pushing method, platform and system | |
AU2004292161B2 (en) | System and method for managing relationships between brokers and traders using a messaging format | |
CN111815376B (en) | Multi-DSP real-time bidding method and device for internet advertisement | |
CN112365329A (en) | Auction platform high-concurrency optimization processing system for small program end | |
CN107423132B (en) | Large-scale concurrent optimization processing method for auction platform | |
AU2020203282B2 (en) | Method and system for matching multi-dimensional data units in electronic information system | |
US20130311591A1 (en) | Computer system for the exchange of messages | |
JP5015127B2 (en) | Auction processing device, auction processing method, and auction processing program | |
CN113362127A (en) | Second-hand car bidding system with high availability | |
CN114595071A (en) | Security dealer core transaction data synchronization system and method | |
CN113935749A (en) | Fair credible commodity reputation evaluation method based on Ether house intelligent contract | |
US20140297507A1 (en) | Method, device and system for collaborative order |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |