İçeriğe geç
TikMonkey

MP4 indirİndirici

Comment LOCK and I'll send you the cheat sheet comparing locks, atomic updates, and const… — @entrepreneurship93

Paylaşım tarihi: 12 Eki 2026 (iki haftadan uzun süre önce)140 sn1.052 görüntüleme

Video istatistikleri

Son yenilemedeki herkese açık sayılar.

Görüntüleme
1.052
Beğeni
16
Yorum
0
Paylaşım
2
Kaydetme
5
Etkileşim
%1,71
Süre
140 sn
Yayın tarihi
12 Eki 2026

Video analizleri

@entrepreneurship93 tarafından paylaşılan “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” TikTok videosu için bu dizinin yakaladığı herkese açık metrikler: 1.052 görüntüleme, 16 beğeni, 0 yorum, 2 paylaşım. Bu, %1,71 etkileşim oranı demek (beğeni, yorum ve paylaşımların görüntülemeye oranı). Video iki haftadan uzun süre önce paylaşıldı ve süresi 2 dakika 20 saniye. Video 5 kez kaydedildi.

Veriler 26 Eki 2026 (UTC) itibarıyladır; bu dizinin yakaladığı son herkese açık yenilemeden alınmıştır.

Entrepreneur....

@entrepreneurship93

Profili gör
Takipçi
11.564
Takip edilen
12
Beğeni
646.906
Videolar
41

Son videolar

DAHA FAZLASI: @ENTREPRENEURSHİP93

Bu videodaki hashtag’ler

Bağlantılar bu dizinin içinde kalır.

Sıkça sorulan sorular

Bu TikTok videosu kaç kez izlendi?
Burada dizinlenen kayıtta 1.052 görüntüleme, 16 beğeni ve 0 yorum görünüyor.
Bu TikTok videosunu kim paylaştı?
Videoyu @entrepreneurship93 paylaştı; hesabın bağlantısı bu sayfada yer alıyor.
Bu TikTok videosunun etkileşim oranı nedir?
Kaydedilen metriklere göre etkileşim oranı %1,71 (beğeni + yorum + paylaşım, görüntülemeye bölünür).
Bu TikTok videosu ne zaman paylaşıldı?
Video 2026-10-12 tarihinde, yani iki haftadan uzun süre önce paylaşıldı.
Bu videoda hangi hashtag’ler kullanılıyor?
Kayıtta 1 hashtag bağlantısı var; ilki #programming.
Bu TikTok videosunun süresi ne kadar?
Kaydedilen klibin süresi 2 dakika 20 saniye.