The problem of the concurrency of ticket purchases by the Ministry of Railways

<! - StartFragment ->
Old Fang:
Let me ask you a concurrency question: Is there
a large amount of concurrent ticket purchase data from the Ministry of Railways? ? How about that, reduce the concurrency
 
The answer to the ticketing system for the first two days is as follows:
1. The biggest feature of ticketing is that each line [number of trains] is completely isolated, so when considering the problem, you only need thousands of tickets for that train number,
so I It is said that the data access volume of this is thousands of levels.
2. In the end, ticket sales only update the status of each ticket once [if the lock needs to be updated once, then x2] Before this, the control can enter this place by issuing tokens. The number of people who operate in one step is enough

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326530582&siteId=291194637