12306 how to deal with the concurrent ticketing?

Source: Internet
Author: User
The company has a ticket grabbing business that requires website implementation. I want to ask if the solution I designed is feasible. if not, is there a more mature solution? My solution: After the request comes in, first determine whether the current time is in the order grab time. if you modify the account id in the cache, it indicates this order... the company has a ticket grabbing business that requires website implementation.

I want to ask you about my own solutions.Feasible or notIf notMore mature solutions?

My solutions: After the request comes in, first determine whether the current time is within the time of order grabbing. if you modify the id of the attacker in the cache, it indicates that the order was snatched by the attacker, then, set the ticket snatching time to false.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.