RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

When Two Background Jobs Target the Same Record

Two Rails jobs can save successfully and still lose an update. Trace Solid Queue’s concurrency keys and expiry, then compare atomic increments with optimistic locking using a small database reproduction.

https://railsrevelry.substack.com/p/when-two-background-jobs-target-the-same-record?utm_source=rubyflow&utm_medium=referral&utm_campaign=article_28_shared_record

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in