Objective
I am creating a Proof of Concept multi-tenant system that will eventually run on RDS based on the following guide:
aws rds multi tenant data isolation
Summary
According to the aws article there are two ways to achieve this:
- Creating a database user per tenant
- using a runtime parameter on connection
Approach
I would like to explore option 2 fully before making any decisions. I can see that it is possible to pass runtime configuration parameters in the connection string based on this merge request and assume this is the Options parameter from the connection string parameters doc.
Questions
This leads me to the following questions:
- Will I be able to achieve this using the Options parameter?
- Will connection pooling work? and if so will it have the effect of pooling connections for a single tenant?