What is the difference between scalability and elasticity?

前端 未结 9 1073
春和景丽
春和景丽 2021-01-29 21:14

I\'ve heard many people using both terms interchangeably. However, in my opinion there is difference between them:

SCALABILITY - ability of a softwa

相关标签:
9条回答
  • 2021-01-29 21:56

    Usually, when someone says a platform or architectural scales, they mean that hardware costs increase linearly with demand. For example, if one server can handle 50 users, 2 servers can handle 100 users and 10 servers can handle 500 users. If every 1,000 users you get, you need 2x the amount of servers, then it can be said your design does not scale, as you would quickly run out of money as your user count grew.

    Elasticity is used to describe how well your architecture can adapt to workload in real time. For example, if you had one user logon every hour to your site, then you'd really only need one server to handle this. However, if all of a sudden, 50,000 users all logged on at once, can your architecture quickly (and possibly automatically) provision new web servers on the fly to handle this load? If so, it could be said that your design is elastic.

    0 讨论(0)
  • 2021-01-29 21:57

    Elasticity is the ability of a system to increase (or decrease) its compute, storage, netowrking, etc. capacity based on specified criteria such as the total load on the system.

    For example, you can implement a backend system that initially has 1 server in its cluster but configure it to add an extra instance to the cluster if the average per minute CPU utilization of all the servers in the cluster exceeds a given threshold (e.g. 70%).

    Similarly, you can configure your system to remove servers from the backend cluster if the load on the system decreases and the average per-minute CPU utilization goes below a threshold defined by you (e.g. 30%).

    As another example, you can configure your system to increase the total disk space of your backend cluster by an order of 2 if more than 80% of the total storage currently available to it is used. If for whatever reason, at a later point, data is deleted from the storage and, say, the total used storage goes below 20%, you can decrease the total available disk space to its original value.

    But some systems (e.g. legacy software) are not distributed and maybe they can only use 1 CPU core. So even though you can increase the compute capacity available to you on demand, the system cannot use this extra capacity in any shape or form. Such systems are not scalable. But a scalable system can use increased compute capacity and handle more load without impacting the overall performance of the system.

    A scalable system does not depend on elasticity though. Traditionally, IT departments could replace their existing servers with newer servers that had more CPUs, RAM, and storage and port the system to the new hardware to employ the extra compute capacity available to it.

    Cloud environments (AWS, Azure, Google Cloud, etc.) offer elasticity and some of their core services are also scalable out of the box. Furthermore, if you build a scalable software, you can deploy it to these cloud environments and benefit from the elastic infrastructure they provide you to automatically increase/decrease the compute resources available to you on-demand.

    0 讨论(0)
  • 2021-01-29 21:58

    _

    Scalability: "Increasing" the capacity to meet the "increasing" workload.

    Elasticity: "Increasing or reducing" the capacity to meet the "increasing or reducing" workload.


    Scalability: In a scaling environment, the available resources may exceed to meet the "future demands".

    Elasticity: In the elastic environment, the available resources match the "current demands" as closely as possible.


    Scalability: Scalability adapts only to the "workload increase" by "provisioning" the resources in an "incremental" manner.

    Elasticity: Elasticity adapts to both the "workload increase" as well as "workload decrease" by "provisioning and deprovisioning" resources in an "autonomic" manner.


    Scalability: Increasing workload is served with increasing the power of a single computer resource or with increasing the power by a group of computer resources.

    Elasticity: Varying workload is served with dynamic variations in the use of computer resources.


    Scalability: Scalability enables a corporate to meet expected demands for services with "long-term, strategic needs".

    Elasticity: Elasticity enables a corporate to meet unexpected changes in the demand for services with "short-term, tactical needs".


    Scalability: It is "increasing" the capacity to serve an environment where workload is increasing.

    This scalability could be "Scaling Up" or "Scaling Out".

    (Example:

    Scaling Up - increasing the ability of an individual server

    Scaling out - increasing the ability by adding multiple servers to the individual server.)

    Elasticity: It is the ability to "scale up or scale down" the capacity to serve at will.


    Scalability: To use a simile, "scaling up" is an individual increasing her power to meet the increasing demands, and "scaling out" is building a team to meet the increasing demands.

    Elasticity: To use a simile, a film actor increasing or reducing her body weight to meet differing needs of the film industry.

    _

    0 讨论(0)
  • 2021-01-29 22:03

    One picture is worth a thousand words. I found it in Fundamentals of Software Architecture: An Engineering Approach by Mark Richards and Neal Ford.

    0 讨论(0)
  • 2021-01-29 22:13

    Elasticity is related to short-term requirements of a service or an application and its variation but scalability supports long-term needs.

    0 讨论(0)
  • 2021-01-29 22:13

    Scalability handles the increase and decrease of resources according to the system's workload demands. So scalability does not have to be done automatically.

    Elasticity is the ability to automatically or dynamically increase or decrease the resources as needed. Elastic resources match the current needs and resources are added or removed automatically to meet future demands when it is needed.

    So in short ability of a system to handle Scalability automatically is elasticity

    0 讨论(0)
提交回复
热议问题