Skip to content

feat: flagd-web provider#142

Merged
toddbaert merged 1 commit intomainfrom
flagd-web
Nov 21, 2022
Merged

feat: flagd-web provider#142
toddbaert merged 1 commit intomainfrom
flagd-web

Conversation

@toddbaert
Copy link
Copy Markdown
Member

@toddbaert toddbaert commented Nov 1, 2022

This continues the work from: #112

Copying a snippet from the readme with an overview of features:

Reconnection

If the connection to the flagd instance fails, the provider will attempt to reconnect with an exponential back-off. The maxDelay and maxRetries can be specified to customize reconnect behavior.

Event streaming

The FlagdWebProvider can be configured to receive events for flag changes. Combined with the event API in the JS SDK, this allows for subscription to flag value changes in clients.

Caching

The FlagdWebProvider will cache resolve flag values based on the associated flag-key and context. Values are cached in localstorage. A TTL for cached values can be specified. If event-streaming is enabled, the cache will be invalidated intelligently when flag configuration change events are received.

@toddbaert toddbaert force-pushed the flagd-web branch 3 times, most recently from 3faa4e0 to 70e9616 Compare November 1, 2022 19:58
@toddbaert toddbaert changed the title Flagd web feat: flagd-web provider Nov 1, 2022
@toddbaert toddbaert force-pushed the flagd-web branch 3 times, most recently from 6049157 to ff0bcc2 Compare November 1, 2022 20:14
@toddbaert
Copy link
Copy Markdown
Member Author

This is an updated and rebased version of: #112, with a few minor fixes and an update to 1.0 of the SDK

@toddbaert toddbaert marked this pull request as draft November 1, 2022 20:19
@toddbaert
Copy link
Copy Markdown
Member Author

Converted to draft - I'm going to do my own review tomorrow now that everything is up to date and working.

@toddbaert toddbaert force-pushed the flagd-web branch 5 times, most recently from fa5236b to 394a596 Compare November 4, 2022 02:26
@toddbaert toddbaert requested review from beeme1mr and tcarrio November 4, 2022 03:02
@toddbaert toddbaert marked this pull request as ready for review November 9, 2022 04:37
@toddbaert toddbaert requested a review from skyerus November 9, 2022 14:38
Copy link
Copy Markdown
Contributor

@skyerus skyerus left a comment

Choose a reason for hiding this comment

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

Nice work, looking forward to seeing it in action!

@toddbaert toddbaert force-pushed the flagd-web branch 5 times, most recently from 91be156 to c18d511 Compare November 10, 2022 19:10
@toddbaert toddbaert requested a review from beeme1mr November 10, 2022 19:16
Copy link
Copy Markdown
Member

@beeme1mr beeme1mr 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 for an experimental release.

Signed-off-by: James-Milligan <[email protected]>
Co-authored-by: Todd Baert <[email protected]>
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.

6 participants