Scaling
Vertical Scaling
- When the traffic is low
- Has a hard limit, since impossible to add unlimited CPT and memories to a single server
- Does not have failover and redundancy
Horizontal Scaling
Disadvantages
- Introduce the complexity of cloning the server
- Servers should be stateless (no user-related data like sessions)
- Session can be stored in a centralised data store such as a database or persistent cache
- Downstream infrastructures like caches and databases need to handle more simultaneous connections