Have you ever had any flash sales activities? PHP + MYSQL
Source: Internet
Author: User
Is there a second-kill activity by the predecessors? PHP + MYSQL is implemented using row locks, although concurrency is solved, however, the load on the database is too large. I would like to ask if any of my predecessors have done similar functions. please give me some suggestions .. I also asked a few questions: 1. general database operations, if changed to transaction operations, will the load be much larger? it is better to have some data for analysis, probably how 2. "Is there a second-kill activity by the predecessors in the same time period? PHP + MYSQL
I implemented it with row locks.
Although concurrency is solved, the load on the database is too large.
Would you like to ask if you have provided similar functions by your predecessors ..
I also asked a few questions:
1. for general database operations, if it is changed to transaction operations, will the load be much larger? it is best to have some data for analysis.
2. Many row lock operations are performed in the same period of time, which has serious impact on the database. for example, each user locks its own records.
Thank you.
------ Solution --------------------
What should I do if I try nosql? Then the data is transferred to mysql.
------ Solution --------------------
Isn't it easy to fool users? PHP directly has a random number of 1-60000. when 1-3 talents are used to check the database, others are not in progress.
------ Solution --------------------
Discussion
I implemented it with row locks.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service