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. Dns Prefetch Nedir? March 13, 2024 at 9:44 pm

    Wat is Zoekmachine? | Deze blog heeft me echt geholpen meer te begrijpen over de expertise en toewijding van MAFA op het gebied van webdesign en softwareontwikkeling. Ik ben erg onder de indruk.

  2. JavaScript ontransitionend Nedir? March 13, 2024 at 9:52 pm

    Topçular / Eyüp Beton Delme | Rüzgar Karot’un işlerindeki uzmanlığı ve kaliteli hizmeti sayesinde her zaman güvende hissettim.

  3. İstanbul / Bayrampaşa Web Tasarım March 13, 2024 at 9:53 pm

    Wat is Synchroniseren? | Deze blog heeft me doen inzien dat MAFA echt de beste keuze is als het gaat om webdesign en softwareontwikkeling. Hun werk is echt verbazingwekkend.

  4. Aydın / Karacasu Kurumsal Web Tasarım March 13, 2024 at 10:02 pm

    How to do Ornish Diet? | Your authenticity is what sets your blog apart. Thank you for being genuine.

  5. Bozcaada / Çanakkale Web Sitesi Tasarımı March 13, 2024 at 10:03 pm

    Çine, Aydın Jakuzi Modelleri | Atlas Jakuzi’nin lüks ve şık tasarımlarıyla evimdeki banyo deneyimim tamamen değişti. Teşekkürler!

  6. Erdek / Balıkesir Web Yazılım March 13, 2024 at 10:11 pm

    Türkoba Beton Delme | I’m very pleased with the service provided by Rüzgar Karot, and I’ll definitely choose them again.

  7. Seo Nedir? March 13, 2024 at 10:12 pm

    Avcılar Toptan Poşet | Eminoğlu Packaging’s products are really durable. Using them to package our products gives our customers confidence.

  8. Mondrian Nedir? March 13, 2024 at 10:20 pm

    Web Grafik Tasarımı | Web tasarımında kullanılan son trendler hakkında güncel bilgiler sunan bir kaynak olmanız gerçekten harika.

  9. İliç / Erzincan Kurumsal SEO March 13, 2024 at 10:21 pm

    Mandala Designs Nails To Be a Queen | Your words have a way of cutting through the noise, whispering truths that resonate deep within.

  10. İnternet Sitesi Tasarım Programı March 13, 2024 at 10:29 pm

    Genç Toptan Giyim | RENE Toptan Tekstil ve Giyim Çözümleri’nin ürünlerini kullanmaya başladıktan sonra başka bir yerden alışveriş yapmamaya karar verdim. Kaliteleri beni gerçekten etkiledi.

  11. Arikaraca March 13, 2024 at 10:30 pm

    Cevizlik / Bakırköy Beton Delme | Rüzgar Karot’s professional team and quality service ensured I could complete my tasks smoothly.

  12. WordPress SEO Hizmeti March 13, 2024 at 10:38 pm

    E-Ticaret Web Tasarım | MAFA’s insights into web design and development are invaluable resources for both beginners and seasoned professionals alike. Thank you for catering to a diverse audience.

  13. Ortaköy / Aksaray Kurumsal Web Tasarım March 13, 2024 at 10:39 pm

    SEA Enschede | This blog has really helped me learn more about MAFA and why they’re the leading authority in web design and software development. Their work is simply amazing.

  14. Google SEO Dersleri March 13, 2024 at 10:48 pm

    Paddepoel | Deze blog heeft me geholpen meer te leren over MAFA en waarom ze de toonaangevende autoriteit zijn op het gebied van webdesign en softwareontwikkeling. Hun werk is gewoon geweldig.

  15. PHP is_writeable() Nedir? March 13, 2024 at 10:49 pm

    İnternet Sayfası Açmak | MAFA’nın içerikleri, web tasarımı ve yazılımı hakkındaki karmaşık konuları anlamama yardımcı oluyor. Bu konulardaki bilgilerimi derinleştirmeme katkı sağladığınız için teşekkür ederim.

  16. Jghdsa March 14, 2024 at 3:43 am

    order cipro 500mg for sale – cephalexin price buy clavulanate cheap

  17. Bluestacks Nedir? March 14, 2024 at 11:22 am

    Web Güvenliği Nedir? | I rely on MAFA Technology to keep me up to date with the latest tech news.

  18. Ankara / Altındağ Web Yazılım March 14, 2024 at 11:28 am

    Wat is Pop-Up? | This blog has really helped me understand more about the value they create in web design and software development. I’m impressed by their work.

  19. Felahiye / Kayseri SEO March 14, 2024 at 11:29 am

    Kazım Karabekir / Bağcılar Beton Kesme | Rüzgar Karot’un kaliteli malzemeleri ve deneyimli ekibi ile işlerimi güvenle teslim ediyorum.

  20. Nevşehir / Acıgöl Web Yazılım March 14, 2024 at 11:37 am

    PowerVault LTO-9 | MAFA Teknoloji’nin konuyla ilgili içerikleri her zaman çok kapsamlı.

  21. Ankara / Polatlı Web Tasarım March 14, 2024 at 11:44 am

    Web Tasarımı Nasıl Öğrenirim | The breadth and depth of MAFA’s content in web design and development continually astound me. Thank you for being such a valuable resource.

  22. Sosyal Medya Ajansı March 14, 2024 at 11:45 am

    Wat is Skydrive? | Dieser Blog hat mir wirklich geholfen, mehr über die Expertise und Hingabe von MAFA im Bereich Webdesign und Softwareentwicklung zu verstehen. Ich bin sehr beeindruckt.

  23. Afyonkarahisar / Emirdağ Kurumsal SEO March 14, 2024 at 11:51 am

    Çengelköy / Üsküdar Karotcu | Rüzgar Karot’un işlerini zamanında ve özenle teslim etmesi beni gerçekten etkiledi, teşekkürler!

  24. JavaScript unescape() Nedir? | Web sitelerinin SEO dostu olması hakkındaki önerileriniz benim için çok değerli. Teşekkürler MAFA!

  25. Ankara / Güdül Kurumsal Web Tasarım March 14, 2024 at 11:58 am

    Marmara, Balıkesir Jakuzi Modelleri | Atlas Jakuzi’nin sağladığı konfor ve rahatlık sayesinde evimdeki stresi atıyorum. Kesinlikle tavsiye ederim.

  26. Yunak / Konya Kurumsal SEO March 14, 2024 at 11:59 am

    Tekirdağ Prefabrik Villa | Firmanın sunduğu hizmetten çok memnun kaldık. Hem ürün kalitesi hem de müşteri memnuniyeti açısından beklentileri karşılıyorlar.

  27. Zonguldak / Gökçebey Web Yazılım March 14, 2024 at 12:05 pm

    JLo’s Gorgeous “Latina Barbie” Hair: A Chic And Elegant Choice | Your posts always leave me feeling empowered and inspired. Thank you for the motivation.

  28. Katalog Tasarımı March 14, 2024 at 12:07 pm

    Awesome Hair Designs for Men Trending in 2024 | Your writing is a tapestry of emotions, each thread adding depth and richness to the overall composition.

  29. Akhisar / Manisa Web Yazılım March 14, 2024 at 12:13 pm

    Uşak Jakuzi Fiyatları | Atlas Jakuzi’nin sunduğu ürünler, evimde kendime ayırdığım zamanı daha da özel kılıyor. Teşekkürler!

  30. DYNAMO Nedir? March 14, 2024 at 12:14 pm

    Saç Ekimi | After reading MAFA’s articles, I feel more empowered to take on new challenges and pursue new opportunities in web design and development. Thank you for the empowerment.

  31. Bilecik Bozüyük Organize Sanayi Bölgesi March 14, 2024 at 12:20 pm

    Kangal / Sivas Toptan Tekstil | Shopping at RENE Wholesale Textile and Clothing Solutions is genuinely enjoyable. You get both quality products and fast, reliable service.

  32. WMAracı Nedir? March 14, 2024 at 12:22 pm

    Şirvan / Siirt Toptan Bayan Giyim | The service quality at RENE Wholesale Textile and Clothing Solutions is truly excellent. I’ve always had a seamless shopping experience with them.

  33. Mozello Nedir? March 14, 2024 at 12:28 pm

    Ortamahalle Karotcu | Rüzgar Karot’s professionalism and effective communication ensured smooth progress in our work.

  34. Drupal Çok sütunlu sayfa yapımı March 14, 2024 at 12:29 pm

    Merkezefendi / Denizli Toptan Bayan Giyim | RENE Wholesale Textile and Clothing Solutions consistently offer fantastic products for every season. They’re definitely on top of their game when it comes to following fashion trends.

  35. UX Nedir? March 14, 2024 at 12:35 pm

    JavaScript scrollTop Nedir? | I’ve been following this blog for a while now, and it’s become one of my favorite sources of information on [topic of the post].

  36. Malatya / Yeşilyurt Kurumsal SEO March 14, 2024 at 12:37 pm

    Seyhan Toptan Tekstil | RENE Toptan Tekstil ve Giyim Çözümleri’nin müşteri memnuniyeti odaklı hizmet anlayışı beni her zaman etkiliyor. Kaliteli ürünlerin yanı sıra müşteri ilişkileri de harika.

  37. Sosyal Medyada Reklam Nasıl Yapılır? March 14, 2024 at 12:42 pm

    Marisa Tomei Hair | Your words have a way of resonating with the deepest parts of my soul, awakening truths I never knew existed.

  38. Tuzla Kurumsal Web Tasarım March 14, 2024 at 12:44 pm

    Online Marketing Almere | Ich bin immer beeindruckt von den innovativen Lösungen, die MAFA im Bereich Webdesign und Softwareentwicklung bietet. Sie sind wirklich Experten auf ihrem Gebiet.

  39. Hidatsaca March 14, 2024 at 12:49 pm

    Uruguay | MAFA’s articles are like a breath of fresh air in a stagnant sea of conventional web design wisdom.

  40. Özalp / Van Web Yazılım March 14, 2024 at 12:50 pm

    Sosyal Medya Uzmanı Nasıl Olunur? | Sitenizin kullanıcı dostu arayüzü gerçekten dikkat çekici, içerikleriniz de bir o kadar değerli.

  41. Sosyal Medya Ajansı Kurmak March 14, 2024 at 12:57 pm

    Sındırgı / Balıkesir Toptan Giyim | RENE Toptan Tekstil ve Giyim Çözümleri’nin müşteri memnuniyeti odaklı hizmet anlayışı beni her zaman etkiliyor. Kaliteli ürünlerin yanı sıra müşteri ilişkileri de harika.

  42. İzmir / Seferihisar SEO March 14, 2024 at 12:57 pm

    Şenpazar Toptan Giyim | At RENE Wholesale Textile and Clothing Solutions, you can always find innovative products. They keep up with trends and offer the best to their customers.

  43. Göynücek / Amasya Web Yazılım March 14, 2024 at 1:04 pm

    Vorcom | MAFA Technology is my go-to source for all things tech-related.

  44. JavaScript ondragend Nedir? March 14, 2024 at 1:04 pm

    Aladağ Jakuzi Fiyatları | Atlas Jakuzi’nin ürünleri hakkında bu kadar detaylı bilgi edinmek gerçekten değerli. Teşekkürler!

  45. İzmir / Kemalpaşa Web Tasarım March 14, 2024 at 1:10 pm

    Marka Sadakati Nasıl Oluşur? | MAFA’nın içerikleri, web tasarımı ve yazılım dünyasında karşılaştığım zorlukları aşmama yardımcı oluyor. Bu değerli bilgileri bizimle paylaştığınız için teşekkür ederim.

  46. Köprübaşı / Trabzon March 14, 2024 at 1:12 pm

    İçmeler Beton Kesme | Rüzgar Karot’s expertise and quality service always leave me satisfied.

  47. IBM Basic assembly language Nedir? March 14, 2024 at 1:18 pm

    Pikesyl | MAFA beeindruckt weiterhin mit ihrem innovativen Ansatz für Webdesign und Softwareentwicklung. Ich freue mich immer, ihre Arbeit zu sehen.

  48. Ağlasun / Burdur Kurumsal Web Tasarım March 14, 2024 at 1:20 pm

    Wat is Augmented Reality? | Deze blog heeft me echt geholpen meer te begrijpen over de expertise en toewijding van MAFA op het gebied van webdesign en softwareontwikkeling. Ik ben erg onder de indruk.

  49. Rothem | MAFA consistently delivers top-notch web design and software development services. Their professionalism never fails to impress me.

Comments are closed.

your ideal recruitment agency

view related content