All about SLAs, SLIs and SLOs

All about SLAs, SLIs and SLOs

How do we measure response time of a service?

Response time is the time between a client sending a request and receiving a response. Even if we make the same request over and over again, we’ll get a slightly different response time on every try. For this reason, it’s common to see the average response time of a service being reported. Now the term “average” is usually understood as the arithmetic mean, however, in this case, the mean is not a very good metric if you want to know your “typical” response time, because it doesn’t tell us how many users actually experienced the delay.

Why is median the best indicator for response time?

The median is a good metric if you want to know how long users typically have to wait: half of user requests are served in less than the median response time and the other half take longer than the median. The median is also known as the 50th percentile, and sometimes abbreviated as p50. The 95th, 99th, and 99.9th percentiles are common (abbreviated p95, p99, and p999).

They are the response time thresholds at which 95%, 99%, or 99.9% of requests are faster than that particular threshold. For example, if the 95th percentile response time is 1.5 seconds, that means 95 out of 100 requests take less than 1.5 seconds, and 5 out of 100 requests take 1.5 seconds or more.

SLIs, SLAs and SLOs

Percentiles are often used in service level objectives (SLOs) and service level agreements (SLAs).

  1. Service-level indicators (SLIs) refer to the actual metrics produced by software services. This is a direct measurement of a service’s behavior. These are the real numbers that?indicate?overall performances, such as error rate and latency over time. Eg. the number of successful requests out of total requests over a one-month period. If out of one million requests made, ten requests fail, then an SLI for availability would thus be 99.999% uptime.
  2. SLAs are like a pact between the software provider and the software client. These commitments often note availability expectations that must be met. If an SLA is not met, some kind of penalty may be incurred on the service such as a refund or a service subscription credit.
  3. Service-level objectives (SLOs) are similar to SLAs but explicitly refer to the performance or reliability targets. An SLA may refer to specific SLOs. It is the objective your service team must hit to meet that SLA.

要查看或添加评论,请登录

Pratima Upadhyay的更多文章

  • The Rise of Indian SaaS Startups : Comparing SaaS with IaaS and PaaS

    The Rise of Indian SaaS Startups : Comparing SaaS with IaaS and PaaS

    Did you know, despite the tight macroeconomic pressure and funding crunch, Indian SaaS startups have raised more than…

    2 条评论
  • Master the Art of System Design: Enroll in My Live Course and Strengthen Your Fundamentals

    Master the Art of System Design: Enroll in My Live Course and Strengthen Your Fundamentals

    Register for the course Are you ready to take your technical skills to the next level? Look no further than my live…

    1 条评论
  • Properties of Pub Sub Architecture

    Properties of Pub Sub Architecture

    Topics in a publish-subscribe system not only act as intermediaries between publishers and subscribers, but they also…

    5 条评论
  • What are coroutines and how are they different from threads?

    What are coroutines and how are they different from threads?

    Coroutines are a programming construct that can be thought of as a lightweight version of threads. While threads are…

    2 条评论
  • How are user passwords managed and validated in databases?

    How are user passwords managed and validated in databases?

    Did you know, back in 2005, Reddit developers confirmed that a hacker had stolen backup copies of their database that…

    3 条评论
  • Pub/Sub Messaging Model

    Pub/Sub Messaging Model

    Pub-Sub messaging is an asynchronous communication method used in microservice architecture. The Pub-Sub model consists…

    4 条评论
  • An introduction to Kubernetes

    An introduction to Kubernetes

    What is Kubernetes and why is it so popular? Kubernetes is an open source container orchestration tool developed by…

    2 条评论
  • An introduction to Containers

    An introduction to Containers

    Have you ever wondered what is the buzz around containers and why is everyone moving towards containerizing their…

    2 条评论
  • The birth and rise of NoSQL

    The birth and rise of NoSQL

    The acronym NoSQL was first used in 1998 by Carlo Strozzi while naming his lightweight, open-source “relational”…

    3 条评论
  • Replication and Sharding

    Replication and Sharding

    Replication refers to having several copies of the same dataset hosted on separate machines in order to maintain…

    12 条评论

社区洞察

其他会员也浏览了