Tag: FencingToken
All the articles with the tag "FencingToken".
-
Payment deadlines that keep moving: why I kept the timers in a MySQL ledger
I built a delayed job that cancels unpaid bookings once their payment deadline passes. The deadline keeps changing, the cancellation can't be undone, and the change notifications arrive duplicated or out of order. After comparing Temporal, db-scheduler, Quartz, Kafka and Redis, I kept the timers as rows in a MySQL table. This post also records what changed between the design and the implementation, and why.
-
Why You Cannot Simply Add a Second Instance to an In-Memory Pool
A second reputation-pool-cloud instance can grant the same resource twice, issue colliding JVM-local fencing tokens, and overwrite another instance's whole-snapshot checkpoint. This is a deterministic counterexample derived from the current code, not an observed production incident. The article traces the scope of leases, snapshots, memory budgets, and rate limits, then compares tenant sharding, externalized state, and a single writer.