-
Notifications
You must be signed in to change notification settings - Fork 128
Open
Open
Copy link
Labels
[Plugin] Optimization DetectiveIssues for the Optimization Detective pluginIssues for the Optimization Detective plugin[Type] EnhancementA suggestion for improvement of an existing featureA suggestion for improvement of an existing feature
Milestone
Description
Originally discussed in #1496 (comment):
- Do we add an endpoint for getting the which URL Metrics are needed. The problem is that the endpoint cache wouldn't be reliably flushed. But if it were reliably flushed:
- Check what happens when there is a race condition between two requests to store a URL Metric from two application servers connected to the same database when there wasn't a
od_url_metrics
post that already existed. - Do we need a lock or throttling mechanism?
- When a persistent object cache is available, perhaps the POST request would only write to the object cache and then WP Cron would read from the object cache to actually create the URL Metrics posts.
Already addressed as part of #1641:
To deal with the page cache stampede problem, we can schedule the clearing of the cache for a URL periodically via WP Cron.
So the page cache stampede problem is addressed, but what is not addressed is what to do with a stampede of database writes for potentially thousands (or millions) of visitors attempting to submit URL Metrics for storage via the REST API.
Metadata
Metadata
Assignees
Labels
[Plugin] Optimization DetectiveIssues for the Optimization Detective pluginIssues for the Optimization Detective plugin[Type] EnhancementA suggestion for improvement of an existing featureA suggestion for improvement of an existing feature
Type
Projects
Status
Definition ✏️