说框架“扩展良好"是什么意思? [英] What does it mean to say that a framework "scales well"?

查看:95
本文介绍了说框架“扩展良好"是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在阅读有关框架(.net,rails,django,spring等的ruby)的文章时,我一直看到这样的情况,所以缩放效果是否很好.

When reading about frameworks (.net. ruby on rails, django, spring, etc.), I keep seeing so and so does or doesn't scale well.

有人说框架很好地扩展"是什么意思,而说框架没有很好地扩展"是什么意思?

What does it mean when someone says that a framework "scales well" and what does it mean to say a framework "doesn't scale well"?

谢谢.

推荐答案

当您针对并发用户绘制一些资源使用情况(内存,时间,磁盘空间,网络带宽)时,您会得到一个描述应用程序在不同环境下工作方式的函数.比例因子.

When you plot some resource use (memory, time, disk space, network bandwidth) against concurrent users, you get a function that describes how the application works at different scale factors.

小规模-几个用户-使用一些资源.

Small-scale -- a few users -- uses a few resources.

大规模-大量用户-使用大量资源.

Large-scale -- a large number of users -- uses a large number of resources.

关键问题是缩放比例接近线性度吗?"如果线性扩展,那么为2,000个并发用户提供服务的成本是为1,000个用户提供服务的成本的2倍,为500个用户提供服务的成本的4倍.这是一个可扩展的工具/框架/语言/平台/操作系统.这是可以预测的,并且预测是线性的.

The critical question is "how close to linear is the scaling?" If it scales linearly, then serving 2,000 concurrent users costs 2 times as much as serving 1,000 users and 4 times as much as serving 500 users. This is a tool/framework/language/platform/os that scales well. It's predictable, and the prediction is linear.

如果它不能线性扩展,那么为4,000个用户提供服务所需的费用是为2,000个用户提供服务所需费用的1,000倍,而为2,000个用户提供服务所需的费用为提供500个用户所需费用的100倍.这没有很好地扩展.使用率上升时出了点问题;它看起来不可预测,也不是线性的.

If it does not scale linearly, then serving 4,000 users costs 1,000 times as much as serving 2,000 users which cost 100 times serving 500 users. This did not scale well. Something went wrong as usage went up; it does not appear predictable and it is not linear.

这篇关于说框架“扩展良好"是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆