3 ms·
One thing I wonder (and find difficult to simulate) are failures in external services. Sure you can unit test your function with a 500 for example, but you neve
by raverbashing 6y ago
One thing I wonder (and find difficult to simulate) are failures in external services. Sure you can unit test your function with a 500 for example, but you never know in which ways the function/library can fail
(Not to mention the cases where it says everything worked but it didn't)
- neo01124 6y agoThe article does talks about how to inject latency or packet-loss into calls to particular external services. This should help you test many service->dependency failure scenarios around retries, timeouts and circuit-breakers. Injecting specific error codes or exceptions is a bit more complicated but it is possible with other approaches, for example: Chaos toolkit.