Skip to content

Prefetch trial state in a single Redis roundtrip#753

Merged
andrehjr merged 1 commit into
mainfrom
improve-redis-loading
Jul 25, 2026
Merged

Prefetch trial state in a single Redis roundtrip#753
andrehjr merged 1 commit into
mainfrom
improve-redis-loading

Conversation

@andrehjr

Copy link
Copy Markdown
Member

This is part of an effort to reduce the burden of N roundtrips and drop the need of a cache impl.

Trial#choose! reads an experiment's winner, start time, version, and cohorting flag on every ab_test. This batches all four into one pipelined roundtrip.

No change in behavior, just making all calls at the same time. 4 redis calls are reduced to a single one here.

@andrehjr
andrehjr merged commit 590e855 into main Jul 25, 2026
18 checks passed
@andrehjr
andrehjr deleted the improve-redis-loading branch July 25, 2026 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant