January 2020
Intermediate to advanced
640 pages
16h 56m
English
That's not to say that you cannot actually run your functional tests in a live production environment! Surely whether that's a good or bad idea is a debatable point, but if you do decide to go down that route, there are a few patterns that you can apply to achieve this in a safe and controlled way.
To get the ball rolling, you can begin by revising your DB schemas so that they include a field that indicates whether each row contains real data or is part of a test run. Each service could then silently ignore any test records when it handles live traffic.
If you are working with a microservice architecture, you can engineer your services so that they do not talk to other services directly ...