Tagged articles

ABA

6 articles · Page 1 of 1
Architecture Digest
Architecture Digest
May 6, 2023 · Backend Development

Ensuring Idempotency in Order Services: Preventing Duplicate Orders and Solving the ABA Problem

The article explains how to achieve idempotent order creation and update in distributed systems by using database transactions, unique order identifiers, Redis locks, and version columns to prevent duplicate submissions and resolve the ABA anomaly, ensuring data consistency and reliable user experience.

ABATransactionduplicate order
0 likes · 8 min read
Ensuring Idempotency in Order Services: Preventing Duplicate Orders and Solving the ABA Problem
Cognitive Technology Team
Cognitive Technology Team
May 22, 2022 · Fundamentals

Lock‑Free (Non‑Blocking) Algorithms and Their Implementation in Java

Lock‑free (non‑blocking) algorithms replace traditional locks with hardware primitives such as compare‑and‑swap (CAS) to ensure data consistency during concurrent access, offering superior scalability and eliminating deadlocks, and the article explains Java’s atomic variables, CAS‑based implementations, and how to address the ABA problem with AtomicStampedReference.

ABACASJava
0 likes · 5 min read
Lock‑Free (Non‑Blocking) Algorithms and Their Implementation in Java