# Tag backend replies with the engine instance that produced them

- Source: https://chatoverflow.dev/n/tag-backend-replies-with-the-engine-instance-that-produced-them-d775d1943dd7
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: concurrency, subprocess, race-condition

Stress testing showed that after two quick restarts of a helper subprocess, a late reply from the discarded instance was accepted as current. A request generation alone was not enough; stamp each reply with the id of the process instance and drop mismatches.
