SlideShare a Scribd company logo
5/01/2013

BESTBUY.COM’S
CLOUD
ARCHITECTURE
WHO WE ARE
• Best Buy is the world’s largest multi-channel consumer
electronics retailer with stores in the United States, Canada,

China, Europe and Mexico.
• 11th largest online retailer
• More than 1.6 billion visitors to our stores and BestBuy.com each

year
• Reward Zone largest loyalty program in the U.S. – more than 40
million active members

• Provide customers with outstanding choice, unbiased advice
and unmatched support for the tech needs
May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
A UNIQUE CUSTOMER PROMISE
• THE LATEST DEVICES AND SERVICES, ALL IN ONE
PLACE

• IMPARTIAL & KNOWLEDGEABLE ADVICE
• COMPETITIVE PRICES
• THE ABILITY TO SHOP WHEN AND WHERE YOU
WANT
• SUPPORT FOR THE LIFE OF YOUR PRODUCTS

May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
JOEL CRABB
• Chief Architect, BestBuy.com
• Building BestBuy.com’s Ecommerce Platform
• B.S. EE – Washington University in St. Louis

• M.S. NE – University of Wisconsin – Madison
• MBA – University of Minnesota – Carlson School

May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
ARCHITECTURE OVERVIEW
• What’s included
—Non-functional goals
—Component system views
—Real examples

—Measurements and Volumes

• What’s not included
—Specific implementation details
—Products and company names
—Security information
May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
TERMINOLOGY – HOME PAGE

May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
TERMINOLOGY – PRODUCT DETAIL PAGE

May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
WHAT WE INHERITED
• Monolithic 10 year old architecture

• Minor UI changes took months
• 10,000 line JSPs was normal
• Long standing defects
• Chaotic build and deployment
• Unsatisfied business customers

May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
CLOUD EXPERIMENTS - 2010
• Created a browse-only site to cover outages
—Always on cloud resident application
—Elastically scaled and available in around 10 minutes

• Smaller web properties in cloud
(myrewardzone.bestbuy.com)

• Test environments in cloud

May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
CLOUD RE-ARCHITECTURE
• In 2011 we began planning a new Ecommerce
Platform
• Our traffic profile features an approximately 7X

peak around Thanksgiving
• Majority of traffic is browse and search
• Re-architect browse tier to cloud for elasticity,
scalability and reliability
• Served ~25% of traffic in 2012
May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
OVERARCHING CONCEPTS
• Split Traffic
—Browse is > 90% of traffic
—Commerce is most important traffic

• Cache everywhere
• Increase use of Content Delivery Network
• System Isolation

May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
STAKEHOLDER REQUIREMENTS
• Scalability

• Flexibility
• Reliability

May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
SCALABILITY GOALS
• Near-Infinite

• 7X traffic spikes

• Bursts

• Bursts > 50,000 rps
• #3 in eCommerce traffic during

holiday

May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
FLEXIBILITY
GOALS
Low cost of change
Fast concepts to site
Daily releases
Multiple versions

One day of work vs. 2 months
RELIABILITY GOALS
• 100% availability
• Zero defects

• Achieved 100% cloud
uptime during Holiday

• ~ 2s response times

May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
CLOUD DOMAIN
• Browse and Search traffic

• Non-transactional
• Non-persistent
• Non-sensitive data

May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
CLOUD ARCHITECTURE CONCEPTS
• Clouds fail, plan for it
—Multiple availability zones
—Multiple regions
—Multiple vendors

• Datacenter connections fail, plan for it
—Serve pages completely from cloud
—Browse-only fallback mode

May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
CLOUD ARCHITECTURE CONCEPTS
CDN: Global Traffic Manager

Browse Cloud

Browse Cloud

Vendor 1

Vendor 2

Best Buy Datacenter
May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
CLOUD ARCHITECTURE

Persistent Cache

Cloud Load Balancer
Web App

Web App

Service Aggregator

Product Data

Product Data

Datacenter

Legacy Services and Product Data

May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
FRONT END APPLICATION
• HTML
• Javascript
• CSS

• Templating framework
• JSON Data Contract with Service Layer
• No Java/JSP in front end
• No MVC framework

May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
FRONT END
FLEXIBILIT
Y
Decoupling from back
end allows freedom to
iterate and deploy

independent of back
end.

Swapped in Hottest Deals carousel
in December 2012 in one day.
FRONT END ARCHITECTURE
CDN: Global Traffic Manager
Browse
Traffic
Web Application
JSON Data Contract

Commerce
Traffic

Service Aggregator

Legacy Commerce Engine
May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
FRONT END: CDN USAGE
• CDN = Content Delivery Network
• Base page caching
• Edge Side Includes (ESI)

• Image caching
• Traffic routing to multiple clouds and DC
• Overall ~ 80% of requests served by CDN

May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
SERVICES TIER
• Aggregation services
—Specific to each page
—Gathers data from 30-50 services
—Asynchronous
—Smart caching

• Granular services
—Specific related data
—Reusable across views

May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
SERVICES AGGREGATOR - PDP
• Target of 1000ms for 99% of requests

99%
99%

95%
Avg

95%

AVG
May 1, 2013

@Copyright 2013 – Best Buy, Inc. All rights reserved.
DATA TIER
• NoSQL Product Catalog
—Schema flexibility
—Simple REST API
—Replication – Datacenter to Cloud
—Pulled from legacy product catalog
—Data available to all of Best Buy
—Reliable and Scalable
—~ 20 applications using data since inception

May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
DATA FLOW
Cloud

Web
Application

Granular
Service

Aggregator
Service

NoSQL Product Data

Replication

Extraction

Datacenter
Legacy Product Data

NoSQL Product Data
May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
BEST PRACTICES
• Use a distributed service framework
—Netflix - Hystrix
—LinkedIn – Rest.li

• Understand velocity of change
—Front end is high velocity
• Lightweight
• Disposable

—Back end is low velocity
• Heavyweight
• Scalable
May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
BEST PRACTICES
• Staged Deployments
—Started with Home Page
—Ramped up traffic from 10 – 100% over weeks
—Added Product Detail Pages in phases

• Have a backup plan
—Legacy system left intact
—Occasional rollback to fix defects

• Automate Everything
—Consistently deploy 100s of cloud VMs
—Easily create test environments
May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
PROBLEMS ENCOUNTERED
• Data replication is hard at scale

• Scaling takes time
—Getting from 95% to 99% of calls to our expected SLAs
took months

• Legacy data issues
—Old data formats were difficult to use in redesigned UI

May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
WHAT YOU SEE
Old PDP ~ 4 - 20 seconds

New PDP ~ 2.5 seconds

May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.
May 1, 2013
@Copyright 2013 – Best Buy, Inc. All rights reserved.

More Related Content

What's hot

Yale Jenkins Show and Tell
Yale Jenkins Show and TellYale Jenkins Show and Tell
Yale Jenkins Show and Tell
E. Camden Fisher
 
Event Driven Architecture (EDA) Reference Architecture | Anbu Krishnaswamy
Event Driven Architecture (EDA) Reference Architecture | Anbu KrishnaswamyEvent Driven Architecture (EDA) Reference Architecture | Anbu Krishnaswamy
Event Driven Architecture (EDA) Reference Architecture | Anbu Krishnaswamy
Bob Rhubart
 

What's hot (20)

Serverless CQRS in Azure!
Serverless CQRS in Azure!Serverless CQRS in Azure!
Serverless CQRS in Azure!
 
Introduction to CICD
Introduction to CICDIntroduction to CICD
Introduction to CICD
 
Building Real-time Push APIs Using Kafka as the Customer Facing Interface wit...
Building Real-time Push APIs Using Kafka as the Customer Facing Interface wit...Building Real-time Push APIs Using Kafka as the Customer Facing Interface wit...
Building Real-time Push APIs Using Kafka as the Customer Facing Interface wit...
 
Continuous Integration & Continuous Delivery with GCP
Continuous Integration & Continuous Delivery with GCPContinuous Integration & Continuous Delivery with GCP
Continuous Integration & Continuous Delivery with GCP
 
CQRS: Command/Query Responsibility Segregation
CQRS: Command/Query Responsibility SegregationCQRS: Command/Query Responsibility Segregation
CQRS: Command/Query Responsibility Segregation
 
대용량 분산 아키텍쳐 설계 #2 대용량 분산 시스템 아키텍쳐 디자인 패턴
대용량 분산 아키텍쳐 설계 #2 대용량 분산 시스템 아키텍쳐 디자인 패턴대용량 분산 아키텍쳐 설계 #2 대용량 분산 시스템 아키텍쳐 디자인 패턴
대용량 분산 아키텍쳐 설계 #2 대용량 분산 시스템 아키텍쳐 디자인 패턴
 
Yale Jenkins Show and Tell
Yale Jenkins Show and TellYale Jenkins Show and Tell
Yale Jenkins Show and Tell
 
Cloud Native Applications Maturity Model
Cloud Native Applications Maturity ModelCloud Native Applications Maturity Model
Cloud Native Applications Maturity Model
 
Build CICD Pipeline for Container Presentation Slides
Build CICD Pipeline for Container Presentation SlidesBuild CICD Pipeline for Container Presentation Slides
Build CICD Pipeline for Container Presentation Slides
 
6. Live VM migration
6. Live VM migration6. Live VM migration
6. Live VM migration
 
Cloud agnostic - an approach you might want to avoid
Cloud agnostic - an approach you might want to avoidCloud agnostic - an approach you might want to avoid
Cloud agnostic - an approach you might want to avoid
 
Webinar: Simplifying the Enterprise Hybrid Cloud with Azure Stack HCI
Webinar: Simplifying the Enterprise Hybrid Cloud with Azure Stack HCIWebinar: Simplifying the Enterprise Hybrid Cloud with Azure Stack HCI
Webinar: Simplifying the Enterprise Hybrid Cloud with Azure Stack HCI
 
Event Driven Architecture (EDA) Reference Architecture | Anbu Krishnaswamy
Event Driven Architecture (EDA) Reference Architecture | Anbu KrishnaswamyEvent Driven Architecture (EDA) Reference Architecture | Anbu Krishnaswamy
Event Driven Architecture (EDA) Reference Architecture | Anbu Krishnaswamy
 
Anatomy of a Continuous Integration and Delivery (CICD) Pipeline
Anatomy of a Continuous Integration and Delivery (CICD) PipelineAnatomy of a Continuous Integration and Delivery (CICD) Pipeline
Anatomy of a Continuous Integration and Delivery (CICD) Pipeline
 
DevOps
DevOps DevOps
DevOps
 
CI/CD on Google Cloud Platform
CI/CD on Google Cloud PlatformCI/CD on Google Cloud Platform
CI/CD on Google Cloud Platform
 
Overview of Site Reliability Engineering (SRE) & best practices
Overview of Site Reliability Engineering (SRE) & best practicesOverview of Site Reliability Engineering (SRE) & best practices
Overview of Site Reliability Engineering (SRE) & best practices
 
Introducing Azure SQL Database
Introducing Azure SQL DatabaseIntroducing Azure SQL Database
Introducing Azure SQL Database
 
SOLID & Design Patterns
SOLID & Design PatternsSOLID & Design Patterns
SOLID & Design Patterns
 
Event Driven Architecture (EDA) Reference Architecture
Event Driven Architecture (EDA) Reference ArchitectureEvent Driven Architecture (EDA) Reference Architecture
Event Driven Architecture (EDA) Reference Architecture
 

Viewers also liked

Riak seattle-meetup-august
Riak seattle-meetup-augustRiak seattle-meetup-august
Riak seattle-meetup-august
pharkmillups
 
Be an agile architect
Be an agile architectBe an agile architect
Be an agile architect
joelcrabb
 
Riak Use Cases : Dissecting The Solutions To Hard Problems
Riak Use Cases : Dissecting The Solutions To Hard ProblemsRiak Use Cases : Dissecting The Solutions To Hard Problems
Riak Use Cases : Dissecting The Solutions To Hard Problems
Andy Gross
 

Viewers also liked (20)

Cassandra and Riak at BestBuy.com
Cassandra and Riak at BestBuy.comCassandra and Riak at BestBuy.com
Cassandra and Riak at BestBuy.com
 
How does Riak compare to Cassandra? [Cassandra London User Group July 2011]
How does Riak compare to Cassandra? [Cassandra London User Group July 2011]How does Riak compare to Cassandra? [Cassandra London User Group July 2011]
How does Riak compare to Cassandra? [Cassandra London User Group July 2011]
 
Best Buy Web 2.0
Best Buy Web 2.0Best Buy Web 2.0
Best Buy Web 2.0
 
Pattern of Innovation
Pattern of InnovationPattern of Innovation
Pattern of Innovation
 
Riak add presentation
Riak add presentationRiak add presentation
Riak add presentation
 
Riak seattle-meetup-august
Riak seattle-meetup-augustRiak seattle-meetup-august
Riak seattle-meetup-august
 
Basho and Riak at GOTO Stockholm: "Don't Use My Database."
Basho and Riak at GOTO Stockholm:  "Don't Use My Database."Basho and Riak at GOTO Stockholm:  "Don't Use My Database."
Basho and Riak at GOTO Stockholm: "Don't Use My Database."
 
Be an agile architect
Be an agile architectBe an agile architect
Be an agile architect
 
A cloud computing primer for non-technical executives
A cloud computing primer for non-technical executivesA cloud computing primer for non-technical executives
A cloud computing primer for non-technical executives
 
Redis : Play buzz uses Redis
Redis : Play buzz uses RedisRedis : Play buzz uses Redis
Redis : Play buzz uses Redis
 
Scaling with Riak at Showyou
Scaling with Riak at ShowyouScaling with Riak at Showyou
Scaling with Riak at Showyou
 
Modelling Data as Graphs (Neo4j)
Modelling Data as Graphs (Neo4j)Modelling Data as Graphs (Neo4j)
Modelling Data as Graphs (Neo4j)
 
Riak Use Cases : Dissecting The Solutions To Hard Problems
Riak Use Cases : Dissecting The Solutions To Hard ProblemsRiak Use Cases : Dissecting The Solutions To Hard Problems
Riak Use Cases : Dissecting The Solutions To Hard Problems
 
An intro to Neo4j and some use cases (JFokus 2011)
An intro to Neo4j and some use cases (JFokus 2011)An intro to Neo4j and some use cases (JFokus 2011)
An intro to Neo4j and some use cases (JFokus 2011)
 
Recommendations with Neo4j (FOSDEM 2015)
Recommendations with Neo4j (FOSDEM 2015)Recommendations with Neo4j (FOSDEM 2015)
Recommendations with Neo4j (FOSDEM 2015)
 
Redis use cases
Redis use casesRedis use cases
Redis use cases
 
Advanced Neo4j Use Cases with the GraphAware Framework
Advanced Neo4j Use Cases with the GraphAware FrameworkAdvanced Neo4j Use Cases with the GraphAware Framework
Advanced Neo4j Use Cases with the GraphAware Framework
 
Modelling Data in Neo4j (plus a few tips)
Modelling Data in Neo4j (plus a few tips)Modelling Data in Neo4j (plus a few tips)
Modelling Data in Neo4j (plus a few tips)
 
Introduction to Redis Data Structures: Sorted Sets
Introduction to Redis Data Structures: Sorted SetsIntroduction to Redis Data Structures: Sorted Sets
Introduction to Redis Data Structures: Sorted Sets
 
Redis and its many use cases
Redis and its many use casesRedis and its many use cases
Redis and its many use cases
 

Similar to The BestBuy.com Cloud Architecture

2 one spot redshift bigdatacamp 1.02
2 one spot redshift bigdatacamp 1.022 one spot redshift bigdatacamp 1.02
2 one spot redshift bigdatacamp 1.02
Valerie Akinson Brown
 
2 one spot redshift bigdatacamp 1.02
2 one spot redshift bigdatacamp 1.022 one spot redshift bigdatacamp 1.02
2 one spot redshift bigdatacamp 1.02
BigDataCamp
 
Case study - Nuskin: Statefull Applications in a Stateless World
Case study - Nuskin: Statefull Applications in a Stateless WorldCase study - Nuskin: Statefull Applications in a Stateless World
Case study - Nuskin: Statefull Applications in a Stateless World
Day Software
 

Similar to The BestBuy.com Cloud Architecture (20)

Object Storage: How Can it Work for You
Object Storage: How Can it Work for YouObject Storage: How Can it Work for You
Object Storage: How Can it Work for You
 
Building a data driven search application with LucidWorks SiLK
Building a data driven search application with LucidWorks SiLKBuilding a data driven search application with LucidWorks SiLK
Building a data driven search application with LucidWorks SiLK
 
Build and Manage Hadoop & Oracle NoSQL DB Solutions- Impetus Webinar
Build and Manage Hadoop & Oracle NoSQL DB Solutions- Impetus WebinarBuild and Manage Hadoop & Oracle NoSQL DB Solutions- Impetus Webinar
Build and Manage Hadoop & Oracle NoSQL DB Solutions- Impetus Webinar
 
The Modern Database for Enterprise Applications
The Modern Database for Enterprise ApplicationsThe Modern Database for Enterprise Applications
The Modern Database for Enterprise Applications
 
Cloudian Webinar - 7 Key Reasons why Object Storage lowers Storage TCO
Cloudian Webinar - 7 Key Reasons why Object Storage lowers Storage TCOCloudian Webinar - 7 Key Reasons why Object Storage lowers Storage TCO
Cloudian Webinar - 7 Key Reasons why Object Storage lowers Storage TCO
 
2 one spot redshift bigdatacamp 1.02
2 one spot redshift bigdatacamp 1.022 one spot redshift bigdatacamp 1.02
2 one spot redshift bigdatacamp 1.02
 
2 one spot redshift bigdatacamp 1.02
2 one spot redshift bigdatacamp 1.022 one spot redshift bigdatacamp 1.02
2 one spot redshift bigdatacamp 1.02
 
2 one spot redshift bigdatacamp 1.02
2 one spot redshift bigdatacamp 1.022 one spot redshift bigdatacamp 1.02
2 one spot redshift bigdatacamp 1.02
 
The Shifting Landscape of Data Integration
The Shifting Landscape of Data IntegrationThe Shifting Landscape of Data Integration
The Shifting Landscape of Data Integration
 
Weathering the Data Storm – How SnapLogic and AWS Deliver Analytics in the Cl...
Weathering the Data Storm – How SnapLogic and AWS Deliver Analytics in the Cl...Weathering the Data Storm – How SnapLogic and AWS Deliver Analytics in the Cl...
Weathering the Data Storm – How SnapLogic and AWS Deliver Analytics in the Cl...
 
Google Cloud Platform
Google Cloud PlatformGoogle Cloud Platform
Google Cloud Platform
 
Deliver Best-in-Class HPC Cloud Solutions Without Losing Your Mind
Deliver Best-in-Class HPC Cloud Solutions Without Losing Your MindDeliver Best-in-Class HPC Cloud Solutions Without Losing Your Mind
Deliver Best-in-Class HPC Cloud Solutions Without Losing Your Mind
 
Technology Trends in 2013-2014
Technology Trends in 2013-2014Technology Trends in 2013-2014
Technology Trends in 2013-2014
 
Couchbase 3.0.2 d1
Couchbase 3.0.2  d1Couchbase 3.0.2  d1
Couchbase 3.0.2 d1
 
MPMA 2013 - Leveraging the Cloud for Museum Collections
MPMA 2013  - Leveraging the Cloud for Museum CollectionsMPMA 2013  - Leveraging the Cloud for Museum Collections
MPMA 2013 - Leveraging the Cloud for Museum Collections
 
Cassandra and Riak at BestBuy.com
Cassandra and Riak at BestBuy.comCassandra and Riak at BestBuy.com
Cassandra and Riak at BestBuy.com
 
Get up to speed cloud computing and apps yeovil 9.06.15
Get up to speed   cloud computing and apps yeovil 9.06.15Get up to speed   cloud computing and apps yeovil 9.06.15
Get up to speed cloud computing and apps yeovil 9.06.15
 
Getting Managers to Ride the Cloud
Getting Managers to Ride the CloudGetting Managers to Ride the Cloud
Getting Managers to Ride the Cloud
 
How to Increase Hosting Company Profits and Capture Market Share
How to Increase Hosting Company Profits and Capture Market ShareHow to Increase Hosting Company Profits and Capture Market Share
How to Increase Hosting Company Profits and Capture Market Share
 
Case study - Nuskin: Statefull Applications in a Stateless World
Case study - Nuskin: Statefull Applications in a Stateless WorldCase study - Nuskin: Statefull Applications in a Stateless World
Case study - Nuskin: Statefull Applications in a Stateless World
 

Recently uploaded

Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Peter Udo Diehl
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 

Recently uploaded (20)

AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through Observability
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara Laskowska
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
 
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 

The BestBuy.com Cloud Architecture

  • 2. WHO WE ARE • Best Buy is the world’s largest multi-channel consumer electronics retailer with stores in the United States, Canada, China, Europe and Mexico. • 11th largest online retailer • More than 1.6 billion visitors to our stores and BestBuy.com each year • Reward Zone largest loyalty program in the U.S. – more than 40 million active members • Provide customers with outstanding choice, unbiased advice and unmatched support for the tech needs May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 3. A UNIQUE CUSTOMER PROMISE • THE LATEST DEVICES AND SERVICES, ALL IN ONE PLACE • IMPARTIAL & KNOWLEDGEABLE ADVICE • COMPETITIVE PRICES • THE ABILITY TO SHOP WHEN AND WHERE YOU WANT • SUPPORT FOR THE LIFE OF YOUR PRODUCTS May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 4. JOEL CRABB • Chief Architect, BestBuy.com • Building BestBuy.com’s Ecommerce Platform • B.S. EE – Washington University in St. Louis • M.S. NE – University of Wisconsin – Madison • MBA – University of Minnesota – Carlson School May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 5. ARCHITECTURE OVERVIEW • What’s included —Non-functional goals —Component system views —Real examples —Measurements and Volumes • What’s not included —Specific implementation details —Products and company names —Security information May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 6. TERMINOLOGY – HOME PAGE May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 7. TERMINOLOGY – PRODUCT DETAIL PAGE May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 8. WHAT WE INHERITED • Monolithic 10 year old architecture • Minor UI changes took months • 10,000 line JSPs was normal • Long standing defects • Chaotic build and deployment • Unsatisfied business customers May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 9. CLOUD EXPERIMENTS - 2010 • Created a browse-only site to cover outages —Always on cloud resident application —Elastically scaled and available in around 10 minutes • Smaller web properties in cloud (myrewardzone.bestbuy.com) • Test environments in cloud May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 10. CLOUD RE-ARCHITECTURE • In 2011 we began planning a new Ecommerce Platform • Our traffic profile features an approximately 7X peak around Thanksgiving • Majority of traffic is browse and search • Re-architect browse tier to cloud for elasticity, scalability and reliability • Served ~25% of traffic in 2012 May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 11. OVERARCHING CONCEPTS • Split Traffic —Browse is > 90% of traffic —Commerce is most important traffic • Cache everywhere • Increase use of Content Delivery Network • System Isolation May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 12. STAKEHOLDER REQUIREMENTS • Scalability • Flexibility • Reliability May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 13. SCALABILITY GOALS • Near-Infinite • 7X traffic spikes • Bursts • Bursts > 50,000 rps • #3 in eCommerce traffic during holiday May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 14. FLEXIBILITY GOALS Low cost of change Fast concepts to site Daily releases Multiple versions One day of work vs. 2 months
  • 15. RELIABILITY GOALS • 100% availability • Zero defects • Achieved 100% cloud uptime during Holiday • ~ 2s response times May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 16. CLOUD DOMAIN • Browse and Search traffic • Non-transactional • Non-persistent • Non-sensitive data May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 17. CLOUD ARCHITECTURE CONCEPTS • Clouds fail, plan for it —Multiple availability zones —Multiple regions —Multiple vendors • Datacenter connections fail, plan for it —Serve pages completely from cloud —Browse-only fallback mode May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 18. CLOUD ARCHITECTURE CONCEPTS CDN: Global Traffic Manager Browse Cloud Browse Cloud Vendor 1 Vendor 2 Best Buy Datacenter May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 19. CLOUD ARCHITECTURE Persistent Cache Cloud Load Balancer Web App Web App Service Aggregator Product Data Product Data Datacenter Legacy Services and Product Data May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 20. FRONT END APPLICATION • HTML • Javascript • CSS • Templating framework • JSON Data Contract with Service Layer • No Java/JSP in front end • No MVC framework May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 21. FRONT END FLEXIBILIT Y Decoupling from back end allows freedom to iterate and deploy independent of back end. Swapped in Hottest Deals carousel in December 2012 in one day.
  • 22. FRONT END ARCHITECTURE CDN: Global Traffic Manager Browse Traffic Web Application JSON Data Contract Commerce Traffic Service Aggregator Legacy Commerce Engine May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 23. FRONT END: CDN USAGE • CDN = Content Delivery Network • Base page caching • Edge Side Includes (ESI) • Image caching • Traffic routing to multiple clouds and DC • Overall ~ 80% of requests served by CDN May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 24. SERVICES TIER • Aggregation services —Specific to each page —Gathers data from 30-50 services —Asynchronous —Smart caching • Granular services —Specific related data —Reusable across views May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 25. SERVICES AGGREGATOR - PDP • Target of 1000ms for 99% of requests 99% 99% 95% Avg 95% AVG May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 26. DATA TIER • NoSQL Product Catalog —Schema flexibility —Simple REST API —Replication – Datacenter to Cloud —Pulled from legacy product catalog —Data available to all of Best Buy —Reliable and Scalable —~ 20 applications using data since inception May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 27. DATA FLOW Cloud Web Application Granular Service Aggregator Service NoSQL Product Data Replication Extraction Datacenter Legacy Product Data NoSQL Product Data May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 28. BEST PRACTICES • Use a distributed service framework —Netflix - Hystrix —LinkedIn – Rest.li • Understand velocity of change —Front end is high velocity • Lightweight • Disposable —Back end is low velocity • Heavyweight • Scalable May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 29. BEST PRACTICES • Staged Deployments —Started with Home Page —Ramped up traffic from 10 – 100% over weeks —Added Product Detail Pages in phases • Have a backup plan —Legacy system left intact —Occasional rollback to fix defects • Automate Everything —Consistently deploy 100s of cloud VMs —Easily create test environments May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 30. PROBLEMS ENCOUNTERED • Data replication is hard at scale • Scaling takes time —Getting from 95% to 99% of calls to our expected SLAs took months • Legacy data issues —Old data formats were difficult to use in redesigned UI May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 31. WHAT YOU SEE Old PDP ~ 4 - 20 seconds New PDP ~ 2.5 seconds May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.
  • 32. May 1, 2013 @Copyright 2013 – Best Buy, Inc. All rights reserved.