Skip to content
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

Ideas #1

Open
Kanti opened this issue May 13, 2021 · 1 comment
Open

Ideas #1

Kanti opened this issue May 13, 2021 · 1 comment

Comments

@Kanti
Copy link
Owner

Kanti commented May 13, 2021

@pixeldesu
Copy link

Saw your extension, as I thought about making something like this myself! But I'll just drop some of my architectural thoughts as ideas here.

Regarding the first open question:

what about Sites with a lot of Traffic?
after 1_000_000 requests MySQL gets pretty slow (1,2s on my Laptop)

Considering the Web Vitals Metrics are just numbers, there could be an (optional) Scheduler task that combines and averages the values in tx_webvitalstracker_measure for a page. The more traffic an instance has, the more frequent they could run the task.

Another way of limiting requests would be a "percentile-threshold" kind of configuration, where an admin could define a threshold of (for example) 0.25, meaning that only every 4th request would actually be counted for measuring and the rest would be silently dropped. If someone wanted to count everything, they could just set it to 1, equaling all requests.

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

No branches or pull requests

2 participants