Synthetic fixtures computed locally. No model, serving engine or production service is contacted.
Experiment workspace
Decision trace
The question this experiment answers
Belgavi's Book Store issues order IDs from a Snowflake-style generator in each service instance: milliseconds, a worker id and a per-millisecond sequence. What happens to uniqueness, latency, errors and ordering when one instance's wall clock steps back, and what changes when requests outrun the sequence? Change the step, the rate, the sequence bits, the workers and the strategy, and replay every notable decision.
Change one assumption at a time
In step_back_ignore switch the strategy to refuse, then wait, then logical: duplicates disappear and become refused requests, then delay, then a lead over the wall clock. Shrink the step to 5 ms with the logical strategy and the lead stays below 5 ms. In sequence_exhaustion_wait raise the sequence bits from 2 to 3 and the backlog disappears. Add workers in step_back_ignore and only worker 0 duplicates.
Expected outcomes
step_back_ignore: 1,200 duplicate IDs and one ordering break. step_back_refuse: 1,196 refused requests, no duplicates. step_back_wait: 1,196 requests delayed, up to 299 ms. step_back_logical: no duplicates, no errors, no delay, IDs up to 299 ms ahead of the wall clock. small_step_logical: at most 4 ms ahead. sequence_exhaustion_wait: the last ID is issued at 2,999 ms instead of 1,999 ms. sequence_exhaustion_logical: IDs end 1,000 ms ahead. four_workers_ignore: 600 duplicates, all on worker 0. no_step_ignore: no duplicates.
Read the table and the trace
The metrics count issued IDs, duplicates, refused requests, delayed requests, total and worst delay, the furthest an ID ran ahead of the wall clock, ordering breaks, exhausted sequences and the time of the last ID. The table lists each worker's requests and outcomes. The trace shows the clock step and the first duplicate, refusal, wait, exhausted sequence, lead of 10 ms or more and ordering break, with their times.
Reset and export
Reset inputs restores the selected preset and recomputes. Export JSON downloads the inputs, every worker row, every trace step, the metrics and the stated limits.
Limits
A rule model in whole milliseconds: requests arrive evenly and are served one at a time per worker, issuing an ID takes no time, only worker 0 has a clock step, and nothing is persisted across restarts. Real generators differ in how they wait, what they log and how they pack the bits; use the model to compare strategies, not to size a production system.