Files
fizzy/gems/fizzy-saas
Kevin McConnell bd259f7795 Add optimistic pausing to avoid stale reads
Instead of writer pinning, we'll track the last transaction ID of each
write in the session. Then on each read we'll wait for the replica to
report that this transaction is available.

If it doesn't become available within a reasonable timeout, we'll
proceed anyway, and accept the possibility of a stale read.

The hope here is that most of the time, the replica is caught up in the
time between a write request and the following read request. If it's
not, we now have a little tolerance to wait for it, which hopefully
proves enough to stale reads are not encountered in normal use.

We also disable the writer affinity opt-out mechanism that we had
before, since we will no longer be using writer affinity at the load
balancer.
2025-11-24 13:29:52 +00:00
..
2025-10-03 21:56:18 -04:00
2025-11-17 09:12:40 -05:00

Fizzy::Saas

Short description and motivation.

Usage

How to use my plugin.

Installation

Add this line to your application's Gemfile:

gem "fizzy-saas"

And then execute:

$ bundle

Or install it yourself as:

$ gem install fizzy-saas

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.