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

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.

主站蜘蛛池模板: 海宁市| 诏安县| 巴彦淖尔市| 洛扎县| 永和县| 邹平县| 宣汉县| 荔波县| 仁怀市| 隆昌县| 延津县| 北宁市| 左云县| 黄大仙区| 耿马| 威远县| 辉南县| 苗栗市| 高要市| 周宁县| 锡林郭勒盟| 股票| 武城县| 富平县| 兰西县| 汉中市| 武山县| 凤城市| 伊金霍洛旗| 建阳市| 社旗县| 天全县| 独山县| 呼图壁县| 兴化市| 周宁县| 句容市| 临清市| 塔河县| 香河县| 兴隆县|