by Existenceblinks · 3y ago · 0 comments
Sounds good but I'm curious what's criteria (need) to architect like this in the first place.
I've run large numbers of Postgres databases, and it's not hard to automate, but it's hard to optimise for a setup where the usage patterns of individual databases are hard to estimate. Is your customer using it for batch jobs, or for persistent streams of data? Who can you colocate with whom? When the cost of shutting a database down one place and migrating it elsewhere becomes very low, this kind of scenario can potentially become a lot easier.
In terms of from the user perspective, I'd expect you really wouldn't care, other than in terms of cold start times and cost. Except perhaps for batch jobs etc., where being able to write apps that checks state, obtains a lease, downloads the most recent version does it's job and uploads the result to durable storage might well be convenient rather than having to e.g. keep a bunch of databases constantly running.
Is this one.db per customer? If so, how do you deal with schema migration?
But consider that for setups like this the database might well be the customers own database, so their schema might not be something it's your job to touch at all.