You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.
After testing 2a4c77d a bit more extensively we noticed that reading from replicas within a pipeline is not exactly working as intended. The behaviour we noticed was that latency for our pipelined commands was actually worse than what we'd get if we ignored the pipeline and just sent commands serially.
Upon closer inspection we noticed that the redis server will always return a MOVED response even if we could guarantee we're reaching the right node for that key:
This is because we were not sending the READONLY command upon connection, and results on pretty much every read command in the pipeline failing, and needing to be retried serially afterwards (which obviously incurs a massive latency hit).
We've fixed this internally and had the fix (#471) running in production for a few weeks now, you can see latency before and after the fix:
The text was updated successfully, but these errors were encountered:
Hi there!
After testing 2a4c77d a bit more extensively we noticed that reading from replicas within a pipeline is not exactly working as intended. The behaviour we noticed was that latency for our pipelined commands was actually worse than what we'd get if we ignored the pipeline and just sent commands serially.
Upon closer inspection we noticed that the redis server will always return a
MOVED
response even if we could guarantee we're reaching the right node for that key:This is because we were not sending the
READONLY
command upon connection, and results on pretty much every read command in the pipeline failing, and needing to be retried serially afterwards (which obviously incurs a massive latency hit).We've fixed this internally and had the fix (#471) running in production for a few weeks now, you can see latency before and after the fix:
The text was updated successfully, but these errors were encountered: