table of contents

We live in tumultuous, but interesting times. The rich have gotten richer, the poor—poorer and innovators have devised innovative ways to work through the disruption that has been brought about by the coronavirus-induced pandemic. The pandemic has also brought about a battery of changes to our lifestyle, beginning with many of us learning how to cook complex dishes from scratch, others finding newer hobbies, or even spending time to learn something new about ourselves. During the pandemic, many of us have also finally found the time to curl up on our couches, turn into couch potatoes and binge-watch Netflix originals till we run out of bandwidth. 

Sudden surges

Although most services such as Netflix, Amazon Prime video and many other video and audio streaming service providers have highly scalable systems that can withstand sudden surges and spikes in usage, there are chances that these services might experience outages which can result in user frustration and in some extreme cases of long-term outages—abandonment of the platform too. Complex, large-scale distributed systems such as Netflix and Amazon Prime video and many others that potentially have millions of users must be tested effectively and extensively keeping in mind surges and spikes. 

However, unusually heavy spikes such as those caused by the pandemic have been unprecedented and have possibly not been in any company’s testing team kitty.

Netflix team

Continuous integration delivery and production

The problems of CI/CD and resolving the problems of constantly engaged systems

Companies like Netflix have constant updates to their system, which are continuously tested and delivered to their live platforms. For this, Netflix testing teams create hundreds of thousands of tester accounts every day, each being used in thousands of test scenarios to avoid any shortfalls.

This has caused the testing of Netflix to move from a manual testing regimen that would work on a test system before making it live to a large, distributed automated testing of Netflix client and server applications running at scale in production. To facilitate this, testing at Netflix has gone from a low-volume manual mode to a continuous, fully automated, voluminous mode where nothing is left to chance.

An imaginary scenario with real implications

Imagine this—you, and millions of others are at nail-biting, suspenseful climax in the story and suddenly—boom! Netflix is now offline. This would send alarm bells ringing at Netflix HQ and testing SWAT teams would suddenly fly in from your windows to analyse what went wrong. However, thankfully, this does not happen often.

The Goal

The goal at Netflix is simple—to be online for their users 99.99% of the time. Although Netflix has a pretty decent track record of staying online, they do occasionally encounter glitches that put the system off track. One of these incidents occurred when a development team at Netflix deployed software that impacted the large infrastructure at Netflix negatively, causing widespread disruption in services and thousands of unhappy customers.

This led to Netflix scrambling to create a fix that would essentially resolve the issue in few hours, but also gave Netflix some food for thought—that their testing regimen was inadequate and ineffective for such a large, distributed, user-facing system.

What could go wrong?

What happened at Netflix was an oversight on various levels. A new piece of code that was designed to clean up unused resources was actually being tested on the production server. This oversight caused two major problems due to bugs in the code:

  1. The first bug caused a dry run mode flag in cleanup that was to protect the actual cleanup to be interpreted incorrectly—reversing its effect. This was caused to a poorly written unit test that could have caused this issue to be caught in development.
  2. The second bug was in a piece of code that checked if a resource was actually unused. The conclusion of this check overlooked some cases that existed only in production.

The combination of these two bugs caused a removal of key resources in production—resulting in the actual outage at Netflix.

Preventing these problems

Preventing or reducing the incidents of these problems leads to a common dilemma

Should testing be done in a test environment or in a production environment? Although most of us would advocate testing to be done in pre-production so that actual customers are not impacted, some would advocate testing in production to ensure that code is running well in both test and prod. The reality of the scenario is that the code should be tested in all three situations: dev, test and prod. The challenge faced by Netflix was to devise an effective methodology that helps in deciding why, when and how to test in these environments.

This also led to another set of questions

  • Is the test environment a safe and complete mirror of our production environment?

OR

  • Is the test environment the latest build with features that others might need to integrate with?

The result of this was the common scenario of having overtly complex and numerous test environments. 

The answer

The answer to this problem that was creating from thinking of a fix to the existing problem was simple—end-to-end automation that would replicate thousands of scenarios without problems. 

This answer, however, came with its own set of problems—finding a scalable solution to creating a production-like pre-production environment that does not require cloning production entirely and resulting in a massive investment requirement as well.

Another problem was that pre-production and production usage patterns could be completely different from each other. Traffic is also thousands of times less when compared to production. 

Testing payments

Testing payments was another colossus altogether. Instead of testing payments in production using real money, it is better to create fake MOPs and fake transactions exercised on them in sandbox accounts that does not overburden the existing payment systems in place. 

Netflix testing payment

The approach

Of the thousands of possible approaches, Netflix chose production capture and replay to scale their test to be as close as possible to prod.

A large number of requests from customer devices was taken from persistence and duplex-replayed them in test after they were stripped of their personally identified information. This caused tests to become real-world scenarios. This also helped in identifying numerous corner-case bugs that were previously unknown.

The bugs identified were routed back into functional and integrated tests via a schema. This also helped in gaining confidence on quality feature migration and helped to accelerate change velocity. This also gave way to an interesting learning:

All the basic duplex tests could be run in PRODUCTION through tester accounts. However, prod capture and replay duplex tests were limited to the test environment because replaying in production would harm actual customer data with reissue of requests.

Netflix owner

Hastings says. “And instead tragically it is a biological one, so everybody is locked up and we had the greatest growth in the first half of this year that we ever had.” With a market capitalization of around US$230 billion, it has been vying with Walt Disney since March for the title of the world’s most valuable entertainment group.

Masked and refreshed data could safely be used to replay requests in the test environment after a time delay. This focused our interest on the data set and not the production environment. Although this was not totally as stable as production, but gave us a good idea of how it could be.

Failing is important in testing. Failures help test teams to identify real issues in downstream implementations. To mitigate this, all functional validations were to run real canaries in production, essentially exposing a small percentage of actual customer traffic to both versions of the API under test.

Running canary analysis algos on the metrics that were gathered from these implementations and a compare-verify regimen would check if client and server metrics were equivalent. This would help to capture failing request logs from the canaries and would help to debug and triage issues better. 

Learnings

Learnings from such an approach are manifold. 

  • The first one would be to understand that test and prod are different, but their differences must be embraced to utilize the capability of both.
  • Although testing is good in a sandboxed environment, testing in production is important for such implementations.
  • Solving the problems in either environment can go a long way in ensuring test success
  • Stay on the lookout for rethinking your testing strategy. Even if it may come at an extra cost, the end result would be worth it.
  • Find a pragmatic testing shape that is right for your company—do not look for a textbook shape that fits in.
  • Start production simulation and chaos experiments—these will help to validate your functional and resiliency testing capabilities for the future.

At Netflix, chaos testing is done at scale in production. Testing everything from fire raining from the sky to aliens killing their servers, they leave nothing to chance. If they haven’t, why should you? The testing teams at Volumetree are experienced, reliant and know where to hand out the red flags. Give your software the quality edge it needs. Schedule a consultation with our test consultants today!

build your mobile app

 

post tags :

4,228 Comments

  1. CalvinOrexy July 22, 2024 at 7:08 am

    Juventus Football Club https://italy.juventus-ar.com is one of the most successful and decorated clubs in the history of Italian and world football.

  2. Donalddiugs July 22, 2024 at 7:09 am

    Chelsea https://england.chelsea-ar.com is one of the most successful English football clubs of our time.

  3. Puravive July 22, 2024 at 11:02 am

    Great post. I was checking continuously this blog and I am impressed! Very useful information specially the last part :) I care for such information a lot. I was seeking this particular information for a very long time. Thank you and best of luck.

  4. Raymondjah July 22, 2024 at 2:45 pm

    Автомобили Hongqi https://hongqi-krasnoyarsk.ru в наличии – официальный дилер Hongqi Красноярск

  5. Matthewmup July 22, 2024 at 2:54 pm

    Liverpool https://england.liverpool-ar.com holds a special place in the history of football in England.

  6. Robertbeaxy July 22, 2024 at 5:26 pm

    Jennifer Lopez https://lets-get-loud.jenniferlopez-ar.com was born in 1969 in the Bronx, New York, to parents who were Puerto Rican immigrants.

  7. lychshee porevo_ppkt July 22, 2024 at 7:08 pm

    лучшее порево [url=https://besplatny-sex-online.ru]лучшее порево[/url] .

  8. Chrisartix July 22, 2024 at 8:47 pm

    After some difficult years in the late 2010s, Manchester United https://england.manchester-united-ar.com returned to greatness in English football by 2024.

  9. Edwinelony July 22, 2024 at 8:50 pm

    The Formula One World Championship https://world-circuit-racing-championship.formula-1-ar.com, known as the Formula Championship in motor racing, is the highest tier of professional motor racing.

  10. BryanPaift July 22, 2024 at 8:56 pm

    Michael Jordan https://chicago-bulls.michael-jordan-ar.com is one of the greatest basketball players of all time, whose career with the Chicago Bulls is legendary.

  11. Williamthave July 23, 2024 at 1:36 am

    rental car in Montenegro rental cars Montenegro

  12. JeffreyTruro July 23, 2024 at 2:09 am

    Manny Pacquiao https://filipino-boxer.manny-pacquiao-ar.com is one of the most prominent boxers in the history of the sport.

  13. Ferforje July 23, 2024 at 3:30 am

    This post gives clear idea in favor of the new visitors of blogging, thhat really
    howw to do blogging.

    my blog post: Ferforje

  14. Fltvyw July 23, 2024 at 6:24 am

    purchase noroxin generic – norfloxacin buy online how to get confido without a prescription

  15. medication July 23, 2024 at 6:45 am

    [url=https://aaccutane.com/]generic accutane price[/url]

  16. Kıbrıs seo hizmeti July 23, 2024 at 6:48 am

    It’s going to be end of mine day, but befofe finish I am
    reading this great aryicle to increase my experience.

    Herre iis my blog pkst – Kıbrıs seo hizmeti

  17. pill July 23, 2024 at 9:47 am

    [url=https://tadalafilu.com/]tadalafil price south africa[/url]

  18. GeorgeRah July 23, 2024 at 12:30 pm

    The golf https://arabic.golfclub-ar.com industry in the Arab world is growing rapidly, attracting players from all over the world.

  19. Donaldkaf July 23, 2024 at 1:00 pm

    The road to the Premier League https://english-championship.premier-league-ar.com begins long before a team gets promoted to the English Premier League for the first time

  20. DavidCah July 23, 2024 at 1:02 pm

    The Italian football championship https://italian-championship.serie-a-ar.com known as Serie A, has seen an impressive revival in recent years.

  21. klassnoe porevo_nrer July 23, 2024 at 3:49 pm

    классное порево [url=klassny-sex.ru]классное порево[/url] .

  22. Kennethquivy July 23, 2024 at 4:41 pm

    https://euroavia24.com – Cheap flights, hotels and transfers around the world!

  23. MartinVaf July 23, 2024 at 4:47 pm

    In an era when many young footballers struggle to find their place at elite clubs, Javi’s https://barcelona.gavi-ar.com story at Barcelona stands out as an exceptional one.

  24. Oscarspons July 23, 2024 at 4:55 pm

    Arsenal https://arsenal.mesut-ozil-ar.com made a high-profile signing in 2013, signing star midfielder Mesut Ozil from Real Madrid.

  25. DavidNar July 23, 2024 at 8:35 pm

    Thibaut Courtois https://real-madrid.thibaut-courtois-ar.com was born on May 11, 1992 in Belgium.

  26. Kennethcep July 23, 2024 at 9:42 pm

    Full list of CS:GO/CS2 https://wiki.vpesports.com skins, detail descriptions

  27. FrankBap July 24, 2024 at 1:45 am

    Luis Suarez https://inter-miami.luis-suarez-ar.com the famous Uruguayan footballer, ended his brilliant career in European clubs and decided to try his hand at a new challenge – Major League Soccer.

  28. BrianErums July 24, 2024 at 2:10 am

    Al-Nasr https://saudi.al-nassr-ar.com is one of the most famous football teams in the Kingdom of Saudi Arabia.

  29. MichaelCex July 24, 2024 at 2:21 am

    Al-Ittihad https://saudi.al-ittihad-ar.com is one of the most famous football clubs in Saudi Arabia. Founded in 1927, the Saudi football giant has come a long way to the pinnacle of success.

  30. KeithJoutt July 24, 2024 at 4:04 am

    FC Barcelona https://spain.fc-barcelona-ar.com is undoubtedly one of the most famous and well-known football clubs in the world.

  31. Vid-stroy_kiEt July 24, 2024 at 4:37 am

    Vid-Stroy [url=https://internet-magazin-strojmaterialov.ru/]internet-magazin-strojmaterialov.ru[/url] .

  32. CarrollFen July 24, 2024 at 1:14 pm
  33. Marionmab July 24, 2024 at 1:22 pm

    rent a boat Tivat Budva boat tour

  34. tablet July 24, 2024 at 5:08 pm

    [url=http://tretinoineff.online/]retin a cream for sale online[/url]

  35. CharlesCew July 24, 2024 at 5:49 pm

    Ремонт плоской кровли https://remontiruem-krovly.ru в Москве, цена работы за 1 м?. Прайс лист на работы под ключ, отзывы и фото.

  36. Michaelciz July 24, 2024 at 6:01 pm

    AC Milan https://italy.milan-ar.com is one of the most successful and decorated football clubs in the world.

  37. GeorgeFaine July 24, 2024 at 10:00 pm

    In the world of football, Atletico Madrid https://spain.atletico-madrid-ar.com has long been considered the second most important club in Spain after the dominant, Real Madrid.

  38. Davidbom July 24, 2024 at 10:04 pm

    The future football star Shabab Al-Ahly https://dubai.shabab-al-ahli-ar.com was born in Dubai in 2000. From a young age, he showed exceptional football abilities and joined the youth academy of one of the UAE’s leading clubs, Shabab Al-Ahly.

  39. RaymondDut July 25, 2024 at 12:29 am

    Sur notre site web, vous pouvez decouvrir toutes les actualites concernant les medias en Afrique. Nous couvrons une variete de sujets, allant des dernieres nouvelles dans les industries de la television, de la radio et de la presse ecrite, aux evolutions dans les medias numeriques et les reseaux sociaux https://africanmedia.africa/le-groupe-vocal-feminin-canal-femmes-georges.html. Notre equipe de journalistes experimentes et de correspondants locaux travaille sans relache pour vous apporter des informations precises et a jour.

    Nous accordons une attention particuliere aux avancees et aux tendances qui changent le paysage mediatique africain. Que ce soit le developpement des plateformes de streaming, l’influence croissante des blogs et des podcasts, ou les consequences des politiques gouvernementales sur la liberte de la presse, vous trouverez des analyses approfondies et des reportages exclusifs sur notre site. Nous mettons egalement en lumiere les initiatives locales et les talents emergents qui participent a faconner l’avenir des medias sur le continent.

    En plus des actualites, notre site presente des interviews avec des personnalites influentes du secteur des medias et des experts, ainsi que des articles d’opinion ecrits par des specialistes. Nous appelons nos lecteurs a prendre part activement en publiant des commentaires et en partageant leurs points de vue. Rendez-nous visite des aujourd’hui pour etre informe et implique avec les evolutions passionnantes du monde des medias en Afrique.

  40. sale July 25, 2024 at 1:27 am

    [url=https://finasterideff.com/]how to get propecia australia[/url]

  41. TimothySig July 25, 2024 at 1:37 am

    купить новую квартиру в новостройке https://kvartira-new43.ru

  42. Terrylob July 25, 2024 at 1:39 am

    купить 1 квартиру застройщика купить квартиру в новостройке цены

  43. Jacobtig July 25, 2024 at 1:41 am

    Discover your perfect stay with WorldHotels-in.com, your ultimate destination for finding the best hotels worldwide! Our user-friendly platform offers a vast selection of accommodations to suit every traveler’s needs and budget. Whether you’re planning a luxurious getaway or a budget-friendly adventure, we’ve got you covered with our extensive database of hotels across the globe. Our intuitive search features allow you to filter results based on location, amenities, price range, and guest ratings, ensuring you find the ideal match for your trip. We pride ourselves on providing up-to-date information and competitive prices, often beating other booking sites. Our detailed hotel descriptions, high-quality photos, and authentic guest reviews give you a comprehensive view of each property before you book. Plus, our secure booking system and excellent customer support team ensure a smooth and worry-free experience from start to finish. Don’t waste time jumping between multiple websites – http://www.WorldHotels-in.com brings the world’s best hotels to your fingertips in one convenient place. Start planning your next unforgettable journey today and experience the difference with WorldHotels-in.com!

  44. visit site July 25, 2024 at 7:44 am

    Great wordpress blog here.. It’s hard to find quality writing like yours these days. I really appreciate people like you! take care

  45. Oborydovanie konferenc-zalov_zami July 25, 2024 at 11:22 am

    конференц залы оборудование [url=http://oborudovanie-dlja-konferenc-zalov.ru]конференц залы оборудование[/url] .

  46. reiting kapperov_zpmi July 25, 2024 at 12:58 pm

    лучшие капперы в телеграмме [url=www.rejting-kapperov12.ru/]лучшие капперы в телеграмме[/url] .

  47. WilliamCer July 25, 2024 at 1:07 pm

    квартиру новостройку жк купить недорогие квартиры от застройщика

  48. ThomasFax July 25, 2024 at 1:08 pm

    купить квартиру недорого недорогие квартиры от застройщика

  49. Matthewscoro July 25, 2024 at 1:18 pm

    купить однокомнатную квартиру в новостройке https://novyekvartiry2.ru

  50. AllenKnoli July 25, 2024 at 4:46 pm

    купить 1 квартиру в новостройке https://zastroyshikekb54.ru

Comments are closed.

your ideal recruitment agency

view related content