-
Notifications
You must be signed in to change notification settings - Fork 27
[FSSDK-11587] Implement CMAB config #439
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a few questions about the config contexts and need your help to catch up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good as is. I'd like to see how we use these configs (cache configs, especially) with go-sdks core.
config/config.go
Outdated
@@ -141,18 +141,12 @@ func NewDefaultConfig() *AgentConfig { | |||
}, | |||
}, | |||
CMAB: CMABConfig{ | |||
Enabled: false, | |||
PredictionEndpoint: "https://prediction.cmab.optimizely.com", | |||
PredictionEndpoint: "https://prediction.cmab.optimizely.com/predict/%s", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering how we use these cmab configs with go-sdk cores. Planned in a separate PR?
config/config.go
Outdated
RequestTimeout: 10 * time.Second, | ||
Cache: map[string]interface{}{ | ||
"type": "memory", | ||
"size": 1000, | ||
"ttl": "30m", | ||
"redis": map[string]interface{}{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here - how we connect these memory/redis cache with go-sdk cores.
Summary
Issues
FSSDK-11587