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. Sherly Annavita January 29, 2024 at 6:48 pm - Reply

    🚀 Wow, blog ini seperti roket meluncur ke alam semesta dari kemungkinan tak terbatas! 🌌 Konten yang menarik di sini adalah perjalanan rollercoaster yang mendebarkan bagi imajinasi, memicu kagum setiap saat. 🌟 Baik itu gayahidup, blog ini adalah harta karun wawasan yang menarik! 🌟 Terjun ke dalam petualangan mendebarkan ini dari imajinasi dan biarkan imajinasi Anda berkelana! 🌈 Jangan hanya membaca, rasakan sensasi ini! 🌈 Pikiran Anda akan berterima kasih untuk perjalanan menyenangkan ini melalui ranah keajaiban yang menakjubkan! ✨

  2. порно на руском January 30, 2024 at 12:03 am - Reply

    I am incessantly thought about this, thanks for posting.
    My website: бесплатное порно

  3. Kheest January 30, 2024 at 1:32 am - Reply

    oral clomid 50mg buy generic clomiphene oral serophene

  4. Qeztgi January 31, 2024 at 12:26 pm - Reply

    zanaflex usa tizanidine cheap order tizanidine 2mg online

  5. Vnluln January 31, 2024 at 9:34 pm - Reply

    rybelsus tablet rybelsus 14mg pill buy rybelsus 14mg pill

  6. Boyun fıtığı February 1, 2024 at 8:53 am - Reply

    Hi to every one, the contents existing at this site are really remarkable for peple experience, well, keep up
    thhe good work fellows.

    Feel free to suurf to my webpage – Boyun fıtığı

  7. Asheville Auto Glass February 1, 2024 at 10:59 am - Reply

    Your ability to simplify complex topics is remarkable. Thanks for making learning easier!

  8. rybelsus tab 7mg February 1, 2024 at 1:34 pm - Reply

    [url=https://ozempic.us.com/]wegovy tab 3mg[/url]

  9. newwindshieldrepairblog.com February 1, 2024 at 4:56 pm - Reply

    Your blog is a goldmine of information. So glad I found it!

  10. Resveratrol February 1, 2024 at 6:32 pm - Reply

    hey there and thank you for your info – I’ve certainly picked up
    something new frrom right here. I did however
    expertise some technical poihts using this web site,
    since I experiennced to reload the website many tims previous to I could get it to load properly.
    I had been wondering if your web hosting is OK? Not that I am
    complaining, but slow loading instances times will very frequently
    affect your placement in google and could damage yoour quality score if adverrising
    and marketing with Adwords. Anyway I’m adding tbis RSS to my email and can loolk out for a lot more oof your respective excitinng
    content. Enszure that you update this again soon.

    Here is my web blog Resveratrol

  11. Dsrjfx February 2, 2024 at 12:19 am - Reply

    brand deltasone 5mg prednisone price deltasone 5mg pill

  12. bestwindshieldrepairblog.com February 2, 2024 at 6:00 am - Reply

    The visuals you add to your posts make the concepts so much clearer. Great job!

  13. Arczes February 2, 2024 at 4:43 pm - Reply

    order rybelsus 14mg for sale semaglutide 14mg price where can i buy rybelsus

  14. Hari Zebra International February 2, 2024 at 6:27 pm - Reply

    Incredibly impressive post! 😄 The content you share never ceases to amaze me. I felt compelled to convey my deep gratitude for consistently offering such insightful perspectives and thought-provoking posts. Maintain the remarkable work!

  15. Lgmdcc February 3, 2024 at 2:34 pm - Reply

    accutane over the counter order isotretinoin 40mg online cheap buy accutane pill

  16. deneme bonusu February 3, 2024 at 3:03 pm - Reply

    Hiya very nice site!! Guy .. Excellent .. Amazing .. I’ll bookmark
    your blogg and take the feeds additionally? I am happy to find a lot
    oof useful information right here in the publish, we need work out extra techniques on tthis regard, thanks for sharing.
    . . . . .

    Look at mmy website; deneme bonusu

  17. Ndpfdd February 3, 2024 at 4:13 pm - Reply

    order albuterol 4mg generic ventolin drug order ventolin 2mg without prescription

  18. Charlotte Auto Glass February 3, 2024 at 7:53 pm - Reply

    Your writing is a wonderful mix of informative and compelling.

  19. Garner Auto Glass February 3, 2024 at 9:33 pm - Reply

    Your posts are a beacon of clarity in a crowded digital world.

  20. Charlotte Auto Glass February 4, 2024 at 12:53 am - Reply

    The authenticity and passion in your writing are evident.

  21. Asheville Auto Glass February 4, 2024 at 2:50 am - Reply

    You’ve created a blog that’s as entertaining as it is informative.

  22. Clemmons Auto Glass February 4, 2024 at 4:16 am - Reply

    The authenticity and passion in your writing are evident.

  23. Muchos Gracias for your article.Really thank you! Cool.
    My website: эротика россия бесплатно без регистрации

  24. Chapel Hill Auto Glass February 4, 2024 at 6:32 am - Reply

    Your insights are always groundbreaking and enlightening.

  25. секс видео русское February 4, 2024 at 6:56 am - Reply

    Respect to post author, some fantastic information
    My website: порно русское

  26. sanford auto glass February 4, 2024 at 7:59 am - Reply

    The way you connect with your readers is exceptional.

  27. sanford nc auto glass February 4, 2024 at 6:50 pm - Reply

    The personal touch you add to each post makes your blog stand out.

  28. wilmington windshield replacement February 4, 2024 at 7:57 pm - Reply

    You have an exceptional ability to engage and inspire your audience.

  29. auto glass Repair February 4, 2024 at 9:27 pm - Reply

    Your blog is a masterclass in effective communication.

  30. Charlotte Auto Glass Replacement February 4, 2024 at 10:43 pm - Reply

    You’ve created a blog that’s as entertaining as it is informative.

  31. Greensboro Auto Glass Replacement February 5, 2024 at 12:33 am - Reply

    You have a gift for making complex subjects easily digestible.

  32. Windshield Replacement Charlotte February 5, 2024 at 2:54 am - Reply

    The creativity in your topics and presentation is inspiring.

  33. Auto Glass Facts February 5, 2024 at 6:49 am - Reply

    Your insights are always groundbreaking and enlightening.

  34. Cnlyvz February 5, 2024 at 7:52 am - Reply

    amoxil over the counter order amoxil 1000mg pills buy amoxil pills for sale

  35. Iggmax February 5, 2024 at 10:01 am - Reply

    buy augmentin 375mg online buy augmentin 625mg online augmentin 1000mg without prescription

  36. A round of applause for your article. Much thanks again.
    My website: секс массаж девушки

  37. Major thanks for the article post. Much thanks again.
    My website: секс спящая сестра спит

  38. порно трахнул милфу February 6, 2024 at 5:15 am - Reply

    As a Newbie, I am always searching online for articles that can help me. Thank you
    My website: золотой дождь порно

  39. Teplo_Dom_Cog February 6, 2024 at 6:03 am - Reply

    Утомились промерзать зимой и излишне платить за отопление?
    Теплообеспечение фасада – решение проблемы!
    Компания “Тепло и уют” с 2010 года предлагает квалифицированные услуги по обтеплению фасадов зданий любой сложности. За это время мы зарекомендовали себя как надежный и добросовестный партнер, о чем свидетельствуют многочисленные отзывы наших клиентов.
    Почему стоит выбрать нас?
    доступные цены. [url=https://stroystandart-kirov.ru/]Заказать утепление фасада[/url] от 1350 руб/м2.
    опытность и опытность. Наши бригады имеют большой опыт работы в сфере утепления фасадов. Мы используем только засвидетельствованные материалы и современные технологии, что гарантирует высокое качество работ.
    Личный подход. Мы подберем для вас наилучшее решение с заметанием ваших потребностей и бюджета.
    Бесплатная консультация и выезд замерщика. Наши специалисты бесплатно проконсультируют вас по всем вопросам инсуляции фасада и произведут точные замеры.
    Наш сайт: [url=https://stroystandart-kirov.ru/]http://stroystandart-kirov.ru/[/url]
    Обеспечение качества. Мы предоставляем уверенность на все виды работ.
    Звоните нам сегодня и получите бесплатную консультацию!
    Мы сделаем ваш дом теплым, уютным и экономичным!

  40. Very good post.Really looking forward to read more. Great.
    My website: жена сосет другу

  41. Mlwilf February 6, 2024 at 11:31 pm - Reply

    buy azithromycin 250mg for sale azithromycin 500mg cost zithromax 250mg canada

  42. Upcdgf February 7, 2024 at 1:48 am - Reply

    buy synthroid pills brand levoxyl buy synthroid 150mcg sale

  43. порно зрелых женщин February 7, 2024 at 2:27 am - Reply

    I gotta favorite this site it seems very beneficial handy
    My website: сводная сестра порно анал

  44. Respect to post author, some fantastic information
    My website: анал арал видео с худыми

  45. Ankara tomografi February 7, 2024 at 4:31 pm - Reply

    Appreciating the time and effort you putt into your blog and in depth informatiuon youu provide.
    It’s nice to come across a blog every once in a while that isn’t the
    same unwanted rehashed material. Great read! I’ve saved your site and I’m including your RSS feeds to my Google account.

    Also visit my web site Ankara tomografi

  46. Bursa escort February 7, 2024 at 4:34 pm - Reply

    hi!,I like your writing so so much! percentage wwe communicate extra approximately your post on AOL?

    I require a specialist in this house to resolve my problem.
    May be that’s you! Having a look ahead to see you.

    Stop by my webpoage … Bursa escort

  47. zlatne plocice February 8, 2024 at 5:28 am - Reply

    Yay google is my king aided me to find this outstanding website ! .

  48. кашмоты February 8, 2024 at 8:21 am - Reply

    Thanks for sharing, this is a fantastic blog post.Really thank you! Much obliged.
    My website: красивое порно милфы

  49. Auto Glass Removal tools February 8, 2024 at 12:38 pm - Reply

    I’m always excited to see your posts in my feed. Another excellent article!

  50. Teplo_Dom_Cog February 8, 2024 at 2:27 pm - Reply

    Переутомились застывать зимой и избыточно выплачивать за отопление?
    Обтепление фасада – решение проблемы!
    Компания “Тепло и уют” с 2010 года предлагает специализированные услуги по утеплению фасадов зданий любой сложности. За это время мы зарекомендовали себя как надежный и ответственный партнер, о чем свидетельствуют многочисленные отзывы наших клиентов.
    Почему стоит выбрать нас?
    доступные цены. [url=https://stroystandart-kirov.ru/]Утепление стен дома снаружи цена[/url] от 1350 руб/м2.
    опытность и профессионализм. Наши бригады имеют массивный опыт работы в сфере обтепления фасадов. Мы используем только аттестованные материалы и современные технологии, что гарантирует высочайшее качество работ.
    Личный подход. Мы подберем для вас лучшее решение с учетом ваших потребностей и бюджета.
    Бесплатная консультация и выезд замерщика. Наши специалисты бесплатно проконсультируют вас по всем вопросам обтепления фасада и произведут точные замеры.
    Наш сайт: [url=https://stroystandart-kirov.ru/]stroystandart-kirov.ru[/url]
    Обеспечение качества. Мы предоставляем гарантию на все виды работ.
    Звоните нам сегодня и получите бесплатную консультацию!
    Мы сделаем ваш дом уютным, теплым и экономичным!

Leave A Comment

your ideal recruitment agency

view related content