Let's say you are making a website (something like Facebook). You write code, deploy it on servers, and increase servers as your load increases. These servers are behind a load-balancer and requests can pretty much go to any server, at random.
But let's say you are making something like Firebase. Now on firebase, you can create an application
, and you get a subdomain <app_name>.firebase.com
. While your server code is still the same for all the applications, but requests for app1.firebase.com
will go to dedicated set of servers, different from app2.firebase.com
. So, load from one app, can't affect another, as it should be.
How is something like Firebase designed, more specifically, in the interest of limiting the scope of question, how are requests routed to a particular set of hosts for each application
?