SLI vs SLO vs SLA: A Food Delivery App Example
Nandan Jadhav

When was the last time you opened a food delivery app, selected your meal, and found that you couldn’t place the order?
The restaurant list might load correctly, but the payment could fail. Your order might be confirmed, but no delivery partner gets assigned. Or, the entire app appears down on a busy weekend.
From a customer’s perspective, the service isn’t working as expected. For the engineering team, however, each problem could have a different cause.
This is where three reliability concepts become useful: SLI, SLO and SLA.
Let’s understand them using a fictional food delivery application called QuickBite.
A quick look at the application
When a customer places an order on QuickBite, several components work together:
- Mobile app: The customer browses restaurants and selects food.
- API gateway and backend: The application processes requests.
- Order service: The order is created and its status is tracked.
- Payment service: The payment is processed.
- Restaurant integration: The restaurant receives the order.
- Delivery assignment: A delivery partner is assigned.
- Tracking and notifications: Customer receives updates.
A simplified view of the flow is:
Customer app → Backend APIs → Order service → Payment and restaurant systems → Delivery assignment → Order tracking
Take a look at the illustrative architecture diagram for quickbite -

These components depend on one another, but they can fail independently.
For example, customers might still be able to browse restaurants even when the payment service is unavailable. The application isn’t completely down, but an important part of the customer journey is broken.
Let’s see how SLI, SLO and SLA help us understand these situations.
1. SLI: What are we measuring?
SLI stands for Service Level Indicator.
In simple terms, it is a measurement that tells us how well a service is performing.
For QuickBite, we could measure:
- The percentage of restaurant list requests that succeed.
- The percentage of eligible order attempts that succeed.
- The percentage of eligible payments that complete successfully.
- The percentage of tracking requests that return valid information.
- The percentage of accepted orders assigned a delivery partner within a defined time.
The important part is choosing a measurement that reflects what matters to the customer.
For example, let’s say QuickBite receives 100,000 eligible order attempts in a given period.
- 99,950 attempts succeed.
- 50 attempts fail because of an internal application error.
The order-success rate is:
99,950 ÷ 100,000 × 100 = 99.95%
This 99.95% is our SLI.
We must define what counts as a successful order attempt. An invalid address entered by a customer shouldn’t automatically count as an application failure. However, if the order service fails to save a valid order, that would count.
The same principle applies to payment attempts, delivery assignment and other parts of the application.
A single overall availability metric may not tell us the whole story. Different parts of the customer journey may need their own SLIs.
2. SLO: What target do we want to achieve?
SLO stands for Service Level Objective.
An SLO defines the target we want to achieve for an SLI over a specified period.
QuickBite might set the following objective:
At least 99.9% of eligible order attempts should succeed over a rolling 30-day period.
The SLI tells us what actually happened. The SLO tells us what we’re aiming for.
If QuickBite achieves a 99.95% order-success rate, it is meeting the target. If the rate drops to 99.7%, it has missed the objective.
But what happens when the application experiences downtime?
Scenario 1: The order service goes down
Imagine a database connection problem makes the order service unavailable for 10 minutes during a busy evening.
Customers can browse the menu, but their orders cannot be submitted.
The team restores the service after 10 minutes.
Has QuickBite missed its SLO?
Not necessarily. It depends on how the SLI is defined and how many eligible order attempts failed.
If the SLI measures availability by the percentage of minutes the service is available, 10 minutes of complete downtime in a 30 day period would result in approximately 99.977% availability.
That is still above a 99.9% time-based availability target.
However, if the SLI measures successful order attempts, the result depends on how many attempts failed during those 10 minutes.
These are different measurements. We should not assume they produce the same result.
Scenario 2: Payments start failing
Now imagine the payment service starts timing out between 7 PM and 7:30 PM, which is peak business hours for hotels and customers.
Customers can browse restaurants and add food to their carts, but many payments fail or remain pending.
The rest of the application might look healthy, yet customers cannot complete their purchases.
QuickBite should track payment success separately from order-placement success. It should also investigate pending transactions, prevent duplicate charges and reconcile payment status.
The service might still meet its order-placement SLO while missing its payment-success SLO, depending on how each indicator is defined.
This is why it is important to measure the individual outcomes that matter to users.
Scenario 3: Delivery assignment becomes slow
Suppose orders are being created successfully, but a problem with the delivery assignment service means customers wait longer than expected for a delivery partner.
The order-success SLI may still look excellent.
However, the customer experience has deteriorated.
QuickBite could define an SLI as the percentage of eligible accepted orders assigned a delivery partner within say 5 minutes, and set an SLO for that measurement.
The 5 minute threshold is illustrative. The actual target should be based on the service’s operating model and customer expectations.
The lesson is simple: an order being created successfully doesn’t guarantee that the entire delivery experience is working well.
3. What is an error budget?
An error budget is the amount of failure a service can tolerate while still meeting its SLO.
Let’s return to QuickBite’s target of 99.9% successful order attempts.
That leaves an allowance of 0.1% unsuccessful eligible attempts during the measurement window.
If QuickBite receives 10lakh (a million) eligible order attempts over 30 days, the error budget is:
1,000,000 × 0.1% = 1,000 unsuccessful attempts
If 700 attempts fail, the service has used 70% of its error budget.
If 1,200 attempts fail, it has exceeded the budget and missed its SLO.
This doesn’t mean the team should ignore failures until the budget runs out. It gives engineers a way to understand how much reliability has been lost and how urgently they need to act.
For example, the team might investigate recent deployments, database issues, dependency failures or traffic spikes. If reliability is deteriorating quickly, it might postpone a risky release until the problem is resolved.
The SLO now becomes useful for operational decisions rather than just being a number on a dashboard.
4. SLA: What have we promised the customer?
SLA stands for Service Level Agreement.
An SLA is a commitment made to a customer, often documented in a contract. It may define the service level, how it is measured, applicable exclusions and what happens if the commitment is missed.
Consider two situations.
A platform availability commitment
Suppose QuickBite provides its ordering platform to restaurant partners. Its contract might include a commitment to a specified availability level, with service credits available if the agreed terms are breached.
That is an example of an SLA.
The exact target, measurement method and remedies depend on the contract.
Late food delivery
Now imagine a customer orders dinner and sees an estimated delivery time of 35 to 45 minutes. The food arrives 70 minutes later.
The customer has had a poor experience, but this doesn’t automatically mean an SLA has been breached.
The displayed delivery time might be an estimate rather than a contractual guarantee. QuickBite might instead have a separate late-delivery policy that provides a refund or credit under specified conditions.
These are different commitments.
An engineering SLO and a customer facing SLA don’t have to be identical. A business might set a stricter internal SLO so that the engineering team has time to resolve reliability issues before a contractual commitment is at risk.
5. Putting SLI, SLO and SLA together
Here’s a quick comparison using our food delivery application.
| Term | QuickBite example | The question it answers |
|---|---|---|
| SLI | Percentage of eligible order attempts that succeed | How well is the service performing? |
| SLO | At least 99.9% success over 30 days | What reliability target are we aiming for? |
| SLA | Contractual availability commitment, potentially with service credits | What have we promised the customer? |
The three concepts are connected, but they are not interchangeable.
- SLI: Measurement
- SLO: Target
- SLA: Commitment
6. So where does monitoring fit in?
Once QuickBite defines its SLIs and SLOs, it needs a way to measure them continuously.
A monitoring setup using Prometheus and Grafana, for example, could collect application metrics such as:
- Total eligible order attempts.
- Successful and failed order attempts.
- Payment failure rate.
- Request latency.
- Delivery assignment time.
A dashboard could display the current order-success rate alongside the SLO target. Alerts could notify the team when failures increase or the error budget is being consumed too quickly.
Infrastructure metrics such as CPU, memory and disk usage remain useful, but they serve a different purpose. They help engineers investigate what might be happening behind the scenes.
For example, an increase in order failures combined with high database connection usage could point towards a database bottleneck. Those metrics provide evidence for investigation, but they don’t prove the cause on their own.
The goal isn’t simply to create more dashboards and alerts. It is to measure what matters to customers and use that information to make better reliability decisions.
What I Learned
Working through this food delivery example highlights an important point: monitoring a service and understanding its reliability are not the same thing.
A server can be running, dashboards can look healthy, and customers can still struggle to place an order. Looking at infrastructure metrics alone may not tell us what the customer is experiencing.
SLIs help us measure the outcomes that matter. SLOs give us a target to work towards, while SLAs define the commitments made to customers.
For me, the key takeaway is to start with customers journey and then decide what needs to be measured. Once that is clear, it becomes easier to build meaningful dashboards, alerts and reliability objectives.
The goal shouldn’t be just to know whether our systems are running. It’s to understand whether they are delivering the service customers expect.