Skip to content

[FSSDK-11148] update: Implement CMAB Client #453

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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

FarhanAnjum-opti
Copy link
Contributor

@FarhanAnjum-opti FarhanAnjum-opti commented May 6, 2025

Summary

  • Implemented DefaultCmabClient, a client for fetching CMAB (Contextual Multi-Armed Bandit) decisions.

  • Supports configurable retries with exponential backoff through CmabRetryConfig.

  • Handles error scenarios such as network failures, non-2xx responses, invalid JSON, and malformed responses.

  • Logs relevant error and retry information using the Optimizely logger.

Test plan

  • Created unit tests for checking various scenarios.

Issues

Copy link
Contributor

@Mat001 Mat001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. Just one comment about string format

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.

3 participants