Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache a fully reified visitor representation in the rails session upon successful visitor fetch #56

Open
jmileham opened this issue May 10, 2018 · 0 comments

Comments

@jmileham
Copy link
Member

jmileham commented May 10, 2018

Now that authenticated web sessions are Identity driven, we can no longer fail back and have the client deterministically decide its variant for a split from its visitor ID of TestTrack is unavailable. Not only that, but that behavior could create weird flapping when somebody had an override unaligned with the split weights when TT was unreachable.

So we'd like to cache the current visitor's assignment registry in the rails session after every successful visitor fetch, but under normal circumstances we'll never use it. Then, if a visitor fetch fails at any point, we can fall back to the cache.

It's important to ensure that the cache is deleted at sign in boundaries so that unauthenticated visitors do not cross the boundary into authenticated sessions. This means that the TT server is still an HA dependency of test_track log_in! and sign_up! calls.

/cc @smudge

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

No branches or pull requests

1 participant