Skip to content

Conversation

leoromanovsky
Copy link
Member

@leoromanovsky leoromanovsky commented May 4, 2024

…ithout any CDN requests. (FF-2047)


labels: mergeable

Fixes: #issue

Motivation and Context

Users of the JS client SDK (browser) have a desire for an off-line mode that can be paired with providing a custom persistence store implementation that which can be bootstrapped by a server process and reduce client-sourced CDN requests to 0. The serving cache will be populated from this persistent store on startup.

JS clients have polling disabled by default but an initial request is still made.

Description

Adds a new configuration parameter skipInitialPoll and implements it in the poller. This paired with previously added support for a custom persistence store allows for an off-line mode that is populated off-process.

feature store-Page-2 drawio

How has this been tested?

New unit test.

@leoromanovsky leoromanovsky marked this pull request as ready for review May 4, 2024 00:25
let startRequestSuccess = false;
let startAttemptsRemaining =
1 + (options?.maxStartRetries ?? DEFAULT_INITIAL_CONFIG_REQUEST_RETRIES);
let startAttemptsRemaining = options?.skipInitialPoll
Copy link
Contributor

Choose a reason for hiding this comment

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

oh nice way to do it

@leoromanovsky leoromanovsky merged commit d271ac6 into main May 6, 2024
@leoromanovsky leoromanovsky deleted the lr/ff-2047/skip-init-load branch May 6, 2024 02:22
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.

2 participants