Tag: concurrency
All the articles with the tag "concurrency".
-
The EF Core Livelock That Looks Like a Hang: Stale ChangeTracker State and the Atomic-Claim Fix
🇺🇸 ENA scheduled worker claiming payment rows under optimistic concurrency started livelocking at 2+ instances - not crashing, just never finishing. This traces the two-layer root cause and compares the minimal ChangeTracker.Clear() patch against removing the race entirely with an atomic UPDATE.
-
Livelock Trong EF Core: ChangeTracker 'Dính' State Cũ, Và Cách Sửa Bằng UPDATE Nguyên Tử
🇻🇳 VIMột worker chạy theo lịch, giành các dòng thanh toán dưới cơ chế optimistic concurrency (kiểm soát tương tranh lạc quan), bắt đầu livelock khi scale từ 2 instance trở lên - không crash, chỉ là không bao giờ chạy xong. Bài viết truy nguyên nhân gốc hai tầng và so sánh patch tối thiểu ChangeTracker.Clear() với việc loại bỏ hẳn race bằng một UPDATE nguyên tử.