Add siteId fields to all main tables, such as article table
Basically no other data is called, so why bother considering this issue? Just treat each website as a library, and treat all these countless sub-sites as completely unrelated websites. In the end, When there is really a data call, write the interface directly
There is an article on the Internet that specifically introduces how to expand Facebook. You are probably in the period of having a database now. The next step is probably to split tables, then to split databases, then to do clustering, and finally to synchronize across data centers.
You can also try some Nosql databases, followed by hadoop distributed design and so on.
siteId
fields to all main tables, such as article tableThere is an article on the Internet that specifically introduces how to expand Facebook. You are probably in the period of having a database now. The next step is probably to split tables, then to split databases, then to do clustering, and finally to synchronize across data centers.
You can also try some Nosql databases, followed by hadoop distributed design and so on.
At the beginning, it can be done in the same database and using separate tables.