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. Matthewaxoda July 5, 2024 at 6:09 am

    Смотрите онлайн сериал Отчаянные домохозяйки https://domohozyayki-serial.ru в хорошем качестве HD 720 бесплатно, рейтинг сериала: 8.058, режиссер сериала: Дэвид Гроссман, Ларри Шоу, Дэвид Уоррен.

  2. JeffreyDuG July 5, 2024 at 6:25 am

    Buy TikTok followers https://tiktok-followers-buy.com to get popular and viral with your content. All packages are real and cheap — instant delivery within minutes. HQ followers for your TikTok. 100% real users. The lowest price for TikTok followers on the market

  3. MilesInaph July 5, 2024 at 7:35 am

    Pin Up https://pin-up.fotoevolution.ru казино, которое радует гемблеров в России на протяжении нескольких лет. Узнайте, что оно подготовило посетителям. Описание, бонусы, отзывы о легендарном проекте. Регистрация и вход.

  4. GeorgeGek July 5, 2024 at 8:36 am

    Pin Up Casino https://pin-up.ergojournal.ru приглашает игроков зарегистрироваться на официальном сайте и начать играть на деньги в лучшие игровые автоматы, а на зеркалах онлайн казино Пин Ап можно найти аналогичную витрину слотов

  5. Terryapene July 5, 2024 at 8:42 am

    Pin-up casino https://pin-up.jes-design.ru популярное онлайн-казино и ставки на спорт. Официальный сайт казино для доступа к играм и другим функциям казино для игры на деньги.

  6. RobertSof July 5, 2024 at 2:35 pm

    Официальный сайт Pin Up казино https://pin-up.nasledie-smolensk.ru предлагает широкий выбор игр и щедрые бонусы для игроков. Уникальные бонусные предложения, онлайн регистрация.

  7. WilliamLog July 5, 2024 at 2:38 pm

    Pinup казино https://pin-up.vcabinet.kz это не просто сайт, а целый мир азартных развлечений, где каждый может найти что-то свое. От традиционных игровых автоматов до прогнозов на самые популярные спортивные события.

  8. Michaelproks July 5, 2024 at 2:45 pm

    Latest Diablo news https://diablo.com.az game descriptions and guides. Diablo.az is the largest Diablo portal in the Azerbaijani language.

  9. Williecoale July 5, 2024 at 6:39 pm

    Azerbaijan NFL https://nfl.com.az News, analysis and topics about the latest experience, victories and records. A portal where the most beautiful NFL games in the world are generally studied.

  10. RobertSof July 5, 2024 at 6:41 pm

    Discover exciting virtual football in Fortnite https://fortnite.com.az. Your central hub for the latest news, expert strategies and interesting e-sports reports. Collecting points with us!

  11. Jameschign July 5, 2024 at 6:42 pm

    The latest analysis, tournament reviews and the most interesting features of the Spider-Man game https://spider-man.com.az series in Azerbaijani.

  12. berc__kzkt July 5, 2024 at 8:22 pm

    Погрузитесь в мир берців зсу, анализируйте, изучите, углубитесь в, Берці зсу: традиции древних времен, Берці зсу: охранители души, Берці зсу: сакральное оружие, почувствуйте, культурой, Спробуйте на власній шкірі бути Берцем зсу, погляньте, дізнайтеся
    берці літні зсу купити [url=https://bercitaktichnizsu.vn.ua/]https://bercitaktichnizsu.vn.ua/[/url] .

  13. DavidSnurf July 5, 2024 at 10:17 pm

    Latest boxing news https://boks.com.az, Resul Abbasov’s achievements, Tyson Fury’s fights and much more. All in Ambassador Boxing.

  14. Rogerbenia July 5, 2024 at 10:21 pm

    Explore the extraordinary journey of Kilian Mbappe https://kilian-mbappe.com.az, from his humble beginnings to global stardom. Delve into his early years, meteoric rise through the ranks, and impact on and off the football field.

  15. Bryonrob July 5, 2024 at 10:22 pm

    Mesut Ozil https://mesut-ozil.com.az latest news, statistics, photos and much more. Get the latest news and information about one of the best football players Mesut Ozil.

  16. Arthurthums July 5, 2024 at 10:26 pm

    Latest news, statistics, photos and much more about Pele https://pele.com.az. Get the latest news and information about football legend Pele.

  17. RobertoSes July 5, 2024 at 11:08 pm

    Sergio Ramos Garcia https://sergio-ramos.com.az Spanish footballer, defender. Former Spanish national team player. He played for 16 seasons as a central defender for Real Madrid, where he captained for six seasons.

  18. Jeffreydonge July 6, 2024 at 2:01 am

    Gianluigi Buffon https://buffon.com.az Italian football player, goalkeeper. Considered one of the best goalkeepers of all time. He holds the record for the number of games in the Italian Championship, as well as the number of minutes in this tournament without conceding a goal.

  19. JamesVet July 6, 2024 at 2:07 am

    Paulo Bruno Ezequiel Dybala https://dybala.com.az Argentine footballer, striker for the Italian club Roma and the Argentina national team. World champion 2022.

  20. Williamwat July 6, 2024 at 3:22 am

    Канал для того, чтобы знания и опыт, могли помочь любому человеку сделать ремонт https://tvin270584.livejournal.com в своем жилище, любой сложности!

  21. Kennethbor July 6, 2024 at 3:25 am

    Kevin De Bruyne https://kevin-de-bruyne.liverpool-fr.com Belgian footballer, born 28 June 1991 years in Ghent. He has had a brilliant club career and also plays for the Belgium national team. De Bruyne is known for his spectacular goals and brilliant assists.

  22. Georgehep July 6, 2024 at 5:17 am

    Mohamed Salah Hamed Mehrez Ghali https://mohamed-salah.liverpool-fr.com Footballeur egyptien, attaquant du club anglais de Liverpool et l’equipe nationale egyptienne. Considere comme l’un des meilleurs joueurs du monde.

  23. BillyLatty July 6, 2024 at 5:19 am

    Paul Labille Pogba https://paul-pogba.psg-fr.com Footballeur francais, milieu de terrain central du club italien de la Juventus. Champion du monde 2018. Actuellement suspendu pour dopage et incapable de jouer.

  24. WilliamScusa July 6, 2024 at 5:21 am

    The young talent who conquered Paris Saint-Germain: how Xavi Simons became https://xavi-simons.psg-fr.com leader of a superclub in record time.

  25. Qqynqy July 6, 2024 at 5:37 am

    cyclobenzaprine brand – primaquine cost buy vasotec 5mg pills

  26. Samsun Ferroli servisi July 6, 2024 at 1:36 pm

    I am reallky enjoying the theme/design of your site. Do you
    ever run ijto any browser comptibility issues?
    A number of my blog audience havee complained about my blogg not
    operating correctly in Explorer but looks greeat in Opera.

    Do you have any ideas to help fix this issue?

    my homepage … Samsun Ferroli servisi

  27. DavidUtinc July 6, 2024 at 1:43 pm

    Kylian Mbappe https://kylian-mbappe.psg-fr.com Footballeur, attaquant francais. Il joue pour le PSG et l’equipe de France. Ne le 20 decembre 1998 a Paris. Mbappe est francais de nationalite. La taille de l’athlete est de 178 cm.

  28. LucioDoM July 6, 2024 at 1:47 pm

    Изготовление, сборка и ремонт мебели https://shkafy-na-zakaz.blogspot.com для Вас, от эконом до премиум класса.

  29. KennethBex July 6, 2024 at 1:53 pm

    Kevin De Bruyne https://liverpool.kevin-de-bruyne-fr.com Belgian footballer, born 28 June 1991 years in Ghent. He has had a brilliant club career and also plays for the Belgium national team. De Bruyne is known for his spectacular goals and brilliant assists.

  30. BillyLatty July 6, 2024 at 1:56 pm

    Paul Pogba https://psg.paul-pogba-fr.com is a world-famous football player who plays as a central midfielder. The player’s career had its share of ups and downs, but he was always distinguished by his perseverance and desire to win.

  31. KennethBex July 6, 2024 at 5:15 pm

    Thibaut Nicolas Marc Courtois https://thibaut-courtois.real-madrid-ar.com Footballeur belge, gardien de but du Club espagnol “Real Madrid”. Lors de la saison 2010/11, il a ete reconnu comme le meilleur gardien de la Pro League belge, ainsi que comme joueur de l’annee pour Genk. Trois fois vainqueur du Trophee Ricardo Zamora, decerne chaque annee au meilleur gardien espagnol

  32. RoberttoR July 6, 2024 at 5:17 pm

    Forward Rodrigo https://rodrygo.real-madrid-ar.com is now rightfully considered a rising star of Real Madrid. The talented Santos graduate is compared to Neymar and Cristiano Ronaldo, but the young talent does not consider himself a star.

  33. Darrinabiva July 6, 2024 at 5:20 pm

    Jude Victor William Bellingham https://jude-bellingham.real-madrid-ar.com English footballer, midfielder of the Spanish club Real Madrid and the England national team. In April 2024, he won the Breakthrough of the Year award from the Laureus World Sports Awards.

  34. Samuelgrarf July 6, 2024 at 5:46 pm

    Saud Abdullah Abdulhamid https://saud-abdulhamid.real-madrid-ar.com Saudi footballer, defender of the Al -Hilal” and the Saudi Arabian national team. Asian champion in the age category up to 19 years. Abdulhamid is a graduate of the Al-Ittihad club. On December 14, 2018, he made his debut in the Saudi Pro League in a match against Al Bateen

  35. Donaldlig July 6, 2024 at 5:52 pm

    Khvicha Kvaratskhelia https://khvicha-kvaratskhelia.real-madrid-ar.com midfielder of the Georgian national football team and the Italian club “Napoli”. Became champion of Italy and best player in Serie A in the 2022/23 season. Kvaratskhelia is a graduate of Dynamo Tbilisi and played for the Rustavi team.

  36. SEO_ftEt July 6, 2024 at 6:00 pm

    seo продвижение корпоративных сайтов в москве [url=https://prodvizhenie-sajtov-v-moskve115.ru]https://prodvizhenie-sajtov-v-moskve115.ru[/url] .

  37. MartinCib July 6, 2024 at 8:28 pm

    Vinicius Junior https://vinisius-junior.com.az player news, fresh current and latest events for today about the player of the 2024 season

  38. KelvinDibre July 6, 2024 at 9:05 pm

    Welcome to our official site! Get to know the history, players and latest news of Inter Miami Football Club https://inter-miami.com.az. Discover with us the successes and great performances of America’s newest and most exciting soccer club.

  39. ArturoTaimb July 6, 2024 at 9:09 pm

    Conor Anthony McGregor https://conor-mcgregor.com.az Irish mixed martial arts fighter who also performed in professional boxing. He performs under the auspices of the UFC in the lightweight weight category. Former UFC lightweight and featherweight champion.

  40. Anthonywrozy July 6, 2024 at 11:31 pm

    Оперативный вывод из запоя https://www.liveinternet.ru/users/laralim/post505923855/ на дому. Срочный выезд частного опытного нарколога круглосуточно. При необходимости больного госпитализируют в стационар.

  41. Craigeruff July 6, 2024 at 11:41 pm

    Видеопродакшн студия https://humanvideo.ru полного цикла. Современное оборудование продакшн-компании позволяет снимать видеоролики, фильмы и клипы высокого качества. Создание эффективных видеороликов для рекламы, мероприятий, видеоролики для бизнеса.

  42. leanbiome July 7, 2024 at 1:57 am

    LeanBiome is a dietary supplement designed to promote weight loss and improve overall health. It is formulated with a unique blend of probiotics, prebiotics, and natural ingredients that work together to support a healthy gut microbiome. The gut microbiome plays a crucial role in digestion, metabolism, and the immune system. By optimizing the gut microbiome, LeanBiome aims to help individuals achieve their weight loss goals more effectively and sustainably. https://sites.google.com/spsw.edu.pl/leanbiome/

  43. SEO_puEt July 7, 2024 at 2:24 am

    продвижение сайтов в москве яндекс оплата за результат [url=www.prodvizhenie-sajtov-v-moskve115.ru/]www.prodvizhenie-sajtov-v-moskve115.ru/[/url] .

  44. Raymondfub July 7, 2024 at 2:34 am

    Welcome to the site dedicated to Michael Jordan https://michael-jordan.com.az, a basketball legend and symbol of world sports culture. Here you will find highlights, career, family and news about one of the greatest athletes of all time.

  45. sightcare July 7, 2024 at 4:38 am

    SightCare is a revolutionary dietary supplement designed to support and maintain optimal eye health. In today’s digital age, where screens dominate our daily lives, the need for effective eye care solutions has never been greater. SightCare aims to meet this need with its scientifically formulated blend of essential nutrients and antioxidants. https://sites.google.com/spsw.edu.pl/sightcare/

  46. DennisMug July 7, 2024 at 4:50 am

    Gucci купить http://thebestluxurystores.ru по низкой цене в интернет-магазине брендовой одежды. Одежда и обувь бренда Gucci c доставкой.

  47. EnriqueExady July 7, 2024 at 4:56 am

    Muhammad Ali https://muhammad-ali.com.az American professional boxer who competed in the heavy weight category; one of the most famous boxers in the history of world boxing.

  48. ChrisDromy July 7, 2024 at 5:01 am

    Монтаж систем отопления https://fectum.pro, водоснабжения, вентиляции, канализации, очистки воды, пылеудаления, снеготаяния, гелиосистем в Краснодаре под ключ.

  49. SEO_rrEt July 7, 2024 at 8:52 am

    продвижение сайтов в москве яндекс [url=http://prodvizhenie-sajtov-v-moskve115.ru]http://prodvizhenie-sajtov-v-moskve115.ru[/url] .

  50. glucotil July 7, 2024 at 11:11 am

    Glucotil is a dietary supplement designed to support healthy blood sugar levels and overall metabolic health. Managing blood sugar is crucial for individuals with diabetes or pre-diabetes, as well as for those looking to maintain healthy energy levels and prevent future metabolic issues. Glucotil combines natural ingredients that have been shown to positively affect blood glucose regulation and insulin sensitivity.
    https://sites.google.com/spsw.edu.pl/glucotil/

Comments are closed.

your ideal recruitment agency

view related content