service tiers - cdn.geekwire.com...website frontend checkout view order c u s t o m e r s cat view...
TRANSCRIPT
©2008–18 New Relic, Inc. All rights reserved
Service TiersAvoiding Availability Disasters in Service-based Applications
Lee AtchisonSenior Director Strategic Architecture at New Relic, Inc.
leeatchison@leeatchison
©2008–18 New Relic, Inc. All rights reserved
What is a Modern Application
Responsive to
Customer NeedsScale
Dynamically
Maintain High
Availability
©2008–18 New Relic, Inc. All rights reserved 3
Building and Maintaining a Modern Application
Flexible
Architecture
Instrumentation
And
Monitoring
Dynamic Infrastructure
DevOps
Culture
©2008–18 New Relic, Inc. All rights reserved
Service Based Application
Service
AService
B
Service
C
Service
D
Service
E
Service
F
©2008–18 New Relic, Inc. All rights reserved
Service Failure
Service
AService
B
Service
C
Service
D
Service
E
Service
F
XX XX
X
What if Service D is not critical to
the success of Service A running??
©2008–18 New Relic, Inc. All rights reserved
Inter-Service FailuresCommon Cause for Availability Issues
How do you decide where to invest your time and energy?
Add resiliency
everywhere
expensive,
complex,
inefficient
Ignore some
dependencies
can
be
disastrous
Waste time/money or make risky decisions?
©2008–18 New Relic, Inc. All rights reserved
Service Tiers
Tier 1
Tier 2
Tier 3
Tier 4
Most
critical serv
ices
Least c
ritical s
erv
ices
A label applied to every service
©2008–18 New Relic, Inc. All rights reserved
Service Tiers
Tier 1
Tier 2
Tier 3
Tier 4
Most
critical serv
ices
Least c
ritical s
erv
ices
©2008–18 New Relic, Inc. All rights reserved
Tier 1 Service
A service where failure will
result in a significant impact to
customers or company bottom
line
©2008–18 New Relic, Inc. All rights reserved 10
Example Tier 1 Services
Login Service
Order
Accepting
Service
Credit Card
Processing
Service
©2008–18 New Relic, Inc. All rights reserved
Service Tiers
Tier 1
Tier 2
Tier 3
Tier 4
Most
critical serv
ices
Least c
ritical s
erv
ices
©2008–18 New Relic, Inc. All rights reserved
Tier 2 Service
A service where failure will
result in degraded customer
experience, but doesn’t
prevent its use
©2008–18 New Relic, Inc. All rights reserved 13
Example Tier 2 Services
Search
Service
Order
Fulfillment
Service
©2008–18 New Relic, Inc. All rights reserved
Service Tiers
Tier 1
Tier 2
Tier 3
Tier 4
Most
critical serv
ices
Least c
ritical s
erv
ices
©2008–18 New Relic, Inc. All rights reserved
Tier 3 Service
A service where failure will
result in minimal or difficult to
notice impact to
customers/business
©2008–18 New Relic, Inc. All rights reserved 16
Example Tier 3 Services
Message of
the Day
Service
Recommendations
Service
©2008–18 New Relic, Inc. All rights reserved
Service Tiers
Tier 1
Tier 2
Tier 3
Tier 4
Most
critical serv
ices
Least c
ritical s
erv
ices
©2008–18 New Relic, Inc. All rights reserved
Tier 4 Service
A service where failure will
result in no or minor impact to
customer/business
©2008–18 New Relic, Inc. All rights reserved 19
Example Tier 4 Services
Sales Report
Generation
Service
Marketing
Delivery
Service
©2008–18 New Relic, Inc. All rights reserved
Service Tiers
Tier 1 – Significant Impact
Tier 2 – Degraded Experience
Tier 3 – Limited Impact
Tier 4 – No or Minor Impact
A label applied to every service based on impact
©2008–18 New Relic, Inc. All rights reserved
Example Application
Website
frontend
Checkout
View
Order
C
U
S
T
O
M
E
R
S
Cat View
Search
Price
Calculator
Order
Management
Catalog
Database
Catalog
Editing
Price
Change
Merchandiser
Order
Processing
Order
Shipping
Fulfillment Center
Agent
Weekly Order Report Management
T-Shirt Store
©2008–18 New Relic, Inc. All rights reserved
Assign Tiers
Website
frontend
Checkout
View
Order
C
U
S
T
O
M
E
R
S
Cat View
Search
Price
Calculator
Order
Management
Catalog
Database
Catalog
Editing
Price
Change
Merchandiser
Order
Processing
Order
Shipping
Fulfillment Center
Agent
Weekly Order Report Management
T-Shirt Store
©2008–18 New Relic, Inc. All rights reserved
View Catalog
Customers need to see products to shop for them
• Website frontend
• Catalog View
• Catalog Database
➢ These are all Tier 1 Services(company can’t operate without it)
Website
frontend
Checkout
View
Order
C
U
S
T
O
M
E
R
S
Cat View
Search
Price
Calculator
Order
Management
Catalog
Database
Catalog
Editing
Price
Change
Merchandiser
Order
Processing
Order
Shipping
Fulfillment Center
Agent
Weekly Order Report Management
T-Shirt Store
1 3 4
1
1
1
2
©2008–18 New Relic, Inc. All rights reserved
Search Catalog
Customers want to search for product
• Catalog Search
➢ This is a Tier 2 Service(Useful for shopping)
Website
frontend
Checkout
View
Order
C
U
S
T
O
M
E
R
S
Cat View
Search
Price
Calculator
Order
Management
Catalog
Database
Catalog
Editing
Price
Change
Merchandiser
Order
Processing
Order
Shipping
Fulfillment Center
Agent
Weekly Order Report Management
T-Shirt Store
1 3 4
1
1
1 2
2
©2008–18 New Relic, Inc. All rights reserved
Catalog Editing
Merchandisers need to add/update products and set prices
• Catalog Editing
• Price Change
➢ These are Tier 3 Services(Not immediately impactful to customers)
Website
frontend
Checkout
View
Order
C
U
S
T
O
M
E
R
S
Cat View
Search
Price
Calculator
Order
Management
Catalog
Database
Catalog
Editing
Price
Change
Merchandiser
Order
Processing
Order
Shipping
Fulfillment Center
Agent
Weekly Order Report Management
T-Shirt Store
1 2 3 4
1
1
1 2
3
3
©2008–18 New Relic, Inc. All rights reserved
Checkout
Customers need to create orders
• Checkout Service
• Order Management
• Price Calculator
➢ These are Tier 1 Services(company cannot operate without them)
Website
frontend
Checkout
View
Order
C
U
S
T
O
M
E
R
S
Cat View
Search
Price
Calculator
Order
Management
Catalog
Database
Catalog
Editing
Price
Change
Merchandiser
Order
Processing
Order
Shipping
Fulfillment Center
Agent
Weekly Order Report Management
T-Shirt Store
1 2 3 4
1
1
1 2
3
3
1
1
1
©2008–18 New Relic, Inc. All rights reserved
Order Processing and Shipping
Fulfillment Center Agents want to
• Process Orders
• Ship Orders
➢ These are Tier 3 Services(some delays have no impact on customers)
Website
frontend
Checkout
View
Order
C
U
S
T
O
M
E
R
S
Cat View
Search
Price
Calculator
Order
Management
Catalog
Database
Catalog
Editing
Price
Change
Merchandiser
Order
Processing
Order
Shipping
Fulfillment Center
Agent
Weekly Order Report Management
T-Shirt Store
1 2 3 4
1
1
1 2
3
3
1
1
1
3
3
©2008–18 New Relic, Inc. All rights reserved
Order Status
Customer wants to
• See status of order
➢ This is a Tier 2 Service(useful but not essential for customers)
Website
frontend
Checkout
View
Order
C
U
S
T
O
M
E
R
S
Cat View
Search
Price
Calculator
Order
Management
Catalog
Database
Catalog
Editing
Price
Change
Merchandiser
Order
Processing
Order
Shipping
Fulfillment Center
Agent
Weekly Order Report Management
T-Shirt Store
1 2 3 4
1
1
1 2
3
3
1
1
1
3
3
2
©2008–18 New Relic, Inc. All rights reserved
Order Report
Managements wants to
• See weekly status of all orders
➢ This is a Tier 4 Service(useful internally, but delay in delivery is not serious)
Website
frontend
Checkout
View
Order
C
U
S
T
O
M
E
R
S
Cat View
Search
Price
Calculator
Order
Management
Catalog
Database
Catalog
Editing
Price
Change
Merchandiser
Order
Processing
Order
Shipping
Fulfillment Center
Agent
Weekly Order Report Management
T-Shirt Store
1 2 3 4
1
1
1 2
3
3
1
1
1
3
3
2
4
©2008–18 New Relic, Inc. All rights reserved
Using Tiers
©2008–18 New Relic, Inc. All rights reserved
How do I Use Service Tiers?
Responsive Dependencies Expectations
©2008–18 New Relic, Inc. All rights reserved
Responsiveness
1. Severity of the issue
2. Tier of service having the issue
When an issue with a service occurs, responsiveness differs depending
on the needs of the service. Your responsiveness depends on:
Pro
ble
m S
everity
Service Tier of service with problem
Low Severity
High Severity
Tier 1 Tier 2 Tier 3 Tier 4
Noncritical
Perhaps next day
followup acceptable
Critical
Immediate response
needed
Service Tier
Helps Determine Required Responsiveness
Issue #1
Issue #2
©2008–18 New Relic, Inc. All rights reserved
How do I Use Service Tiers?
Responsive Dependencies Expectations
©2008–18 New Relic, Inc. All rights reserved
Dependencies
Compare Service Tier of a service and a dependency determines the
criticalness of the dependency.
Service Dependency
1
2
3
4
How you handle dependencies is determined by the comparison of Service Tiers.
©2008–18 New Relic, Inc. All rights reserved
Critical Dependency
Service Dependency
1
2
3
4
Service needs to handle dependency failures gracefully.
Service is higher tier than dependency
Critical Dependency:
Dependency failure should not cause service to fail!
©2008–18 New Relic, Inc. All rights reserved
Noncritical Dependency
Service Dependency
1
2
3
4
Service can generally ignore dependency failures.
Service is lower tier than dependency
Noncritical Dependency:
Usually acceptable for service to fail if dependency fails.
©2008–18 New Relic, Inc. All rights reserved
Dependencies
Tier 1
Tier 2
Tier 3
Tier 4
Tier 1 Tier 2 Tier 3 Tier 4
Serv
ice y
ou d
epend o
n
Your service
Critical
Dependency
Noncritical
Dependency
Service Tier
Helps Determine Criticalness of Dependencies
©2008–18 New Relic, Inc. All rights reserved
How do I Use Service Tiers?
Responsive Dependencies Expectations
©2008–18 New Relic, Inc. All rights reserved
Higher ExpectationsCritical Dependencies
Expectations
Well defined SLAs
• Performance
• Availability
Higher the service’s Service Tier, the greater the expectations for that service.
Faster, higher availability, more responsive support…
More Generally:
Service Tier
Helps Establish Appropriate Expectations of a
Service
©2008–18 New Relic, Inc. All rights reserved
How do I Use Service Tiers?
Responsive Dependencies Expectations
Website
frontend
Checkout
View
Order
C
U
S
T
O
M
E
R
S
Cat View
Search
Price
Calculator
Order
Management
Catalog
Database
Catalog
Editing
Price
Change
Merchandiser
Order
Processing
Order
Shipping
Fulfillment Center
Agent
Weekly Order Report Management
T-Shirt Store
1 2 3 4
1
1
1 2
3
3
1
1
1
3
3
2
4
Critical Dependency
Noncritical Dependency
Website frontend needs to handle
dependency failures of Search
service gracefully.
View Order service can generally
ignore dependency failures of Order
Management service.
©2008–18 New Relic, Inc. All rights reserved
Classic, True Story Example
©2008–18 New Relic, Inc. All rights reserved
True Story Avatar Example
My Web Application
©2008–18 New Relic, Inc. All rights reserved
True Story Avatar Example
My Web Application ?
©2008–18 New Relic, Inc. All rights reserved
True Story Avatar Example
My Web Application X
©2008–18 New Relic, Inc. All rights reserved
True Story Avatar Example
My Web Application
Tier 1 Service(s)
Tier 2 Service(s)
Tier 4 Service
©2008–18 New Relic, Inc. All rights reserved
Service Tiers
Tier 1
Tier 2
Tier 3
Tier 4
Most
critical serv
ices
Least c
ritical s
erv
ices
A label applied to every service
Simple, basic, but critical component in
performance contracts between services.
Thank You
©2008–18 New Relic, Inc. All rights reserved
Lee Atchison
Senior Director Strategic Architecture at New Relic, Inc.
leeatchison@leeatchison
Architecting for ScaleBy: Lee AtchisonPublished by: O’Reilly Mediahttp://scalinginthe.cloud
“#1, Top DevOps Books to read in 2018”
– Apiumhub
“10 Tech Books for Summer Reading”
– Informaiton Week/Network Computing