Statistiques de la vidéo
Compteurs publics lors de la dernière actualisation.
- Vues
- 1 052
- J’aime
- 16
- Commentaires
- 0
- Partages
- 2
- Enregistrements
- 5
- Engagement
- 1,71 %
- Durée
- 140 s
- Publiée
- 12 oct. 2026
Analyse de la vidéo
La vidéo TikTok de @entrepreneurship93 « Comment LOCK and I'll send you the cheat sheet comparing locks, atomic updates, and constraints. One ticket left. Two people click Buy at the same time. Both your screens say you got it. ⚡ The bug isn't in your checkout code, it's the gap between checking and writing. Your server reads the seat, sees available, and then, before it writes sold, does something else entirely ⚡ In that gap Leo's request runs the exact same read. It also sees available. Then both writes land, and you send two confirmation emails for one chair ⚡ This is a race condition: not a rare crash, but the ordinary outcome of two requests arriving at once. Nothing threw. Nothing warned. The database did exactly what it was asked, twice ⚡ The first fix is pessimistic locking. SELECT ... FOR UPDATE takes a row lock, and Leo's request can't even read that row until Maya's transaction commits. The queue behind it stops being optional ⚡ The second fix is better because it removes the gap entirely: fold the check into the write. UPDATE seats SET status='sold' WHERE seat='F12' AND status='available', one statement, one decision ⚡ That runs as a single atomic operation. The check and the update either both succeed or neither happens. There is no "between" left for a second request to stand in Even buggy code can't break that rule, because the constraint lives in the database, not in your code. A unique key on the event-and-seat pair means two confirmed tickets for the same seat can't physically exist in the table. The engine refuses the second insert no matter what your application does. The database never really picks a winner by magic. It forces the two requests into a line. One goes first. The other sees the result. Two rules that outlive this specific example: keep your checks inside the write, and keep the final guarantee in the schema. Which has cost you more time, the bug or the incident review after it? Comment LOCK for the full cheat sheet. #databases #concurrency #postgresql #backend #programming » compte 1 052 vues, 16 j’aime, 0 commentaires et 2 partages dans les indicateurs publics relevés par cet index. Cela représente un taux d’engagement de 1,71 % (j’aime, commentaires et partages rapportés aux vues). Elle a été publiée il y a plus de deux semaines et dure 2 minutes 20 secondes. Elle a été enregistrée 5 fois.
Données au 26 oct. 2026 (UTC), issues de la dernière actualisation publique relevée par cet index.
- Abonnés
- 11 564
- Abonnements
- 12
- J’aime
- 646 906
- Vidéos
- 41
Vidéos récentes
503vues31j’aime0commentairesil y a 28 jours@entrepreneurship93 757vues44j’aime0commentairesil y a 28 jours@entrepreneurship93 357vues7j’aime0commentairesil y a 28 jours@entrepreneurship93 1 kvues46j’aime2commentairesil y a 29 jours@entrepreneurship93 144vues0j’aime0commentairesle mois dernier@entrepreneurship93 599vues21j’aime0commentairesil y a 2 mois@entrepreneurship93 542vues29j’aime0commentairesil y a 2 mois@entrepreneurship93 1,5 kvues55j’aime0commentairesil y a 2 mois@entrepreneurship93 1 kvues36j’aime2commentairesil y a 2 mois@entrepreneurship93 6,6 kvues66j’aime2commentairesil y a 3 mois@entrepreneurship93
Hashtags dans cette vidéo
Les liens restent dans cet index.
Questions fréquentes
- Combien de vues cette vidéo TikTok a-t-elle ?
- La capture indexée ici affiche 1 052 vues, 16 j’aime et 0 commentaires.
- Qui a publié cette vidéo TikTok ?
- Elle a été publiée par @entrepreneurship93, dont le profil est accessible depuis cette page.
- Quel est le taux d’engagement de cette vidéo TikTok ?
- D’après les indicateurs relevés, le taux d’engagement est de 1,71 % (j’aime + commentaires + partages rapportés aux vues).
- Quand cette vidéo TikTok a-t-elle été publiée ?
- Elle a été publiée le 2026-10-12, il y a plus de deux semaines.
- Quels hashtags sont utilisés dans cette vidéo ?
- La capture relève 1 hashtag, à commencer par #programming.
- Quelle est la durée de cette vidéo TikTok ?
- L’extrait capturé dure 2 minutes 20 secondes.