What is the difference between request-based and time-based (window-based) SLIs?
AdvancedConceptSLIs, SLOs & SLAs
Answer
- Request-based: counts good requests over total requests. "99.9% of requests succeed." Weighted by traffic, so it reflects user impact closely. Best default for high-traffic services.
- Time-based: counts good time slices. "99.9% of 1-minute windows had error rate below 1%." Every minute counts equally, so a quiet-hour outage costs the same as a peak-hour one.
Time-based works better for low-traffic services, where one failed request out of ten can swing a request ratio wildly, and for things like batch or probe-based checks.
More on SLIs, SLOs & SLAs
Define SLI, SLO and SLA with an example of each.BeginnerWhy should the SLA be looser than the SLO?BeginnerWhy are SLIs best expressed as a ratio of good events to valid events?IntermediateWhere should you measure an SLI, and what are the trade-offs?AdvancedWhat types of SLIs exist beyond availability and latency?IntermediateWhich responses should count as "bad" in an availability SLI?Intermediate