Horizontal scaling means running multiple instances of a Spring MVC application behind a load balancer to handle more traffic, rather than making a single instance bigger. Doing this successfully requires the application to be designed so any instance can handle any request.
An e-commerce app under Black Friday load might run ten identical Spring Boot instances behind a load balancer, with Spring Session backed by Redis so a user's cart survives even if their next request hits a different instance.
A concise interview answer is
To scale horizontally, I'd run multiple stateless instances behind a load balancer, moving session state to something like Redis via Spring Session so any instance can serve any request. From there, the database usually becomes the next bottleneck, so I'd look at read replicas, caching, or eventually splitting the app into independently scalable services.
Last updated: 16 July 2026
Previous question: What are the strategies for asynchronous processing in Spring MVC?