Re:Nile, Serverless Postgres for Modern SaaS
by theturtletalks on Wednesday October 25, 2023 @02:36PM
(#38016518)
Makes sense, but if you're doing multi-tenancy, why not deploy a postgres database for each user so co-mingling is not even possible? That would make on-prem deployments easier to migrate to as well.
[ Parent
| on HN ]
Re:Nile, Serverless Postgres for Modern SaaS
by randlet on Wednesday October 25, 2023 @02:51PM
(#38016737)
> why not deploy a postgres database for each user so co-mingling is not even possible
This is the approach we took and I think it helps with IT review docs.
Re:Nile, Serverless Postgres for Modern SaaS
by infra_dev on Wednesday October 25, 2023 @03:31PM
(#38017173)
Nile lets you do this without incurring the operational complexity of managing multiple databases. We let you place the virtual tenant DB either on one multitenant Postgres DB or a dedicated Postgres. So, you can actually create a dedicated one for each of your tenant in Nile but interact with them like a single Postgres instance. We take care of schema updates across them, client-side routing and metadata management
Re:Nile, Serverless Postgres for Modern SaaS
by randlet on Wednesday October 25, 2023 @04:01PM
(#38017527)
> We let you place the virtual tenant DB either on one multitenant Postgres DB or a dedicated Postgres.
Sounds promising, but by "a dedicated Postgres." do you mean a different server or just a different db on the same server? I'm trying to get at how the cost would change between the two solutions. Right now we can run N databases on the same Postgres server for roughly the same cost as running a single multitenant db. Switching to "server per customer" seems like it would be cost prohibitive.
Re:Nile, Serverless Postgres for Modern SaaS
by infra_dev on Wednesday October 25, 2023 @04:21PM
(#38017816)
We are going to support a database in the same server initially but could also provide dedicated server in the future. The nice thing about Nile's design is that we can provide different placements for different cost profiles with the developer experience of a single Postgres instance.