'system design for concurrent requests on a ecommerce platform
Suppose you have 1 item in stock but at any instance 1 million requests came to purchase the product how will you design a system that will prevent selling of product more than once?
Solution 1:[1]
The answer to this question depends on a lot of factors driven by the business & technical details. There's a good discussion already on this topic here.
Also, if you're asking this from a Systems Design interview's perspective, then the interviewer is more interested in having a discussion of the sort mentioned in the link shared before than just expecting a "correct" answer.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Abhinav Verma |
