Skip to content

OPA functionality for A/B Testing? "counting" #427

Answered by anderseknert
hpvd asked this question in OPA and Rego
Discussion options

You must be logged in to vote

Hi @hpvd 👋

One challenge you'll need to deal with for that scenario is that OPA itself doesn't carry state between requests. So you can't increment some value internally and then read that in the context of the next request. What you could do is of course to let the client do the counting, and provide the number to OPA as part of the input of each request. OPA could then use that, and any other relevant data, to make decisions.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hpvd
Comment options

Answer selected by hpvd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants