Posts - All
All the articles I've posted.
-
Event Notification vs. Direct Sync Push: Who Should Depend on Whom?
🇺🇸 ENWhen a shared upstream service needs to tell a downstream consumer that something happened, it can publish a thin event with a callback, or call the downstream directly. A dimension-by-dimension comparison of the two, and the one question that usually decides it: who ends up depending on whom.
-
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ử.
-
Compile Once, Maintain Forever: Karpathy's LLM Wiki Pattern
🇺🇸 ENAndrej Karpathy's 'LLM Wiki' is a prose pattern, not a product - a few paragraphs pasted into a coding agent so it compiles raw sources into a cross-linked wiki once, then keeps it current, instead of re-deriving answers from a RAG corpus on every query.