0% found this document useful (0 votes)
31 views9 pages

8 Scalability

Uploaded by

eric.r.xu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views9 pages

8 Scalability

Uploaded by

eric.r.xu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Non-functional requirements - Scalability

• requests per second


• volume of incoming or outgoing data
scalability •

number of concurrent connections
other…

the property of a system to handle a growing load


Non-functional requirements - Scalability

vertical scaling horizontal scaling


(scaling up) (scaling out)

more bigger more more


clients server clients servers

shared-nothing architecture
Non-functional requirements - Scalability

clients servers

horizontal scaling comes along with challenges

service discovery
load balancing
request routing
maintenance
Non-functional requirements - Scalability

I still think that every system must run on multiple It is possible to achieve high availability in a single machine
machines these days. It allows to have redundant (almost ☺) system. Relational databases and load
machines in the system. Thus, increases availability. balancers often use active/passive setup for this.

software
software engineer
engineer
Non-functional requirements - Scalability

horizontal and vertical scaling can be used in conjunction

server server server server server server server

scale horizontally then vertically then again horizontally


Non-functional requirements - Scalability

elasticity scalability
the ability of a system to acquire resources as it needs them,
and release resources when it no longer needs them
Non-functional requirements - Scalability
request
count

need 2N machines to handle day traffic

need N machines to handle night traffic

06 12 18 24 hour

machine
count
elasticity
2N
we grow or shrink infrastructure resources
over short time intervals to adapt to workload
N
changes

06 12 18 24 hour
Non-functional requirements - Scalability
request
count

2020 2021 year

machine
count
scalability
3N
we provision resources in incremental
manner over longer time intervals
N

2020 2021 year


Non-functional requirements - Scalability

scalability is required for elasticity


is about long-term, strategic needs is about short-term, tactical needs

You might also like