The essence of the problem is that if the server with the application falls, the requests will go to another, and the same problem with the servers mysql and redis.
- Server: To guarantee server fault tolerance, is it enough to buy 2 servers and register them for one domain?
- DB (Mysql): Make 2 masters to link to each other, and if one falls, will all requests go to another? And how to make the application itself know on which mysql / redis server to send requests, the same trick to do with the server?
Tell me how you can solve this problem?
Scheme:
