There are millions of website around, but how the big website's background storage works? Like Slack? Anyone can create an unique workspace in Slack, and it will provide you a fresh installation/environment to user. But question is how it stores data into backend?
Does it create a separate database for each workspace?
if yes, say there are 500 millions workspace users are there, so there are 500 millions database there? Does hosting company allows that? What is the limit?
if no, how it separate the data? Say there is a "users" or "orders" table, which generate user id or order id. How different workspace users get same user id or order id? If all workspace data stores into same database, how we can get specific workspace data or connect to it?
-Is there any feature in Database for this type of data segmentations?
Please help.
My current thought is that, we need to create multiple database for each workspace. But I am not sure if this a feasible solution. I am seeking if there is any feature in Database which allows me to segment the workspace data to save and retrieve.