Answer the question
In order to leave comments, you need to log in
How can I duplicate an http request to another server when the first one fails?
How can I duplicate an http request to another server when the first one fails?
can eat an opportunity to make through dns?
Answer the question
In order to leave comments, you need to log in
Well, the easiest option is to make several A-records in DNS.
In theory, if the first ip is not available, the browser should turn to the next one.
As it is in reality, I do not know, I did not test it.
dns only resolves an IP address by domain name. As soon as the browser or operating system has received a response from the DNS server, it caches the response and does not access it again (a couple of minutes like). As a result, if everything fell on this IP, nothing can be done. You can only make a decision at the DNS server level based on the load on the server (a kind of load balancer at the DNS level).
A complex option and the most effective one is smart DNS, but in my opinion, they still haven’t come up with ready-made solutions so that they can take it, install it and work like that.
A simple option is to use AWS or raise your own load balancer (with the latter there is a very significant drawback - all traffic will go through it)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question