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. Brettdix July 7, 2024 at 11:42 am

    Lev Ivanovich Yashin https://lev-yashin.com.az Soviet football player, goalkeeper. Olympic champion in 1956 and European champion in 1960, five-time champion of the USSR, three-time winner of the USSR Cup.

  2. Phillipfus July 7, 2024 at 11:49 am

    Usain St. Leo Bolt https://usain-bolt.com.az Jamaican track and field athlete, specialized in short-distance running, eight-time Olympic champion and 11-time world champion (a record in the history of this competition among men).

  3. Robertinsum July 7, 2024 at 11:55 am

    Game World https://kz-games.kz offers the latest online gaming news, game reviews, gameplay and ideas, gaming tactics and tips . Start playing our most popular and amazing games and get ready to become the leader in the online gaming world!

  4. DonaldWrade July 7, 2024 at 11:57 am

    You have a source of the latest and most interesting sports news from Kazakhstan: “Kazakhstan sports news https://sports-kazahstan.kz: Games and records” ! Follow us to receive updates and interesting news every minute!

  5. RodneyFoula July 7, 2024 at 3:17 pm

    Top sports news https://sport-kz-news.kz, photos and blogs from experts and famous athletes, as well as statistics and information about matches of leading championships.

  6. HarryTheok July 7, 2024 at 3:24 pm

    The latest top football news https://football-kz.kz today. Interviews with football players, online broadcasts and match results, analytics and football forecasts, photos and videos.

  7. Leslienom July 7, 2024 at 8:51 pm

    Latest news about games for Android https://android-games.kz, reviews and daily updates. Read now and get the latest information about the most exciting games

  8. ThomasRam July 7, 2024 at 8:54 pm

    Check out Minecraft kz https://minecraft-kz.kz for the latest news, guides, and in-depth reviews of the game options available. Find the latest information on Minecraft Download, Pocket Edition and Bedrock Edition.

  9. JefferyHen July 7, 2024 at 8:57 pm

    Latest news from World of Warcraft https://wow-kz.kz (WOW) tournaments, strategy and game analysis. The most detailed gaming portal in the language.

  10. BrettDrido July 7, 2024 at 9:04 pm

    Latest news and analysis of the Premier League https://premier-league.kz. Full descriptions of matches, team statistics and the most interesting football events. Premier Kazakhstan is the best place for football fans.

  11. Roccodiaby July 7, 2024 at 9:26 pm

    buying prescription drugs in mexico online: mexican pharmacy online – mexican drugstore online

  12. Thomastaize July 8, 2024 at 12:10 am

    Доставка груза и грузоперевозки https://tamozhennyy-deklarant.blogspot.com по России через транспортную компанию автотранспортом доступна и для частных лиц. Перевозчик отправит или доставит ваш груз: выгодные тарифы индивидуальный подход из рук в руки 1 машиной.

  13. MichaelHindy July 8, 2024 at 12:15 am

    Зеркала интерьерные https://zerkala-mag.ru в интернет-магазине «Зеркала с подсветкой» Самые низкие цены на зеркала!

  14. KennethLes July 8, 2024 at 12:43 am

    Купить зеркала https://zerkala-m.ru по низким ценам. Более 1980 моделей, купить недорого в интернет-магазине в Москве с доставкой по России. Удобный каталог, низкие цены, качественные фото.

  15. VincentHag July 8, 2024 at 1:05 am

    reputable mexican pharmacies online
    https://cmqpharma.online/# mexico pharmacies prescription drugs
    buying prescription drugs in mexico online

  16. LewisNub July 8, 2024 at 3:31 am

    Spider-Man https://spiderman.kz the latest news, articles, reviews, dates, spoilers and other latest information. All materials on the topic “Spider-Man”

  17. Staceylurne July 8, 2024 at 3:35 am

    Latest Counter-Strike 2 news https://counter-strike-kz.kz, watch the most successful tournaments and be the best in the gaming world.

  18. HerbertNox July 8, 2024 at 3:36 am

    The latest top football news https://football.sport-news-eg.com today. Interviews with football players, online broadcasts and match results, analytics and football forecasts, photos and videos.

  19. Albertomox July 8, 2024 at 3:48 am

    Discover the dynamic world of Arab sports https://sports-ar.com through the lens of Arab sports news. Your premier source for breaking news, exclusive interviews, in-depth analysis and live coverage of everything happening in sports.

  20. zencortex July 8, 2024 at 4:49 am

    ZenCortex is a nootropic supplement designed to enhance cognitive function, support brain health, and improve mental clarity. By combining a blend of natural ingredients known for their neuroprotective and cognitive-enhancing properties, ZenCortex aims to boost memory, focus, and overall brain performance. https://sites.google.com/spsw.edu.pl/zencortex/

  21. online July 8, 2024 at 5:32 am

    [url=https://baclofem.com/]lioresal price[/url]

  22. leangene July 8, 2024 at 6:12 am

    LeanGene is a dietary supplement designed to support weight loss and metabolic health by targeting genetic and metabolic pathways. Utilizing a blend of natural ingredients, LeanGene aims to enhance fat burning, suppress appetite, and improve overall metabolic function, helping individuals achieve their weight management goals more effectively.
    https://sites.google.com/spsw.edu.pl/leangene/

  23. Ycmfpq July 8, 2024 at 6:18 am

    ascorbic acid 500 mg drug – isosorbide dinitrate medication buy prochlorperazine generic

  24. Patricksit July 8, 2024 at 6:42 am

    Интернет магазин электроники и цифровой техники по доступным ценам. Доставка мобильной электроники по Москве и Московской области.

  25. JasonNeamb July 8, 2024 at 6:50 am

    NHL news https://nhl-ar.com (National Hockey League) – the latest and most up-to-date NHL news for today.

  26. Kermitarcag July 8, 2024 at 6:52 am

    UFC news https://ufc-ar.com, schedule of fights and tournaments 2024, ratings of UFC fighters, interviews, photos and videos. Live broadcasts and broadcasts of tournaments, statistics, forums and fan blogs.

  27. Ronaldpar July 8, 2024 at 6:56 am

    The most important sports news https://bein-sport-egypt.com, photos and blogs from experts and famous athletes, as well as statistics and information about matches of leading leagues.

  28. RichardFef July 8, 2024 at 6:59 am

    News and events of the American Basketball League https://basketball-eg.com in Egypt. Hot events, player transfers and the most interesting events. Explore the world of the NBA with us.

  29. WilliamTew July 8, 2024 at 10:31 am

    Discover the wonderful world of online games https://game-news-ar.com. Get the latest news, reviews and tips for your favorite games.

  30. Brandonhit July 8, 2024 at 10:37 am

    News, tournaments, guides and strategies about the latest GTA games https://gta-ar.com. Stay tuned for the best GTA gaming experience

  31. RobertPoogy July 8, 2024 at 10:41 am

    Latest news https://android-games-ar.com about Android games, reviews and daily updates. The latest information about the most exciting games.

  32. puravive July 8, 2024 at 11:20 am

    Puravive is a dietary supplement designed to support weight loss and overall metabolic health. By leveraging a blend of natural ingredients known for their fat-burning and metabolism-boosting properties, Puravive aims to help individuals achieve their weight management goals and enhance their overall well-being. https://sites.google.com/spsw.edu.pl/puravive-web/

  33. Lpywwv July 8, 2024 at 2:14 pm

    ondansetron 4mg drug – cheap oxytrol buy requip no prescription

  34. Charlesslivy July 8, 2024 at 6:27 pm

    The site is dedicated to football https://fooball-egypt.com, football history and news. Latest news and fresh reviews of the world of football

  35. Ronnietut July 8, 2024 at 6:27 pm

    Открытие для себя Ерлинг Хааланда https://manchestercity.erling-haaland-cz.com, a talented player of «Manchester City». Learn more about his skills, achievements and career growth.

  36. ScottBex July 8, 2024 at 6:32 pm

    The path of 21-year-old Jude Bellingham https://realmadrid.jude-bellingham-cz.com from young talent to one of the most promising players in the world, reaching new heights with Dortmund and England.

  37. VictorBioff July 8, 2024 at 6:36 pm

    French prodigy Kylian Mbappe https://realmadrid.kylian-mbappe-cz.com is taking football by storm, joining his main target, ” Real.” New titles and records are expected.

  38. Aarontossy July 8, 2024 at 6:39 pm

    Harry Kane’s journey https://bavaria.harry-kane-cz.com from Tottenham’s leading striker to Bayern’s leader and Champions League champion – this is the story of a triumphant ascent to the football Olympus.

  39. Robertcob July 8, 2024 at 10:17 pm

    Изготовим для Вас изделия из металла https://smith-moskva.blogspot.com, по вашим чертежам или по нашим эскизам.

  40. ThomasVok July 8, 2024 at 10:46 pm

    https://rolaks.com отделочные материалы для фасада – интернет-магазин

  41. Patricknut July 8, 2024 at 11:10 pm

    The fascinating story of the rise of Brazilian prodigy Vinicius Junior https://realmadrid.vinicius-junior-cz.com to the heights of glory as part of the legendary Madrid “Real”

  42. Williamdob July 8, 2024 at 11:32 pm

    Mohamed Salah https://liverpool.mohamed-salah-cz.com, who grew up in a small town in Egypt, conquered Europe and became Liverpool star and one of the best players in the world.

  43. Robbieadors July 9, 2024 at 2:02 am

    Полезные советы и пошаговые инструкции по строительству https://syndyk.by, ремонту и дизайну домов и квартир, выбору материалов, монтажу и установке своими руками.

  44. OrvilleGop July 9, 2024 at 2:09 am

    Lionel Messi https://intermiami.lionel-messi-cz.com, one of the best football players of all time, moves to Inter Miami” and changes the face of North American football.

  45. BrianAmilk July 9, 2024 at 2:11 am

    Bernardo Mota Veiga de Carvalho e Silva https://manchestercity.bernardo-silva-cz.com Portuguese footballer, club midfielder Manchester City and the Portuguese national team.

  46. electric vehicle charger July 9, 2024 at 3:25 am

    I am now not sure the place you’re getting your info, however great topic. I needs to spend a while learning more or working out more. Thanks for excellent information I used to be in search of this info for my mission.

  47. JamesInito July 9, 2024 at 3:40 am

    Antoine Griezmann https://atlticomadrid-dhb.antoine-griezmann-cz.com Atletico Madrid star whose talent and decisive goals helped the club reach the top of La Liga and the UEFA Champions League.

  48. puravive July 9, 2024 at 5:09 am

    Puravive is a dietary supplement designed to support weight loss and overall metabolic health. By leveraging a blend of natural ingredients known for their fat-burning and metabolism-boosting properties, Puravive aims to help individuals achieve their weight management goals and enhance their overall well-being. https://sites.google.com/spsw.edu.pl/puravive-web/

  49. Moisesgef July 9, 2024 at 5:24 am

    AML проверка

    Противоотмывочная верификация: Каким образом предотвратить приостановление ресурсов на платформах обмена криптовалют

    С какой целью важна антиотмывочные меры?
    Процедура противодействия отмыванию денег (Борьба с отмыванием денег) – включает в себя совокупность процедур, ориентированных на борьбу отбеливания ресурсов. Эта проверка способствует защищать виртуальные активы клиентов а также предотвращать применение площадок для незаконных действий. Проверка по борьбе с отмыванием денег необходима с целью обеспечения неприкосновенности ваших средств и соблюдения законодательных правил.

    Основные подходы верификации
    Криптовалютные биржи наряду с другими транзакционные предложения применяют ряд важнейших инструментов в рамках проверки владельцев:

    Верификация личности: Эта методика предусматривает ключевые процедуры для идентификации удостоверения владельца, такие как подтверждение документов проживания. Верификация личности дает возможность удостовериться, в том, что клиент подтверждает себя как законным.

    Борьба с финансированием терроризма: Направлена в интересах предотвращения финансирования террористических актов. Механизм контролирует сомнительные действия при необходимости замораживает учетные записи для проведения внутренней экспертизы.

    Преимущества AML-проверки
    Процедура противодействия отмыванию денег позволяет участникам криптосферы:

    Выполнять международные вместе с национальными юридические требования.
    Сохранять клиентов криминальной активности.
    Увеличивать уровень репутации у владельцев надзорных органов.

    Каким образом минимизировать риски себя во время операций в криптосфере

    С целью минимизировать вероятности замораживания средств, придерживайтесь этому списку подсказкам:

    Используйте проверенные биржи: Используйте исключительно к биржам положительной оценкой а также высоким мерой контроля.
    Оценивайте получателей: Используйте услуги по противодействию отмыванию в интересах проверки цифровых кошельков контрагентов перед выполнением транзакций.
    Регулярно меняйте виртуальные счета: Такой подход поможет минимизировать потенциальных подозрений, в случае если Ваши партнеры окажутся в серых списках.

    Обеспечивайте свидетельства операций: Когда потребуется требовании получите возможность верифицировать законность взятых средств.

    Подытоживая
    Антиотмывочные меры – является важный механизм с целью обеспечения неприкосновенности действий в цифровой валютной среде. Данная процедура способствует избежать отмывание ресурсов, обеспечение террористической деятельности а также иные незаконные действия. Выполняя указаниям для обеспечения безопасности в совокупности с выбором проверенные обменники, вы можете минимизировать опасности приостановления ресурсов работать безопасной работой с криптовалютами.

  50. WilliamEneda July 9, 2024 at 5:43 am

    Son Heung-min’s https://tottenhamhotspur.son-heung-min-cz.com success story at Tottenham Hotspur and his influence on the South Korean football, youth inspiration and changing the perception of Asian players.

Comments are closed.

your ideal recruitment agency

view related content