Better HN
topnewbestaskshowjobs
Log inSign up

AppliedQuantum

-1 karma · joined Jul 10, 2024 (2y ago) · 3 submissions

Submissions

comment 2y ago · link · parent

I’m sure my former employer would have loved that.

But no, you don’t send two requests. You compare the calls as they are generated, but you only send one - from the production system. And then you clone the response for the tested system.

comment 2y ago · link · parent

Nothing’s stopping you from cloning those responses as well… Compare calls, clone responses.

comment 2y ago · link · parent

Or, one could test in production-parallel deployment. Clone all requests to a parallel test system, use the same production data for enrichment and validation for both, the current production system and the new one. And automatically compare the outputs from both systems for those fields that have to be the same between the systems, and test the expected changed outputs automatically.

Once there are no errors in the new system, you start switching over the systems in a controlled manner where the new system increasingly takes on the production role, and the old one still processes cloned requests for a while as a sanity check…

This way you don’t need an unrealistic staging environment, and you are not introducing any errors into production.

It worked more than 20 years ago when I architected this for a system that had to process 50M transactions every hour.