- Published on
Article · Interrupted execution
Don't use a metrics counter to decide who can book the last place
An atomic read followed by an atomic increment is still two operations. Use a reservation protocol and define what happens when a reservation is abandoned.