Prompt Details
Model
Chat - (gpt-5.6)
Token size
1,006
Example input
[Example: Payment API, Node.js, PostgreSQL, AWS]: E-commerce checkout API, Java Spring Boot, MySQL, Redis, AWS
[Example: Customer-facing API used for online payments]: Customer-facing API for cart checkout and order creation
[Example: 99.7% monthly availability]: 99.6% monthly availability
[Example: Downtime, API latency, failed transactions]: Checkout failures, slow responses, duplicate orders, database failures
[Example: 99.95% availability]: 99.95% availability
Example output
1. π SERVICE RELIABILITY BASELINE
Confirmed Facts
The service is a customer-facing e-commerce checkout API.
It uses Java Spring Boot, MySQL, Redis, and AWS.
The stated current monthly availability is 99.6%.
The stated reliability goal is 99.95% availability.
Identified risks include checkout failures, latency, duplicate orders, and database failures.
Critical Service Functions
1. Cart checkout request processing
2. Order creation
3. Order persistence in MySQL
4. Duplicate-order prevention
5. Retrieval or validation of checkout-related state
Current Reliability Position
The measured reliability provided is 99.6%, while the proposed goal is 99.95%.
This means the service needs to improve its availability by 0.35 percentage points to reach the stated goal.
Major Customer-Impacting Scenarios
Customer cannot complete checkout.
Checkout takes too long and appears stuck.
Customer submits an order twice and receives duplicate orders.
Database failure prevents order creation.
Redis failure affects operations that depend on cached checkout state.
Measurement Gaps
The input does not provide:
Current latency distribution
Current checkout success rate
Current error rate
Traffic volume
Incident frequency
Database failure frequency
Redis failure frequency
Existing monitoring coverage
These measurements should be collected before finalizing non-availability SLO targets.
---
2. π SLI & SLO DESIGN
SLI Measurement Proposed SLO Reason
Availability Successful eligible requests / total eligible requests 99.95% Directly aligned with the stated reliability goal
Checkout success Successful checkout transactions / attempted checkout transactions Target to be established after baseline measurement Checkout is the core customer-facing function
Latency Percentage of checkout requests completed below an agreed threshold Target to be established after baseline No latency data was provided
Error rate Failed eligible requests / total eligible requests Target to be established after baseline Prevents availability alone from hiding application failures
Duplicate orders Valid orders resulting in unintended duplicates Target to be established after baseline Duplicate orders directly affect customer trust and business operations
Availability SLO
SLI: Successful eligible requests / total eligible requests
SLO: 99.95% monthly availability
This target comes directly from the provided reliability goal, so it does not require inventing a new target.
A 99.95% monthly availability target allows approximately 21.9 minutes of unavailability in a 30-day month.
Latency SLO
A numerical latency target should not be invented because no current latency distribution or customer expectation was provided.
Instead:
SLI β Checkout requests completed within agreed latency threshold
SLO β Establish after measuring current p50/p95/p99 latency
The target should be based on observed customer experience and business requirements.
---
3. π€ SLA & ERROR BUDGET STRATEGY
SLO vs SLA
SLO: Internal reliability objective used by the engineering and operations teams.
SLA: External contractual commitment to customers.
The provided 99.95% figure should initially be treated as an SLO, not automatically as an SLA.
There is not enough information about contractual requirements, exclusions, service credits, maintenance windows, or customer agreements to recommend a contractual SLA.
Error Budget
For a 99.95% monthly SLO:
Error budget = 0.05%
For a 30-day month, this corresponds to approximately:
21.9 minutes
of allowed unavailability under the defined availability measurement.
Error-Budget Policy
Healthy budget: Normal feature development can continue.
Budget declining quickly: Investigate reliability degradation.
Budget nearly exhausted: Prioritize reliability work and reduce unnecessary operational risk.
Budget exhausted: Consider temporarily prioritizing reliability improvements over non-critical feature releases.
This should be an engineering governance mechanism, not an automatic release freeze without organizational agreement.
---
4. π¨ MONITORING & ALERTING PLAN
Availability Monitoring
Metrics:
Successful requests
Failed requests
Availability percentage
SLO compliance
Error-budget remaining
Data Sources:
Application metrics
Load balancer/API gateway metrics
Distributed traces
Logs
Critical Alert
Trigger a high-severity alert when the service is consuming its availability error budget rapidly enough to threaten the monthly SLO.
Severity: SEV-1 / Critical
Route to:
On-call SRE
Service owner
Incident response team
---
Checkout Failure Monitoring
Track:
Checkout attempts
Successful checkouts
Failed checkouts
Failure reason
Dependency failures
A sudden increase in checkout failures should generate an actionable alert.
Severity: High
The alert should focus on customer impact rather than simply alerting whenever an individual request fails.
---
Latency Monitoring
Dashboard:
p50 latency
p95 latency
p99 latency
Checkout latency
Database latency
Redis latency
Do not create a hard latency alert threshold until an appropriate target has been established from real measurements.
---
Database Monitoring
Monitor:
MySQL availability
Connection utilization
Query latency
Query errors
Connection failures
Severity: High when database degradation materially affects checkout.
---
Duplicate Order Monitoring
Track:
Order creation attempts
Successfully created orders
Duplicate-order detections
Idempotency failures
A confirmed increase in unintended duplicate orders should trigger an incident investigation because this directly affects customers.
---
Burn-Rate Monitoring
Use multiple burn-rate windows rather than a single threshold.
For example:
Fast burn: Detect severe reliability degradation quickly.
Slow burn: Detect sustained degradation that may not look dramatic in a short window.
The exact thresholds should be calibrated against the organization's incident-response capability and acceptable alert frequency.
---
5. π SLO REVIEW & INCIDENT RESPONSE
Workflow
1. Detect
Monitoring detects:
Availability degradation
Checkout failures
Latency degradation
Database problems
Rapid error-budget consumption
2. Investigate
Determine whether the problem originates from:
Application code
MySQL
Redis
AWS infrastructure
Deployment
Dependency failure
3. Mitigate
Possible actions include:
Roll back a problematic deployment
Restore unhealthy dependencies
Reduce unnecessary load
Enable an existing safe fallback
Protect the database from overload
4. Recover
Confirm:
Availability has recovered
Checkout functionality works
Error rate has normalized
Latency has recovered
Error-budget burn has stopped
5. Review
After the incident, review:
Customer impact
Duration
Root cause
Detection time
Mitigation time
Recovery time
Error-budget consumption
Monitoring gaps
6. Improve
Create concrete reliability actions such as:
Better checkout validation
Stronger idempotency controls
Database resilience improvements
Improved alerting
Safer deployment procedures
---
6. π IMPLEMENTATION ROADMAP
PHASE 1 - Define
Action β Define availability, checkout success, latency, error-rate, and duplicate-order SLIs.
Reason β Reliability cannot be managed consistently without measurable indicators.
Priority β HIGH
Success Measure β Every critical customer-facing function has an owner, SLI, measurement method, and SLO decision.
---
PHASE 2 - Monitor
Action β Build SLO dashboards and actionable alerts.
Reason β Teams need visibility before reliability problems become major customer-impacting incidents.
Priority β HIGH
Success Measure β Engineers can identify current SLO health and major failure conditions from a centralized dashboard.
---
PHASE 3 - Error Budget
Action β Introduce monthly error-budget tracking and burn-rate alerts.
Reason β Reliability decisions can then be balanced against feature-development velocity.
Priority β HIGH
Success Measure β Release and reliability decisions explicitly consider remaining error budget.
---
PHASE 4 - Continuous Improvement
Action β Reassess SLO targets using real production measurements.
Reason β The current input does not provide enough evidence for precise latency, checkout-success, or duplicate-order targets.
Priority β MEDIUM
Success Measure β SLOs are periodically reviewed using actual customer-impact and reliability data.
---
π― FINAL SLO & SLA FRAMEWORK
Recommended SLIs
Availability
Checkout success rate
Checkout latency
Application error rate
Duplicate-order rate
Database dependency health
Recommended SLOs
Availability: 99.95% monthly
Checkout success: Establish target after baseline measurement
Latency: Establish target after baseline measurement
Error rate: Establish target after baseline measurement
Duplicate orders: Establish target after baseline measurement
SLA Consideration
The 99.95% target should initially remain an internal SLO. A customer-facing SLA requires additional contractual and business information.
Error Budget
0.05% monthly availability error budget, equivalent to approximately 21.9 minutes in a 30-day month.
Critical Alerts
Rapid availability SLO burn
Severe checkout failure increase
Critical MySQL degradation
Significant Redis dependency failure
Sustained checkout latency degradation once a latency SLO exists
Duplicate-order anomaly
Review Cadence
Real-time: SLO and incident monitoring
After every major incident: Reliability review
Monthly: Error-budget review
Quarterly: SLO target reassessment
Top Reliability Priorities
1. Protect checkout availability
2. Measure and improve checkout success
3. Prevent duplicate orders through reliable idempotency
4. Strengthen MySQL dependency resilience
5. Implement error-budget and burn-rate monitoring
6. Establish evidence-based latency SLOs
By purchasing this prompt, you agree to our terms of service
GPT-5.6
Unclear service-level targets can make it difficult to know whether your application is actually reliable. π― This AI-powered planner helps define practical SLOs, SLAs, SLIs, error budgets, monitoring metrics, and alerting rules for your service.
π― SLI identification
π SLO target recommendations
π€ SLA planning
β³ Error budget strategy
π¨ SLO-based alerting
π Reliability dashboard plan
π₯ Burn-rate monitoring
π οΈ Reliability improvement roadmap
Ready to build a measurable reliability strategy?
...more
Added 3 days ago
