SlideShare a Scribd company logo
Black Friday Preparation, Pt.
1: Handling High-Traffic
Events
Webcast
Thursday, May 7, 2015
Today’s
Speakers
Brian Pagano David Padgett
Apigee Edge – Nov 27th to Dec 1st, 2014
• Experienced zero downtime
• Supported 6 of the top 10 retailers
• Handled a 263% annual increase in API calls
• Managed over 8000 TPS peak loads for a single retailer
• Tested for 5x more capacity than required
• Proactively alerted customers of 50+ problems with their stack
https://pages.apigee.com/Black-Friday.html
4
Before
Review & Prepare
• Optimize Existing APIs
• Add Caching
• Leverage API BaaS
• Security Checklist
6
Apigee
Target
Endpoint
App
Response
Cache
Apigee
Assign
Message
Extract
Variables
KVM
Java
Callout
Python
Extract
Variables
Spike
Arrest
Apigee
KVM
Operations
Extract
Variables
Spike
Arrest
Datastore
Location
queries
Push
Notification
s
Connection
s/Social
User Data
API BaaS
Estimate
• Multiplier – Assume 10x Increase in Traffic
• Base API Traffic Estimate on Prior 2-3 Years
• Leverage Analytics & Insights
• Ask Questions
7
Test
• Why? Understand behavior under load
• What?
– Performance (Stress, Load, Soak, Spike)
– Operational (API Health)
– Functional (Use Case)
• Where?
• When?
• Who?
• How?
• And…
8
During
Monitor
• Analyze API traffic statistics
• Pro-actively open a Support Ticket with Apigee
• Review the Apigee Escalation Process
http://apigee.com/about/sites/mktg-
new/files/ApigeeSupportTicketandEscalationProcess.pdf
10
Statistics
Collector
Message
Logging
Statistics
Collector
Statistics
Collector
Message
Logging
Message
Logging
Test
• Operational and Functional Testing
• In PROD because that’s what the Customers sees
• Continuously
• By your DevOps/Operations Teams
11
After
What’s Next?
• Cyber Monday
• Day After Christmas
• End-of-year Clearance
• …
• Pre-Black Friday sales in 10 months
13
Finally
We’ve done this a few times…
https://blog.apigee.com/detail/black_friday_2014_customer_preparedness_checklist
15
Questions?
Brian Pagano David Padgett
Thank you

More Related Content

More from Apigee | Google Cloud

More from Apigee | Google Cloud (20)

How Secure Are Your APIs?
How Secure Are Your APIs?How Secure Are Your APIs?
How Secure Are Your APIs?
 
Magazine Luiza at a glance (1)
Magazine Luiza at a glance (1)Magazine Luiza at a glance (1)
Magazine Luiza at a glance (1)
 
Monetization: Unlock More Value from Your APIs
Monetization: Unlock More Value from Your APIs Monetization: Unlock More Value from Your APIs
Monetization: Unlock More Value from Your APIs
 
Apigee Demo: API Platform Overview
Apigee Demo: API Platform OverviewApigee Demo: API Platform Overview
Apigee Demo: API Platform Overview
 
Ticketmaster at a glance
Ticketmaster at a glanceTicketmaster at a glance
Ticketmaster at a glance
 
AccuWeather: Recasting API Experiences in a Developer-First World
AccuWeather: Recasting API Experiences in a Developer-First WorldAccuWeather: Recasting API Experiences in a Developer-First World
AccuWeather: Recasting API Experiences in a Developer-First World
 
Which Application Modernization Pattern Is Right For You?
Which Application Modernization Pattern Is Right For You?Which Application Modernization Pattern Is Right For You?
Which Application Modernization Pattern Is Right For You?
 
Apigee Product Roadmap Part 2
Apigee Product Roadmap Part 2Apigee Product Roadmap Part 2
Apigee Product Roadmap Part 2
 
The Four Transformative Forces of the API Management Market
The Four Transformative Forces of the API Management MarketThe Four Transformative Forces of the API Management Market
The Four Transformative Forces of the API Management Market
 
Walgreens at a glance
Walgreens at a glanceWalgreens at a glance
Walgreens at a glance
 
Apigee Edge: Intro to Microgateway
Apigee Edge: Intro to MicrogatewayApigee Edge: Intro to Microgateway
Apigee Edge: Intro to Microgateway
 
Managing the Complexity of Microservices Deployments
Managing the Complexity of Microservices DeploymentsManaging the Complexity of Microservices Deployments
Managing the Complexity of Microservices Deployments
 
Pitney Bowes at a glance
Pitney Bowes at a glancePitney Bowes at a glance
Pitney Bowes at a glance
 
Microservices Done Right: Key Ingredients for Microservices Success
Microservices Done Right: Key Ingredients for Microservices SuccessMicroservices Done Right: Key Ingredients for Microservices Success
Microservices Done Right: Key Ingredients for Microservices Success
 
Adapt or Die: Opening Keynote with Chet Kapoor
Adapt or Die: Opening Keynote with Chet KapoorAdapt or Die: Opening Keynote with Chet Kapoor
Adapt or Die: Opening Keynote with Chet Kapoor
 
Adapt or Die: Keynote with Greg Brail
Adapt or Die: Keynote with Greg BrailAdapt or Die: Keynote with Greg Brail
Adapt or Die: Keynote with Greg Brail
 
Adapt or Die: Keynote with Anant Jhingran
Adapt or Die: Keynote with Anant JhingranAdapt or Die: Keynote with Anant Jhingran
Adapt or Die: Keynote with Anant Jhingran
 
London Adapt or Die: Opening Keynot
London Adapt or Die: Opening KeynotLondon Adapt or Die: Opening Keynot
London Adapt or Die: Opening Keynot
 
London Adapt or Die: Lunch keynote
London Adapt or Die: Lunch keynoteLondon Adapt or Die: Lunch keynote
London Adapt or Die: Lunch keynote
 
London Adapt or Die: Closing Keynote — Adapt Now!
London Adapt or Die: Closing Keynote — Adapt Now!London Adapt or Die: Closing Keynote — Adapt Now!
London Adapt or Die: Closing Keynote — Adapt Now!
 

Recently uploaded

AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
Alluxio, Inc.
 
Mastering Windows 7 A Comprehensive Guide for Power Users .pdf
Mastering Windows 7 A Comprehensive Guide for Power Users .pdfMastering Windows 7 A Comprehensive Guide for Power Users .pdf
Mastering Windows 7 A Comprehensive Guide for Power Users .pdf
mbmh111980
 

Recently uploaded (20)

StrimziCon 2024 - Transition to Apache Kafka on Kubernetes with Strimzi
StrimziCon 2024 - Transition to Apache Kafka on Kubernetes with StrimziStrimziCon 2024 - Transition to Apache Kafka on Kubernetes with Strimzi
StrimziCon 2024 - Transition to Apache Kafka on Kubernetes with Strimzi
 
AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
 
CompTIA Security+ (Study Notes) for cs.pdf
CompTIA Security+ (Study Notes) for cs.pdfCompTIA Security+ (Study Notes) for cs.pdf
CompTIA Security+ (Study Notes) for cs.pdf
 
Top Mobile App Development Companies 2024
Top Mobile App Development Companies 2024Top Mobile App Development Companies 2024
Top Mobile App Development Companies 2024
 
Secure Software Ecosystem Teqnation 2024
Secure Software Ecosystem Teqnation 2024Secure Software Ecosystem Teqnation 2024
Secure Software Ecosystem Teqnation 2024
 
Implementing KPIs and Right Metrics for Agile Delivery Teams.pdf
Implementing KPIs and Right Metrics for Agile Delivery Teams.pdfImplementing KPIs and Right Metrics for Agile Delivery Teams.pdf
Implementing KPIs and Right Metrics for Agile Delivery Teams.pdf
 
iGaming Platform & Lottery Solutions by Skilrock
iGaming Platform & Lottery Solutions by SkilrockiGaming Platform & Lottery Solutions by Skilrock
iGaming Platform & Lottery Solutions by Skilrock
 
Studiovity film pre-production and screenwriting software
Studiovity film pre-production and screenwriting softwareStudiovity film pre-production and screenwriting software
Studiovity film pre-production and screenwriting software
 
5 Reasons Driving Warehouse Management Systems Demand
5 Reasons Driving Warehouse Management Systems Demand5 Reasons Driving Warehouse Management Systems Demand
5 Reasons Driving Warehouse Management Systems Demand
 
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...
 
INGKA DIGITAL: Linked Metadata by Design
INGKA DIGITAL: Linked Metadata by DesignINGKA DIGITAL: Linked Metadata by Design
INGKA DIGITAL: Linked Metadata by Design
 
Mastering Windows 7 A Comprehensive Guide for Power Users .pdf
Mastering Windows 7 A Comprehensive Guide for Power Users .pdfMastering Windows 7 A Comprehensive Guide for Power Users .pdf
Mastering Windows 7 A Comprehensive Guide for Power Users .pdf
 
10 Essential Software Testing Tools You Need to Know About.pdf
10 Essential Software Testing Tools You Need to Know About.pdf10 Essential Software Testing Tools You Need to Know About.pdf
10 Essential Software Testing Tools You Need to Know About.pdf
 
Workforce Efficiency with Employee Time Tracking Software.pdf
Workforce Efficiency with Employee Time Tracking Software.pdfWorkforce Efficiency with Employee Time Tracking Software.pdf
Workforce Efficiency with Employee Time Tracking Software.pdf
 
Advanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should KnowAdvanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should Know
 
IT Software Development Resume, Vaibhav jha 2024
IT Software Development Resume, Vaibhav jha 2024IT Software Development Resume, Vaibhav jha 2024
IT Software Development Resume, Vaibhav jha 2024
 
Tree in the Forest - Managing Details in BDD Scenarios (live2test 2024)
Tree in the Forest - Managing Details in BDD Scenarios (live2test 2024)Tree in the Forest - Managing Details in BDD Scenarios (live2test 2024)
Tree in the Forest - Managing Details in BDD Scenarios (live2test 2024)
 
A Guideline to Gorgias to to Re:amaze Data Migration
A Guideline to Gorgias to to Re:amaze Data MigrationA Guideline to Gorgias to to Re:amaze Data Migration
A Guideline to Gorgias to to Re:amaze Data Migration
 
Breaking the Code : A Guide to WhatsApp Business API.pdf
Breaking the Code : A Guide to WhatsApp Business API.pdfBreaking the Code : A Guide to WhatsApp Business API.pdf
Breaking the Code : A Guide to WhatsApp Business API.pdf
 
A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1
A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1
A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1
 

Preparing for Black Friday Part 1: Handling High Traffic Events

  • 1. Black Friday Preparation, Pt. 1: Handling High-Traffic Events Webcast Thursday, May 7, 2015
  • 2.
  • 4. Apigee Edge – Nov 27th to Dec 1st, 2014 • Experienced zero downtime • Supported 6 of the top 10 retailers • Handled a 263% annual increase in API calls • Managed over 8000 TPS peak loads for a single retailer • Tested for 5x more capacity than required • Proactively alerted customers of 50+ problems with their stack https://pages.apigee.com/Black-Friday.html 4
  • 6. Review & Prepare • Optimize Existing APIs • Add Caching • Leverage API BaaS • Security Checklist 6 Apigee Target Endpoint App Response Cache Apigee Assign Message Extract Variables KVM Java Callout Python Extract Variables Spike Arrest Apigee KVM Operations Extract Variables Spike Arrest Datastore Location queries Push Notification s Connection s/Social User Data API BaaS
  • 7. Estimate • Multiplier – Assume 10x Increase in Traffic • Base API Traffic Estimate on Prior 2-3 Years • Leverage Analytics & Insights • Ask Questions 7
  • 8. Test • Why? Understand behavior under load • What? – Performance (Stress, Load, Soak, Spike) – Operational (API Health) – Functional (Use Case) • Where? • When? • Who? • How? • And… 8
  • 10. Monitor • Analyze API traffic statistics • Pro-actively open a Support Ticket with Apigee • Review the Apigee Escalation Process http://apigee.com/about/sites/mktg- new/files/ApigeeSupportTicketandEscalationProcess.pdf 10 Statistics Collector Message Logging Statistics Collector Statistics Collector Message Logging Message Logging
  • 11. Test • Operational and Functional Testing • In PROD because that’s what the Customers sees • Continuously • By your DevOps/Operations Teams 11
  • 12. After
  • 13. What’s Next? • Cyber Monday • Day After Christmas • End-of-year Clearance • … • Pre-Black Friday sales in 10 months 13
  • 15. We’ve done this a few times… https://blog.apigee.com/detail/black_friday_2014_customer_preparedness_checklist 15

Editor's Notes

  1. Review, Optimize Existing APIs Design Scale, Redundancy, Reduced Latency with multi-region presence Auto-scaling in the Apigee Public Cloud Remove inefficiencies Provide only what is needed right now - response pagination JSON rather than XML Fully leverage HTTP – e.g.: If-Modified-Since, compression Improve/optimize the target servers, add capacity Leverage out-of-the-box policies when possible Re-evaluate the use of scripts, Java callouts Relocate complex/custom logic to node.js Add Caching Response caching Object caching Take advantage of L1 and L2 caching Cache both static and dynamic content Leverage API BaaS Consider storing store, product, and inventory information in API BaaS Take advantages of mobile features – location and push notifications – to optimize API use Security Checklist Confirm that all recent security vulnerabilities have been adequately addressed Turn on SSL Use OAuth
  2. Multiplier - Assume 10x Increase in Traffic Use multiplier & trailing 4 weeks average traffic as a baseline Estimate both average as well as peak traffic Consider industry trends Base API Traffic Estimate on Prior 2-3 Years Holiday promotions Other end-of-year programs Leverage Analytics & Insights Edge Analytics for prior years Edge Analytics for current season Insights for journey and predictive analytics combine API data with other data to better understand trends Ask questions – analyze potential issues How does load affect SLA How does load affect latency How do spikes affect errors How many new apps have been introduced Are there apps that are inefficient
  3. Why? - API testing – like system testing – is a first class concern - Load/Performance testing is used to understand system behavior in real-world situations - Identify weaknesses in all layers What? Operational – test the test - health checks - SLA checks - availability Functional - use case testing - test based on how apps use APIs Performance– Stress, Load, Soak, Spike Stress: determine the breaking point induce errors and determine how system degrades know what system failure looks like Load: determine effect of tolerable load 75-85% of stress test TPS Affect on API latency Affect on SLA Soak: identify instability that occurs after extended use 75-80% of load test TPS resource leaks gradual performance degradation at millions of transactions (e.g.: inefficiencies in business function/algorithm, database design) Spike: vary between 75-125% of load test TPS Observe behavior when traffic is not constant Where? - PROD is what matters - test the PROD systems –performance, functional, operational - and, test in both PROD and NON-PROD environments When? - operational/health check testing should be continuous - know when PROD APIs are not working – SLA, errors - functional tests should be continuous - often failure of a single API negatively affects other APIs - performance testing should be conducted - at expected peak times (holiday season) - whenever significant design/architectural changes have been made Who? - Operations - DevOps – API developers - Business teams How? - Tools – jmeter, Apache Bench, LoadUI/SoapUI, Nagios, etc. And… - test scripts are code - use software engineering best practices - manage them with version control
  4. Operational and Functional Testing health checks SLA checks - availability In PROD because that’s what the Customers sees - PROD is what matters Continuously operational/health check testing should be continuous - know when PROD APIs are not working – SLA, errors functional tests should be continuous - often failure of a single API negatively affects other APIs By your DevOps/Operations Teams