python - How to deal with the concurrency problem of multiple requests being called at the same time during auction bidding in an auction system made with java? ?
阿神
阿神 2017-05-16 13:27:48
0
1
955

Auction system has a function of bidding price. The current situation is that multiple requests are bidding at the same time. How to deal with this concurrency problem in the background, how to roughly analyze the business logic of who succeeds and who fails in this auction, and how to deal with the problem of data modification in the database.

When it comes to concurrency issues, I am very bad at Java concurrency and have little exposure to it. If you need framework and technology, I hope you can tell me

阿神
阿神

闭关修行中......

reply all(1)
滿天的星座

The auction is not a rush purchase. You only need to judge whether the current value is larger than the requested value. Use a lock mechanism to process the requests one by one. If the value is larger than the current value, the value will be rewritten and a message will be displayed successfully. If the value is smaller than the current value, a message will be displayed. There is already a higher monk, your bid is invalid

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template