How to deal with concurrency inside functions?

Hi,
any suggestion on handling concurrency in a netlify function (endpoint).

For example, imagine a ticketing system where only 10 tickets are available but 100 requests come in at the same time. How would you fix this problem in a serverless world?

Thanks for the help :slight_smile:

Hey @sup-dev,

Could you speak some more about your use case? Iā€™m not able to understand the actual problem in this case. How exactly are 10 available tickets being associated with 100 requests?