处理大客流量高并发数据通讯

It is often seen that one of the main benefits of the cloud is its perceived ability to handle high traffic websites in a way that dedicated servers would never be able to. Whilst dedicated servers can be clustered together to provide more power, in most cases this isn’t without its downtime, not to mention it being very time consuming and laborious as it requires somebody to place the server in the rack and network it at the data centre end. The benefit of the cloud is that virtual machines and resources can be called upon at short notice and remotely, letting you provision a new segment of your infrastructure in just a few clicks at any time of day. Whilst a dedicated server will have to have its OS installed from scratch, cloud virtual machines can be created from pre-developed templates and so are often available to use within just a few minutes.

经常看到的是,云的主要优点之一是其以专用服务器永远无法处理的方式处理高流量网站的能力。 尽管可以将专用服务器群集在一起以提供更多功能,但是在大多数情况下,这并非没有停机时间,更不用说这是非常耗时且费力的,因为它需要有人将服务器放在机架中并通过数据将其联网中心端。 云的好处是可以在短时间内远程调用虚拟机和资源,让您在一天中的任何时候都只需单击几下即可配置基础架构的新部分。 虽然必须从头开始安装专用服务器,但是可以从预先开发的模板创建云虚拟机,因此通常只需几分钟即可使用。

负载均衡 (Load balancing)

Much in the same way that you can create a load balancing cluster using dedicated servers, cloud virtual machines can be configured for the purpose of load balancing. Load balancing uses one server as the load balancer, which in turn distributes the traffic that it receives between the other servers in the cluster so that a single server never becomes overwhelmed with the load. As a concept, load balancing works very well because additional servers can be added to the cluster to cope with the load without affecting the servers that already form the environment. There are a number of cloud platforms available that let customers create virtualised load balanced clusters, providing them with another way in which they can virtualise their current physical infrastructure.

与使用专用服务器创建负载平衡群集的方式几乎相同,可以配置云虚拟机以实现负载平衡。 负载平衡使用一台服务器作为负载平衡器,该负载平衡器又在群集中的其他服务器之间分配它接收的流量,以使单个服务器永远不会被负载淹没。 从概念上讲,负载平衡非常有效,因为可以将其他服务器添加到群集中以应对负载,而不会影响已经形成环境的服务器。 有许多可用的云平台,可让客户创建虚拟化的负载平衡集群,从而为他们提供了另一种虚拟化其当前物理基础架构的方式。

自动缩放 (Automatic scaling)

A number of cloud platforms, such as eNlight, feature autoscaling. Autoscaling enables your virtual machine to receive additional resources from the cloud during peak times in order to deal with the extra traffic. Whilst you would normally have a set level of resources installed in a dedicated server for example, the resources allocated to a cloud virtual machine are flexible and therefore can be automatically adjusted to account for demand; this flexibility saves you money since you will only ever be paying for your actual resource consumption, not spare or redundant resources that you may have because these will be absorbed back into the cloud once they are no longer required. Where autoscaling is available, customers are often provided with the option to limit the amount of money that is billed to their account using this method, therefore preventing malicious attacks from running up large bills for the customer.

许多云平台(例如eNlight)具有自动缩放功能。 通过自动扩展,您的虚拟机可以在高峰时间从云中接收其他资源,以处理额外的流量。 例如,尽管通常在专用服务器上安装了一定级别的资源,但是分配给云虚拟机的资源是灵活的,因此可以自动调整以适应需求。 这种灵活性为您节省了金钱,因为您将只为实际的资源消耗付费,而不是为可能拥有的备用或冗余资源付费,因为一旦不再需要这些资源,它们就会被吸收到云中。 在具有自动缩放功能的情况下,通常会为客户提供使用此方法限制记入其帐户的金额的选项,从而防止恶意攻击为客户产生大量账单。

How you utilise the cloud for the hosting of your high traffic website is down to the individual requirements. A cloud load balancing configuration would be the best option for a long-term solution as it lets you add additional nodes over time, so that the traffic reaching your website can be served with consistently good performance. Autoscaling is a choice better suited to short-term issues, such as where load spikes occur; over time it could be costly to constantly rely on autoscaling and it may make more financial sense to consider a load balanced configuration or permanently upgrade the base resources of your virtual machines.

如何利用云来托管高流量网站取决于个人要求。 对于长期解决方案,云负载平衡配置将是最佳选择,因为它允许您随着时间的推移添加其他节点,从而可以始终如一地提供良好的性能来满足到达网站的流量。 自动缩放是一种更适合短期问题(例如出现负载峰值的地方)的选择。 随着时间的流逝,持续依靠自动扩展可能会花费很大,并且考虑负载平衡的配置或永久升级虚拟机的基础资源可能在财务上更有意义。

翻译自: https://www.eukhost.com/blog/webhosting/how-does-the-cloud-handle-high-traffic-websites/

处理大客流量高并发数据通讯

处理大客流量高并发数据通讯_云如何处理高流量网站?相关推荐

  1. java高并发多线程架构_《Java高并发编程详解-多线程架构与设计》线程安全与数据同步...

    定义 共享资源:多个线程对同一资源访问(读写) 线程安全:多个线程对同一资源访问的数据是一致的. Synchronized使用 同步方法 同步代码块 深入 synchronized关键字 p66-67 ...

  2. java高并发面试题目_列举Java高并发面试题附答案解析

    Java高并发面试题是程序员面试过程中的必修课,只有熟练掌握这些技术要点,在我们的学习中才会脱颖而出,在这里,达内石家庄Java培训老师作深入解答. Java并发面试题附答案 1. 什么是原子操作?在 ...

  3. libevent c++高并发网络编程_【多线程高并发编程】Callable源码分析

    程序猿学社的GitHub,欢迎Starhttps://github.com/ITfqyd/cxyxs 本文已记录到github,形成对应专题. 前言 通过上一章实现多线程有几种方式,我们已经了解多线程 ...

  4. TCP高并发数据转接服务器(Ntrip Caster)

    TCP高并发数据转接服务器(Ntrip Caster) 说到NTRIP Caster, 咱们需要首先链接一下什么是Ntrip协议由于这不是本博客的重点,故只做如下简单介绍,,大家可以通过如下链接对nt ...

  5. Spring Boot实战解决高并发数据入库: Redis 缓存+MySQL 批量入库

    前言 最近在做阅读类的业务,需要记录用户的PV,UV: 项目状况:前期尝试业务阶段: 特点: 快速实现(不需要做太重,满足初期推广运营即可) 快速投入市场去运营 收集用户的原始数据,三要素: 谁 在什 ...

  6. 猿创征文 | 微服务 Spring Boot 整合Redis 实战开发解决高并发数据缓存

    文章目录 一.什么是 缓存? ⛅为什么用缓存? ⚡如何使用缓存 二.实现一个商家缓存 ⌛环境搭建 ♨️核心源码 ✅测试接口 三.采用 微服务 Spring Boot 注解开启缓存 ✂️@CacheEn ...

  7. Spring Cloud Alibaba 分布式微服务高并发数据平台化(中台)思想+多租户saas企业开发架构技术选型和设计方案

    基于Spring Cloud Alibaba 分布式微服务高并发数据平台化(中台)思想+多租户saas设计的企业开发架构,支持源码二次开发.支持其他业务系统集成.集中式应用权限管理.支持拓展其他任意子 ...

  8. java设计高并发内存池_高并发服务器-连接池的设计

    高并发服务器-连接池的设计 高并发服务器需要有一些池的设计,如内存池,连接池,数据库连接池. 池(pool)的设计主要考虑到一些资源的频繁申请和释放,尤其是在高并发的服务器中,几万甚至几十万并发每秒, ...

  9. 高并发专题--5:关于redis高并发你晓得多少?

    关于redis高并发你晓得多少? 1.redis高并发跟整个系统的高并发之间的关系 2.redis不能支撑高并发的瓶颈在哪里? 3.如果redis要支撑超过10万+的并发,那应该怎么做? 4.redi ...

最新文章

  1. 盘点上班族和大学生都适用的8个赚外快的小方法 总有一个适合你
  2. 【跃迁之路】【451天】程序员高效学习方法论探索系列(实验阶段208-2018.05.02)...
  3. C++基础11-类和对象之操作符重载1
  4. 【BZOJ4566】找相同字符,后缀数组
  5. Linux /etc/rc.d 下面 rc${runlevel}.d rc.local init.d 区别
  6. hdu1711 Number Sequence kmp模板
  7. ajax 微信code获取_ajax实现微信网页授权登录
  8. 精益思想如何加速企业的全局价值流动?
  9. Adobe Premiere基础-常用的视频特效(裁剪,黑白,剪辑速度,镜像,镜头光晕)(十五)
  10. spss多元线性回归散点图_SPSS多元线性回归.pdf
  11. 悬浮窗java_Android悬浮窗示例(floatingwindow)
  12. 解决项目无法读取src/main/java目录下面的配置文件问题
  13. rar和unrar压缩解压
  14. 找出数组中的最大数和最小数
  15. 软考数据库详细知识点整理(全)
  16. 基于Gin开发的系统代码生成器
  17. HTML页面设计之导航栏
  18. object-position/object-fit
  19. 802.11成帧封装实现(五)
  20. 动态内存的申请和非动态内存的申请_非深户父母买社保就加分!深圳罗湖学位申请规则将调整!快算算你多少分...

热门文章

  1. 如何在朋友圈刷出宝马广告-互联网推荐系统
  2. 集全球之智:2019世界机器人大会在京开幕
  3. 学习Python数据可视化遇到的异常错误(ax.get_xlabel(“值“,fontsize=14)15发生异常TypeError×AxesBase.get_xlabel()got an unex)
  4. 乖离水机器人攻略_乖离性百万亚瑟王超弩幽蓝机器人攻略打法
  5. java 字节流设置编码方式_java字节流和字符流编码格式(转自姚刚)
  6. 沐风晓月个人博客折腾记: 从零开始加上漂亮的前端模板,轻松提升博客品味
  7. 一直激励自己的几句话
  8. 宝宝情商教育 小案例
  9. 一文了解 Text-to-SQL
  10. EXCEL不够用,VBA和Python又太难?那么试试这个工具吧