SlideShare a Scribd company logo
1 of 17
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

+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 

Recently uploaded (20)

Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 

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