Micro Service Load Balancer
Been working on building micro services and I understand how scaling is aided through load balancers, the question is how can load balancers themselves be scaled, let's say a billion users for example they can't all go through same load balancer, so where can load balancers be scaled for users to connect to different load balancers per say, is that doable, or is the solution just a bigger load balancer
3 Replies
You want the short answer?
both are possible, since load balancers don't need to do much more than passing along a request you can scale vertically easier than other services but it is possible and in fact, often done, to scale horizontally
Now I'm not gonna sit here and pretend I understand how horizontal scaling works in load balancers because it relies heavily on networking knowledge, which means as a dev it's not really your job, that's why people just use premade solutions like AWS elastic load balancer, you're free to learn more about it tho just saying you don't really have to
On simple method of horizontal scaling is to have multiple DNS records for a given domain. For example:
Thanks šš¾
So it's that layer of balancing got it thank you