Skip to content

Conversation

@ctawiah
Copy link
Contributor

@ctawiah ctawiah commented Jun 22, 2023

Story details: https://app.shortcut.com/launchdarkly/story/207639

This PR adds a new CacheableStoreProvider wrapper to Akamai Edge SDK to prevent redundant requests from being made to the origin store. This cacheable store provider ensure we're making only a single call per request thus removing duplicate sub-requests call which could be costly to our customers. With this fix, there will be only a single call made per method call variation, variationDetail or allFlagsState is called.

Also added some unit test to validate duplicate calls are not made.

@shortcut-integration
Copy link

@ctawiah ctawiah changed the title feat: [sc-207639] Fix issue that caused the feature store get function impl to be called twice fix: Fix issue that caused the feature store get function impl to be called twice Jun 22, 2023
@ctawiah ctawiah marked this pull request as ready for review June 22, 2023 18:25
@ctawiah ctawiah requested a review from dariushar June 22, 2023 18:25
@ctawiah ctawiah merged commit 68f1c78 into main Jun 23, 2023
@ctawiah ctawiah deleted the ctawiah/sc-207639/fix-code-that-caused-feature-store-twice-oninit branch June 23, 2023 19:42
@github-actions github-actions bot mentioned this pull request Jun 23, 2023
ctawiah pushed a commit that referenced this pull request Jun 23, 2023
🤖 I have created a release *beep* *boop*
---


<details><summary>akamai-edgeworker-sdk-common: 0.2.3</summary>

##
[0.2.3](akamai-edgeworker-sdk-common-v0.2.2...akamai-edgeworker-sdk-common-v0.2.3)
(2023-06-23)


### Bug Fixes

* Fix issue that caused the feature store get function impl to be called
twice ([#178](#178))
([68f1c78](68f1c78))
</details>

<details><summary>akamai-server-base-sdk: 0.4.2</summary>

##
[0.4.2](akamai-server-base-sdk-v0.4.1...akamai-server-base-sdk-v0.4.2)
(2023-06-23)


### Bug Fixes

* Fix issue that caused the feature store get function impl to be called
twice ([#178](#178))
([68f1c78](68f1c78))


### Dependencies

* The following workspace dependencies were updated
  * dependencies
* @launchdarkly/akamai-edgeworker-sdk-common bumped from ^0.2.2 to
^0.2.3
</details>

<details><summary>akamai-server-edgekv-sdk: 0.4.2</summary>

##
[0.4.2](akamai-server-edgekv-sdk-v0.4.1...akamai-server-edgekv-sdk-v0.4.2)
(2023-06-23)


### Bug Fixes

* Fix issue that caused the feature store get function impl to be called
twice ([#178](#178))
([68f1c78](68f1c78))


### Dependencies

* The following workspace dependencies were updated
  * dependencies
* @launchdarkly/akamai-edgeworker-sdk-common bumped from ^0.2.2 to
^0.2.3
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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