you should test in production

preview_player
Показать описание
A controversial developer opinion (rare I know). But I honestly believe testing in production can be a good thing.

Obviously you should always test changes locally before checking them in, and this won't work for many cases. Like any changes to builds, infra or database migration. But feature toggles are an amazing, simple and underutilized tool in software engineering.
Рекомендации по теме
Комментарии
Автор

I would not call it a test if you are affecting real users, call it experimenting :)

sebastian-zejt
Автор

But how do you test the “feature toggle” feature? 😅

TimSchraepen
Автор

Couldn't agree more! This is how I've been deploying for years now.

Would be interested to hear what kind of telemetry do you monitor to ensure that everything is working properly

AppleKnowsBetter
Автор

I actually do this on one of the projects I work on. Saved me from lots of headaches regarding possible issues

sovietwarmachine
Автор

well, i test in production but locally :). we restore our saas product locally with docker, even databases are restored from backups. the whole solution consiste of different services and all will work locally after you run a script. but you need at least 32gb of RAM in windows. but currently it's the best. even debug production locally is possible

antoniocanzanella
Автор

This is how we do it at my Big Tech company.

youngKOkid
Автор

What about e2e tests? Do they also run on prod using the feature toggle?

wtho
Автор

Sounds perfect and has balls. Let’s do it

Mugruokgt
Автор

Oh so this is how instagram rolls out features

emmanuelpeter
Автор

Blue-green deployments, route traffic 10/90 with low going to new stuff, have test user go to the new app all the time when deploying, slowly shift to new code the user base, and if your prod is very sensitive and you need minimal downtime if shit hits the fan have extremely prod like SIT test environment where you rehearse deploy-revert-roll forward, and for the love of God, get good QA, you want tests to actually test stuff rather than "assert response 200"

Sviestux
Автор

If you use kotlin you don't release bugs 😂😂😂

captainnoyaux