官术网_书友最值得收藏!

Availability

A highly available solution is the one that is fault tolerant to hardware failures. If one machine goes out, you must keep running the application with a satisfactory performance. If you lose an entire data center due to a power outage, you must have machines in another data center to keep the service online. Having high availability generally means to duplicate your entire infrastructure, placing each half in a different data center.

Highly available solutions are usually very expensive in IaaS and On-Premises. If you have multiple machines to handle your workload, placing them in different physical places and running a load balancing service can be enough. If one data center goes out, you keep the traffic in the remaining machines and scale to compensate. However, there are cases where you will pay extra without using those machines.

For example, if you have a huge relational database that is scaled vertically, you will end up paying for another expensive machine as a slave just to keep the availability. Even for NoSQL databases, if you set a MongoDB replica set in a consistent model, you will pay for instances that will act only as secondaries, without serving to alleviate read requests.

Instead of running idle machines, you can set them in a cold start state, meaning that the machine is prepared, but is off to reduce costs. However, if you run a website that sells products or services, you can lose customers even in small downtimes. A cold start for web servers can take a few minutes to recover, but needs several more minutes for databases.

Considering these scenarios, in serverless, you get high availability for free. The cost is already considered in what you pay to use.

Another aspect of availability is how to handle Distributed Denial of Service (DDoS) attacks. When you receive a huge load of requests in a very short time, how do you handle it? There are some tools and techniques that help mitigate the problem, for example, blacklisting IPs that go over a specific request rate, but before those tools start to work, you need to scale the solution, and it needs to scale really fast to prevent the availability from being compromised. In this, again, serverless has the best scaling speed.

主站蜘蛛池模板: 秦皇岛市| 青龙| 榆林市| 汤阴县| 女性| 雷波县| 镇原县| 灵璧县| 甘洛县| 轮台县| 长春市| 深圳市| 禹城市| 新密市| 乌拉特前旗| 涪陵区| 石狮市| 五家渠市| 辽阳县| 临江市| 松阳县| 普兰店市| 滁州市| 江都市| 淮阳县| 太谷县| 沂南县| 沁水县| 永靖县| 德保县| 桓台县| 富裕县| 黄龙县| 宝清县| 麻江县| 祁门县| 什邡市| 安徽省| 汝州市| 贵阳市| 卢湾区|