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. Ernestanota July 17, 2024 at 3:57 am

    Kobe Bryant https://los-angeles-lakers.kobebryant-br.net one of the greatest basketball players of all the times, left an indelible mark on the history of sport.

  2. DarrellCaumb July 17, 2024 at 4:01 am

    Bieber’s https://baby.justinbieber-br.com path to global fame began with his breakthrough success Baby, which became his signature song and one of the most popular music videos of all time.

  3. GilbertNed July 17, 2024 at 4:05 am

    Achraf Hakimi https://paris-saint-germain.ashrafhakimi.net is a young Moroccan footballer who quickly reached the football elite European in recent years.

  4. MichaelDuP July 17, 2024 at 4:07 am

    Ayrton Senna https://mclaren.ayrtonsenna-br.com is one of the greatest drivers in the history of Formula 1.

  5. Lutherflalp July 17, 2024 at 11:21 am

    Anderson Silva https://killer-bees-muay-thai-college.andersonsilva.net was born in 1975 in Curitiba Brazil. From a young age he showed an interest in martial arts, starting to train in karate at the age of 5.

  6. Herbertorimi July 17, 2024 at 11:31 am

    Bruno Miguel Borges Fernandes https://manchester-united.brunofernandes-br.com was born on September 8, 1994 in Maia, Portugal.

  7. DwainTorie July 17, 2024 at 11:32 am

    Rodrygo Silva de Goes https://real-madrid.rodrygo-br.com, known simply as Rodrygo, emerged as one of the the brightest young talents in world football.

  8. Nedvizhimostsycle July 17, 2024 at 1:06 pm

    Всем привет! Подскажите, где почитатьразные блоги о недвижимости? Сейчас читаю https://sm70.ru

  9. Hgjlge July 17, 2024 at 1:39 pm

    brand atenolol 100mg – order betapace pills carvedilol canada

  10. Travisdam July 17, 2024 at 4:29 pm

    Earvin “Magic” Johnson https://los-angeles-lakers.magicjohnson.biz is one of the most legendary basketball players in history. NBA history.

  11. HowardErron July 17, 2024 at 4:38 pm

    Vinicius Junior https://real-madrid.vinicius-junior-ar.com the Brazilian prodigy whose full name is Vinicius Jose Baixao de Oliveira Junior, has managed to win the hearts of millions of fans around the world in a short period of time.

  12. Lesliekeymn July 17, 2024 at 4:42 pm

    Toni Kroos https://real-madrid.tonikroos-ar.com the German midfielder known for his accurate passes and calmness on the field, has achieved remarkable success at one of the most prestigious football clubs in the world.

  13. Vid-stroy_bxEt July 18, 2024 at 9:04 am

    интернет магазин стройматериалов [url=https://internet-magazin-strojmaterialov.ru/]интернет магазин стройматериалов[/url] .

  14. PabloProon July 18, 2024 at 12:58 pm

    Pedro Gonzalez Lopez https://barcelona.pedri-ar.com known as Pedri, was born on November 25, 2002 in the small town of Tegeste, located on Tenerife, one of the Canary Islands.

  15. Georgetem July 18, 2024 at 1:11 pm

    Yacine Bounou https://al-hilal.yassine-bounou-ar.com known simply as Bono, is one of the most prominent Moroccan footballers of our time.

  16. RobertEmito July 18, 2024 at 1:12 pm

    Andreson Souza Conceicao https://al-nassr.talisca-ar.com known as Talisca, is one of the brightest stars of modern football.

  17. nagad88 login July 18, 2024 at 4:08 pm

    I?¦ll right away clutch your rss as I can’t find your e-mail subscription link or e-newsletter service. Do you’ve any? Kindly permit me recognise in order that I may just subscribe. Thanks.

  18. JamesPut July 18, 2024 at 8:42 pm

    Harry Kane https://bayern.harry-kane-ar.com one of the most prominent English footballers of his generation, completed his move to German football club Bayern Munich in 2023.

  19. RonaldDruth July 18, 2024 at 8:45 pm

    Brazilian footballer Neymar https://al-hilal.neymar-ar.com known for his unique playing style and outstanding achievements in world football, has made a surprise move to Al Hilal Football Club.

  20. FrancisDuaro July 18, 2024 at 8:50 pm

    Erling Haaland https://manchester-city.erling-haaland-ar.com born on July 21, 2000 in Leeds, England, began his football journey at an early age.

  21. Stephenhok July 18, 2024 at 8:58 pm

    Luka Modric https://real-madrid.lukamodric-ar.com can certainly be called one of the outstanding midfielders in modern football.

  22. RichardWet July 18, 2024 at 9:15 pm

    Football in Saudi Arabia https://al-hilal.ali-al-bulaihi-ar.com has long been one of the main sports, attracting millions of fans. In recent years, one of the brightest stars in Saudi football has been Ali Al-Bulaihi, defender of Al-Hilal Football Club.

  23. Scottappot July 19, 2024 at 12:36 am

    visit my website https://currencyconvert.net

  24. SamuelSic July 19, 2024 at 12:43 am

    Сайт https://ps-likers.ru предлагает уроки по фотошоп для начинающих. На страницах сайта можно найти пошаговые руководства по анимации, созданию графики для сайтов, дизайну, работе с текстом и фотографиями, а также различные эффекты.

  25. JeffreyGes July 19, 2024 at 12:58 am

    RDBox.de https://rdbox.de bietet schallgedammte Gehause fur 3D-Drucker, die eine sehr leise Druckumgebung schaffen – nicht lauter als ein Kuhlschrank. Unsere Losungen sorgen fur stabile Drucktemperatur, Vibrationsisolierung, Luftreinigung und mobile App-Steuerung.

  26. Williamunind July 19, 2024 at 1:13 am

    N’Golo Kante https://al-ittihad.ngolokante-ar.com the French midfielder whose career has embodied perseverance, hard work and skill, has continued his path to success at Al-Ittihad Football Club, based in Saudi Arabia.

  27. Charlesgaill July 19, 2024 at 2:43 am

    Kobe Bryant https://los-angeles-lakers.kobebryant-ar.com also known as the “Black Mamba”, is one of the most iconic and iconic figures in NBA history.

  28. Pxxqws July 19, 2024 at 5:10 am

    buy gasex cheap – buy gasex cheap cheap diabecon pills

  29. krikya July 19, 2024 at 10:08 am

    I’m still learning from you, as I’m trying to reach my goals. I definitely love reading everything that is posted on your site.Keep the tips coming. I enjoyed it!

  30. Charlesbon July 19, 2024 at 10:55 am

    Karim Benzema https://al-ittihad.karimbenzema.ae is a name worthy of admiration and respect in the world of football.

  31. RogerSam July 19, 2024 at 11:01 am

    Cristiano Ronaldo https://al-nassr.cristiano-ronaldo.ae is one of the greatest names in football history, with his achievements inspiring millions of fans around the world.

  32. WalterTub July 19, 2024 at 11:05 am

    In 2018, the basketball world witnessed one of the most remarkable transformations in NBA history. LeBron James https://los-angeles-lakers.lebronjames-ar.com one of the greatest players of our time, decided to leave his hometown Cleveland Cavaliers and join the Los Angeles Lakers.

  33. Mxuuwd July 19, 2024 at 1:30 pm

    oral atorvastatin – zestril pill order nebivolol 5mg sale

  34. Videosteni v Moskve_vbEl July 19, 2024 at 2:36 pm

    видеостена купить [url=http://www.videosteny-pod-kljuch.ru]видеостена купить[/url] .

  35. Georgemet July 19, 2024 at 2:57 pm

    Muhammad Al Owais https://al-hilal.mohammed-alowais-ar.com is one of the most prominent names in modern Saudi football. His path to success in Al Hilal team became an example for many young athletes.

  36. Robertwak July 19, 2024 at 6:45 pm

    Maria Sharapova https://tennis.maria-sharapova-ar.com was born on April 19, 1987 in Nyagan, Russia. When Masha was 7 years old, her family moved to Florida, where she started playing tennis.

  37. Phillipshisy July 19, 2024 at 7:07 pm

    Angel Di Maria https://benfica.angel-di-maria-ar.com is a name that will forever remain in the memories of Benfica fans.

  38. Shaunideva July 20, 2024 at 12:57 am

    Upcoming fantasy MOBA https://bladesofthevoid.com evolved by Web3. Gacha perks, AI and crafting in one swirling solution!

  39. Kevinved July 20, 2024 at 1:13 am

    Продажа новых автомобилей Hongqi
    https://hongqi-krasnoyarsk.ru/buyers/credit-form в Красноярске у официального дилера Хончи. Весь модельный ряд, все комплектации, выгодные цены, кредит, лизинг, трейд-ин

  40. DavidCoiff July 20, 2024 at 1:37 am

    Kylie Jenner https://kylie-cosmetics.kylie-jenner-ar.com is an American model, media personality, and businesswoman, born on August 10, 1997 in Los Angeles, California.

  41. MichaelSpots July 20, 2024 at 2:36 am

    Find the best AI for SEX nudify. Explore the limitless possibilities of deepnude AI, nude AI, porn AI, and witness the staggering potential of Deepnude AI Tools today

  42. Richardpaymn July 20, 2024 at 1:47 pm

    Bella Hadid https://img-models.bella-hadid-ar.com is an American model who has emerged in recent years as one of the most influential figures in the world of fashion.

  43. Tyroneannop July 20, 2024 at 6:20 pm

    Monica Bellucci https://dracula.monica-bellucci-ar.com one of the most famous Italian actresses of our time, has a distinguished artistic career spanning many decades. Her talent, charisma, and stunning beauty made her an icon of world cinema.

  44. AndrewNix July 21, 2024 at 12:40 am

    Jackie Chan https://karate-kid.jackiechan-ar.com was born in 1954 in Hong Kong under the name Chan Kong San.

  45. magazin akkayntov_ovOi July 21, 2024 at 3:21 am

    магазин аккаунтов социальных сетей [url=http://magazin-akkauntov.ru/]http://magazin-akkauntov.ru/[/url] .

  46. Eloisenuaws July 21, 2024 at 10:21 pm

    I’ve been using CBD gummies after or a year today, and I can’t believe how much they’ve improved my preoccupation like [url=https://www.cornbreadhemp.com/collections/cbd-cream ]buy cbd cream[/url] ! The flavors are still savoury, making it a amusing part of my daily routine. My anxiety and distress levels partake of significantly decreased, and my beauty sleep blue blood has improved tremendously. I wake up sensibility more refreshed and energetic. Even so, I’ve noticed a tittle of drowsiness during the lifetime, and I care the effects lasted a whit longer. In spite of these unimportant issues, I approvingly push these CBD gummies representing anyone looking to enrich their well-being clearly!

  47. Dvrrpo July 22, 2024 at 2:38 am

    where to buy lasuna without a prescription – how to buy diarex cheap himcolin without prescription

  48. Jamesesows July 22, 2024 at 6:52 am

    Travis Scott https://astroworld.travis-scott-ar.com is one of the brightest stars in the modern hip-hop industry.

  49. DonaldTow July 22, 2024 at 6:56 am

    Zinedine Zidane https://real-madrid.zinedine-zidane-ar.com the legendary French footballer, entered the annals of football history as a player and coach.

  50. WilliamVeM July 22, 2024 at 7:04 am

    The history of one of France’s https://france.paris-saint-germain-ar.com most famous football clubs, Paris Saint-Germain, began in 1970, when capitalist businessmen Henri Delaunay and Jean-Auguste Delbave founded the club in the Paris Saint-Germain-en-Laye area.

Comments are closed.

your ideal recruitment agency

view related content