glacials / friendly_uuid

Short, stateless URL slugs for UUID-based Rails models
Other
48 stars 3 forks source link

Document race behavior #3

Open glacials opened 4 years ago

glacials commented 4 years ago

What happens if:

  1. Two Rails servers with desynchronized clocks try to insert records that ~collide at the same time?
  2. A read-only replica that is ~seconds out of date is used to determine what slug to use?

We should at minimum document these behaviors in the README, at best solve them.