Urgent.News

What's breaking now, across thousands of outlets.

More in Tech

Mocking a Race Between Two Clients: A Deterministic Approach

Quick answer: A race between two clients happens when both act on the same resource and the result depends on whose request lands first, which is exactly what makes it hard to reproduce.

  • Mocking replaces timing randomness with deterministic responses
  • Assigns explicit latency to each step for predictable interleaving
  • Enforces version/ETag comparisons to reject stale writes

More from Thursday 12 November →