Skip to content

feat: Metrics.Action Call Optimization, caching privacy settings values#355

Merged
satlead merged 4 commits intomainfrom
RPPL-993
Jan 5, 2024
Merged

feat: Metrics.Action Call Optimization, caching privacy settings values#355
satlead merged 4 commits intomainfrom
RPPL-993

Conversation

@Vinodsathyaseelan
Copy link
Copy Markdown
Contributor

@Vinodsathyaseelan Vinodsathyaseelan commented Dec 12, 2023

What

Metrics.Action Call Optimization by caching privacy settings values

Why

It has been noticed that certain apps are making excessive Metrics.Action calls on certain scenarios.
This API internally invokes multiple extension send request to collect different privacy settings values from storage extension as well as communicating to various distributor servers.

All these operations are impacting the performance of Metrics.Action call and it was taking an average 100ms to return a response to the caller.

By changing some of the extension send request to 'fire and forget' call and caching the privacy settings in ripple core, we are able to reduce the total API response time to under 6ms.

How

How do these changes achieve the goal?

Test

How has this been tested? How can a reviewer test it?

Checklist

  • I have self-reviewed this PR
  • I have added tests that prove the feature works or the fix is effective

@Vinodsathyaseelan Vinodsathyaseelan requested review from a team and satlead December 12, 2023 01:40
@satlead satlead merged commit b196f27 into main Jan 5, 2024
@satlead satlead deleted the RPPL-993 branch January 5, 2024 17:52
brendanobra pushed a commit to brendanobra/Ripple that referenced this pull request Feb 2, 2025
Co-authored-by: Ndelle432 <ndelle432>
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