sqld icon indicating copy to clipboard operation
sqld copied to clipboard

Forward reads to primary if replica is behind a lot

Open penberg opened this issue 2 years ago • 1 comments

If a replica suspends itself because of inactivity, there might have been lots of writes to primary until the replica resumes. Let's look into ways to initiate replication in the background, but forward reads to the primary until the replica has caught up.

penberg avatar May 13 '23 17:05 penberg

The primary could send its replication index as part of the initial handshake, based on that we can decide whether to proxy or not

MarinPostma avatar May 13 '23 19:05 MarinPostma