Fault injection deliberately introduces a failure in a test environment to reproduce behavior that is difficult to observe otherwise. In service-oriented systems, it can reveal how services respond when another service or its communication channel fails. section 12.3.1 section 12.4
A service mesh makes it possible to shape communication for an investigation:
- Configure a sidecar to disrupt communication and investigate how the system behaves. section 12.3.1
- Use mirroring instead to copy requests to a test replica for debugging and profiling without affecting production. section 12.4
Reproducing a disrupted connection
To investigate a production-like case where communication between two services is often disrupted, configure the service-mesh sidecar to force that scenario in a test environment. section 12.3.1
Figure 12.13 You can use the side cart app of a service mesh to force the system into scenarios you want to investigate. Say you want to replicate a production case in which the communication is often disrupted between two services. You can easily configure a service mesh side cart app to force the execution into such a scenario to allow you to investigate.
The figure illustrates how a service-mesh sidecar can force communication scenarios for investigation. section 12.3.1

