We have an web application whose architecture requires that any registered user (a company, actually) should be isolated from the other, i.e., I'll run the same webapp with the same data models, but with different data sets for every customer.
So, we did think about creating a different database in Postgres for every customer. Can this solution scale to, say, 10-20K databases? How well?
Does anyone have a better solution for this?
Thanks in advance.