Horizontal Scaling:?
Short answer: Scaling Out: This involves adding more instances of a microservice to handle increased traffic or load.
Explain a bit more
Microservices are designed to scale horizontally because they are stateless and can run independently across multiple instances. Tools: Kubernetes, Docker Swarm, and Cloud Load Balancers (e.g., AWS ELB, Google Cloud Load Balancer) help automatically distribute traffic to the available instances. Example: If the Order Service is experiencing high demand, you can deploy more replicas of the service on different nodes in a Kubernetes cluster.
Say this in the interview
- Define — one clear sentence (the short answer above).
- Example — relate it to a project like ShopNest or your real work.
- Trade-off — when you would not use it.
Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png