The exchange is like others. As far as I understand (I am trying to get to know about it exactly)
- Load balancing : to distribute traffic
- Distributed server : to distribute each program such as mysql and bitcoind to servers to prevent the whole exchange from attacks.
For example, normally the whole exchange is installed in one server. In the distributed server, mysql is installed in one server(ec2) and bitcoind is installed in another server(ec2). When there is an attack the target is only one server (where mysql or bitcoind) the hacker can't take all information but only take data on the targeted server. Am I misunderstanding the concept?
I guess you could call it that, but I have never heard the term "distributed server" in the context of websites. I have only heard it used for distributed computing which is completely different.
I suppose you could do that, but there is no "standard" way to set up an exchange like that. Ideally the servers would be behind a firewall and be completely internal so they would not be able to be accessed from outside. That prevents attacks against those internal servers where stuff actually matters.
And also if my understanding is wrong what is the difference between load balancing and ddos protection by Cloudflare?
Many thanks for your advice!
Those are two completely different things. Load balancing is to spread the load across multiple servers, ddos protection is a reverse proxy. Instead of your server taking the load of a ddos attack, the reverse proxy server does and it has the necessary setup to deal with such an attack. Reverse proxies also have the benefit of hiding the real ip address of a server.