OPA functionality for A/B Testing? "counting" #427
-
We are thinking about using OPA for A/B-testing as decision-maker to decide which variant to use for a task To start in the right direction:
(Of course this is only the core and in practice there is additional data to be taken into account for the decision...) Since I could not find any info on this, I appreciate any hint/advice! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
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.