Tag: distributed-systems
All the articles with the tag "distributed-systems".
-
Part 5: Backpressure and Schema Evolution - Overload and the Data Contract
🇺🇸 ENThe producer pushes 50,000 events a minute, the consumer can only digest 10,000 - lag creeps up in one direction until an OTP email arrives 4 hours late. And when one team renames a field in an event, they've just broken a public contract they didn't know anyone was relying on.
-
Phần 5: Backpressure Và Schema Evolution - Quá Tải Và Hợp Đồng Dữ Liệu
🇻🇳 VIProducer bơm 50.000 event/phút, consumer chỉ tiêu hoá nổi 10.000 - lag bò đều một chiều cho tới khi OTP chậm 4 tiếng. Và khi một team đổi tên field trong event, họ vừa phá vỡ một hợp đồng công khai mà họ không biết ai đang dựa vào.
-
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ử.