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. canadian pharmacy meds April 14, 2024 at 5:56 pm - Reply

    [url=https://happyfamilystorerx.online/]canadian pharmacy without prescription[/url]

  2. Fitspresso review April 14, 2024 at 8:04 pm - Reply

    Good day! I could have sworn I’ve been to this site before but after checking through some of the post I realized it’s new to me. Nonetheless, I’m definitely glad I found it and I’ll be bookmarking and checking back frequently!

  3. tadalafil canadian pharmacy price April 14, 2024 at 8:53 pm - Reply

    [url=https://bmtadalafil.online/]tadalafil daily use[/url]

  4. Wfwiky April 14, 2024 at 10:15 pm - Reply

    depo-medrol brand name – order singulair 10mg generic order astelin 10ml nasal spray

  5. Davidjof April 14, 2024 at 11:53 pm - Reply
  6. can i order valtrex online April 15, 2024 at 12:05 am - Reply

    [url=http://valtrexmedication.online/]valtrex rx coupon[/url]

  7. WilliamRoosy April 15, 2024 at 2:14 am - Reply

    Услуга по сносу старых домов и вывозу мусора в Москве и Московской области. Мы предоставляем услуги по сносу старых зданий и удалению мусора на территории Москвы и Подмосковья. Услуга http://demontazh-doma-msk5.ru выполняется опытными специалистами в течение 24 часов после оформления заказа. Перед началом работ наш эксперт бесплатно приезжает на объект для оценки объёма работ и консультации. Чтобы получить дополнительную информацию и рассчитать стоимость услуг, свяжитесь с нами по телефону или оставьте заявку на сайте компании.

  8. valtrex without a prescription April 15, 2024 at 3:33 am - Reply

    [url=https://valtrexid.com/]buy generic valtrex online cheap[/url]

  9. WilliamRoosy April 15, 2024 at 4:32 am - Reply

    Услуга по сносу старых домов и вывозу мусора в Москве и Московской области. Мы предоставляем услуги по сносу старых зданий и удалению мусора на территории Москвы и Подмосковья. Услуга снос фундамента выполняется опытными специалистами в течение 24 часов после оформления заказа. Перед началом работ наш эксперт бесплатно приезжает на объект для оценки объёма работ и консультации. Чтобы получить дополнительную информацию и рассчитать стоимость услуг, свяжитесь с нами по телефону или оставьте заявку на сайте компании.

  10. WilliamRoosy April 15, 2024 at 4:48 am - Reply

    Услуга по сносу старых домов и вывозу мусора в Москве и Московской области. Мы предоставляем услуги по сносу старых зданий и удалению мусора на территории Москвы и Подмосковья. Услуга демонтаж и вывоз мусора цена выполняется опытными специалистами в течение 24 часов после оформления заказа. Перед началом работ наш эксперт бесплатно приезжает на объект для оценки объёма работ и консультации. Чтобы получить дополнительную информацию и рассчитать стоимость услуг, свяжитесь с нами по телефону или оставьте заявку на сайте компании.

  11. Aero slim review April 15, 2024 at 5:26 am - Reply

    Wonderful beat ! I would like to apprentice while you amend your site, how can i subscribe for a weblog web site? The account aided me a appropriate deal. I have been tiny bit acquainted of this your broadcast offered vivid transparent concept

  12. tadalafil online paypal April 15, 2024 at 7:45 am - Reply

    [url=https://tadalafilgf.com/]cialis online mastercard[/url]

  13. Michaeltetle April 15, 2024 at 12:21 pm - Reply

    Услуга по сносу старых домов и утилизации мусора в Москве и Московской области. Мы предлагаем услуги по сносу старых построек и удалению отходов на территории Москвы и Московской области. Услуга снести дом предоставляется опытными специалистами в течение 24 часов после оформления заказа. Перед началом работ наш эксперт бесплатно посещает объект для определения объёма работ и предоставления консультаций. Чтобы получить дополнительную информацию и рассчитать стоимость услуг, свяжитесь с нами по телефону или оставьте заявку на веб-сайте компании.

  14. valtrex price without insurance April 15, 2024 at 12:58 pm - Reply

    [url=https://valtrexmedication.com/]buy valtrex[/url]

  15. kondicione_iqpi April 15, 2024 at 5:06 pm - Reply

    системы кондиционирования [url=https://multisplit-sistemy-kondicionirovaniya.ru/]https://multisplit-sistemy-kondicionirovaniya.ru/[/url] .

  16. RussellCet April 15, 2024 at 7:25 pm - Reply

    Услуга по сносу старых зданий и утилизации отходов в Москве и Московской области. Мы предоставляем услуги по сносу старых сооружений и удалению мусора на территории Москвы и Московской области. Услуга сломать дом выполняется квалифицированными специалистами в течение 24 часов после оформления заказа. Перед началом работ наш эксперт бесплатно посещает объект для определения объёма работ и предоставления консультаций. Чтобы получить дополнительную информацию и рассчитать стоимость услуг, свяжитесь с нами по телефону или оставьте заявку на сайте компании.

  17. RussellCet April 15, 2024 at 7:30 pm - Reply

    Услуга по сносу старых зданий и утилизации отходов в Москве и Московской области. Мы предоставляем услуги по сносу старых сооружений и удалению мусора на территории Москвы и Московской области. Услуга http://demontazh-doma-msk8.ru выполняется квалифицированными специалистами в течение 24 часов после оформления заказа. Перед началом работ наш эксперт бесплатно посещает объект для определения объёма работ и предоставления консультаций. Чтобы получить дополнительную информацию и рассчитать стоимость услуг, свяжитесь с нами по телефону или оставьте заявку на сайте компании.

  18. valtrex tablets for sale April 15, 2024 at 9:19 pm - Reply

    [url=http://valtrexbt.online/]buy valtrex without a prescription[/url]

  19. RussellCet April 15, 2024 at 10:04 pm - Reply

    Услуга по сносу старых зданий и утилизации отходов в Москве и Московской области. Мы предоставляем услуги по сносу старых сооружений и удалению мусора на территории Москвы и Московской области. Услуга демонтаж домов в московской области выполняется квалифицированными специалистами в течение 24 часов после оформления заказа. Перед началом работ наш эксперт бесплатно посещает объект для определения объёма работ и предоставления консультаций. Чтобы получить дополнительную информацию и рассчитать стоимость услуг, свяжитесь с нами по телефону или оставьте заявку на сайте компании.

  20. no prescription required pharmacy April 15, 2024 at 10:29 pm - Reply

    [url=http://happyfamilystorerx.online/]online pharmacy dubai[/url]

  21. what does niksen mean April 15, 2024 at 11:25 pm - Reply

    Heya! I’m at work surfing around your blog from my new iphone! Just wanted to say I love reading your blog and look forward to all your posts! Keep up the superb work!

  22. happy family pharmacy discount code April 16, 2024 at 12:39 am - Reply

    [url=https://happyfamilystorerx.online/]pharmacy order online[/url]

  23. Michaeltum April 16, 2024 at 12:40 am - Reply
  24. prednisone 40 mg April 16, 2024 at 3:14 am - Reply

    [url=https://prednisonekx.online/]prednisone 50 mg buy[/url]

  25. buy prednisone with paypal canada April 16, 2024 at 4:08 am - Reply

    [url=http://prednisonecsr.com/]purchase prednisone online[/url]

  26. [url=http://prednisoneiv.online/]prednisone 5mg[/url]

  27. how to get prednisone online April 16, 2024 at 6:52 am - Reply

    [url=https://prednisoneo.com/]prednisone 5mg cost[/url]

  28. zestril brand name April 16, 2024 at 9:59 am - Reply

    [url=http://lisinoprilgp.com/]lisinopril without prescription[/url]

  29. buy lisinopril 40 mg tablet April 16, 2024 at 11:17 am - Reply

    [url=https://olisinopril.online/]zestril 40 mg tablet[/url]

  30. USA_ol April 16, 2024 at 2:44 pm - Reply

    [url=https://fabrika-teplic.ru]Теплицы н новгород купить[/url].
    [url=https://fabrika-teplic.ru/]Уральские теплицы[/url].
    [url=https://fabrika-teplic.ru/#1]Стоимость теплицы[/url].
    [url=https://fabrika-teplic.ru/#2]Теплица с доставкой от производителя цена[/url].
    [url=https://fabrika-teplic.ru/#3]Качественные теплицы[/url].
    [url=https://fabrika-teplic.ru/#4]Теплицу купить[/url].

  31. Mesgkd April 16, 2024 at 2:55 pm - Reply

    buy clarinex tablets – ketotifen 1 mg pills albuterol pills

  32. online valtrex April 16, 2024 at 3:22 pm - Reply

    [url=http://valtrexarb.online/]generic valtrex 1000mg for sale[/url]

  33. taktichn__fuKl April 16, 2024 at 4:51 pm - Reply

    Інноваційні технології в тактичних кросівках
    купити кросівки тактичні літні [url=https://vijskovikrosivkifvgh.kiev.ua/]https://vijskovikrosivkifvgh.kiev.ua/[/url] .

  34. synthroid pill 88mg April 16, 2024 at 9:48 pm - Reply

    [url=http://synthroidotp.online/]synthroid online without prescription[/url]

  35. synthroid 137 coupon April 16, 2024 at 10:31 pm - Reply

    [url=https://synthroidx.online/]synthroid pills for sale[/url]

  36. tadalafil 5mg price india April 16, 2024 at 10:59 pm - Reply

    [url=https://tadalafilgf.com/]cost daily cialis[/url]

  37. pharmacy delivery April 16, 2024 at 11:24 pm - Reply

    [url=http://pharmgf.online/]online pharmacy search[/url]

  38. prednisone 10 April 16, 2024 at 11:57 pm - Reply

    [url=http://prednisoneo.online/]200 mg prednisone[/url]

  39. pharmacy drugs April 17, 2024 at 1:47 am - Reply

    [url=https://pharmgf.online/]canada pharmacy not requiring prescription[/url]

  40. prednisone no rx April 17, 2024 at 7:25 am - Reply

    [url=http://prednisonecsr.com/]prednisone pills for sale[/url]

  41. Lrttda April 17, 2024 at 8:40 am - Reply

    glycomet 1000mg cheap – buy generic sitagliptin 100 mg buy cheap acarbose

  42. price of metformin 500 mg April 17, 2024 at 1:02 pm - Reply

    [url=http://metoformin.online/]buy metformin 500 mg online[/url]

  43. herd mentality bias April 17, 2024 at 1:41 pm - Reply

    Very interesting information!Perfect just what I was searching for!

  44. LarryFak April 17, 2024 at 1:50 pm - Reply

    PBN sites
    We’ll create a network of self-owned blog network sites!

    Merits of our PBN network:

    We perform everything SO THAT google does not understand that this is A PBN network!!!

    1- We acquire domain names from various registrars

    2- The principal site is hosted on a VPS server (VPS is fast hosting)

    3- Additional sites are on different hostings

    4- We attribute a separate Google account to each site with confirmation in Search Console.

    5- We make websites on WordPress, we do not utilise plugins with the help of which malware penetrate and through which pages on your websites are established.

    6- We do not repeat templates and employ only exclusive text and pictures

    We refrain from work with website design; the client, if wanted, can then edit the websites to suit his wishes

  45. prednisone pill cost April 17, 2024 at 2:22 pm - Reply

    [url=http://oprednisone.com/]prednisone online sale[/url]

  46. order valtrex canada April 17, 2024 at 3:50 pm - Reply

    [url=https://valtrexid.com/]otc valtrex for sale[/url]

  47. tadalafil 20 mg tablet cost April 17, 2024 at 4:38 pm - Reply

    [url=https://bmtadalafil.online/]10 mg tadalafil tablets[/url]

  48. kupit_ebel April 17, 2024 at 6:12 pm - Reply

    Только проверенные бренды
    – Кран для кухни с душем: выбор и покупка
    кран шаровой это [url=https://krany-sharovye-nerzhaveyushie-msk.ru/]https://krany-sharovye-nerzhaveyushie-msk.ru/[/url] .

  49. tops pharmacy April 17, 2024 at 9:52 pm - Reply

    [url=https://bestmedsx.online/]online pharmacy discount code 2018[/url]

Leave A Comment

your ideal recruitment agency

view related content