Say I have a backend server for my MVVM website, which needs to communicate with a data processing server. If one server goes down, the other is supposed to know how to handle that (save the files it wants to transfer, and wait until the server comes back online, for example). However, I'm obviously not going to just trust that it works; I need some sort of regression testing.
Is there any way to imitate server failure/downtime, preferably without introducing any serious security issues?
I was thinking maybe a proxy between the two servers that could be manipulated to imitate downtime or communication errors. But I wouldn't know where to start with that.