How Third-Party Services Nearly Grounded Jet.com
How third-party service downtime can have an enormous effect on your page response times.
Join the DZone community and get the full member experience.Join For Free
earlier this month, google compute engine, google’s infrastructure-as-a-service offering and amazon web services alternative, went down across all regions for 18 minutes. the outage was reportedly caused by two bugs in google’s network management software , bugs triggered by a configuration error after google engineers made changes to gce’s network configuration in an effort to speed it up.
the outage was barely noticed outside of a handful of tech news sites and blogs, but its impact had ripple effects throughout the digital business world. below is my analysis on the impact of this outage on the e-commerce site www.jet.com .
there were eight test runs initiated between 19:11 pt to 19:26 pt, all of which reported at least a 333% or a 4.3x increase in their web response times vs. the median web response time. this also correlated to a 500% or a 6x increase in the document complete times vs. the median document complete time.
there were eight test runs initiated between 19:11 pt to 19:26 pt, all of which reported at least a 350% or a 4.5x increase in their web response times vs. the median web response time. this also correlated to a 511% or a 6.1x increase in the document complete times vs. the median document complete time.
further analysis shows no anomalies in the response time (time to download the home page), nor the render start (time taken to paint the first byte on the browser), but huge variations in the document complete (time taken by the browser to complete the downloading and parsing of all resources in the page) and the eventual web response time (completion of downloading and rendering of all resources on a web page).
this finding drove our troubleshooting to look at the third-party services used by jet.com.
analyzing the waterfall charts for these troubled tests displays a pattern of two specific third-party hosts failing, impacting the document complete time and the overall web response time.
the culprits, api.lytics.io and c.lytics.io belong to lytics, an online ad-targeting company.
like many online services, lytics outsources its it infrastructure to an iaas provider. you guessed it: google cloud platform ( https://www.getlytics.com/pdf/lyticstechoverview.pdf ).
this sort of scenario is all too common to web performance engineers. the same third-party services that can help you to target ads, personalize content, and understand customer behavior on your site are also a major performance vulnerability. in this case, the culprit was the infrastructure service supporting the third-party service. this is a good illustration of the complex interdependencies that power online commerce and content today.
what can you do to manage this complexity and prevent your end user experience from being damaged by it? for starters, make sure all third party/marketing resources like this load after the document complete. and be sure to continuously monitor all third-party services that your web application calls to make sure they are not slowing down, or taking down, your site.
Published at DZone with permission of Anand Guruprasad, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.