-
Notifications
You must be signed in to change notification settings - Fork 36
Description
It's been discussed previously that no other web API handles retries of failed requests or load-balancing between different endpoints in the way that the Reporting spec currently does, and that maybe we should remove that complexity from the base spec.
It's clear (at least to me) that the primary motivation for it is Network Error logging, where the very conditions that make reporting necessary also mean that one-shot delivery to a single endpoint is inherently unreliable. So we definitely need those constructs there. But are they useful for CSP / Policy / Deprecation / Crash reports as well?
If we remove all of that, then an endpoint definition becomes essentially just a URL. No priority, weight, failures, retry-after or pending. With even load balancing gone, there doesn't seem to be a case for multiple endpoints in a group. Presumably, all load balancing could be done at the endpoint using DNS or routing techniques.
If client-side load balancing is useful, then we should keep the endpoint group concept, as well as priority and weight.
If failover / retry is also still useful, then we should keep everything, either in this spec, or perhaps figure out how to move it into fetch as a general mechanism.