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

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.

主站蜘蛛池模板: 余庆县| 湄潭县| 河曲县| 蓬安县| 华池县| 无为县| 宿迁市| 阿荣旗| 绩溪县| 高平市| 景宁| 康乐县| 宣威市| 乌拉特后旗| 红原县| 碌曲县| 肥乡县| 武夷山市| 科尔| 准格尔旗| 齐河县| 三穗县| 固原市| 太原市| 武定县| 尉犁县| 出国| 尉犁县| 叙永县| 习水县| 安多县| 开江县| 子洲县| 城步| 钟祥市| 湖北省| 东平县| 盖州市| 鞍山市| 东莞市| 扬中市|