How does REST ensure scalability and flexibility in API design?
- Statelessness → No server memory required for client sessions → Easy to scale
horizontally.
- Layered System → Load balancers, caching layers can be added without changing
API.
- Uniform Interface → Predictable, decouples client and server.
- Cacheability → Reduces server load.