Git Product home page Git Product logo

Comments (1)

pixeldesu avatar pixeldesu commented on August 23, 2024 1

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.

from web-vitals-tracker.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.