Laravel

real world example on locking

anyone know if theres a course that provides example of using cache lock or pessimistic locking? googling doesnt seem to have any realworld examples on how to use this..

edgelessmorphine
edgelessmorphine
0
3
116
alex Member
alex
Moderator

I haven't come across any, but would be happy to cover this here. Do you have any real-world examples you'd like to see covered?

edgelessmorphine
edgelessmorphine

Hi alex, thanks for replying. kinda like a ticketing system where theres only 1 seat left? have to ensure that if a user is about to take the last seat (theyre in the process of a stripe checkout perhaps?) , another user cant access that last seat? hope ive explained that properly

alex Member
alex
Moderator

Great example, I’ll see what I can do! Thanks