What is the best practice approach to apply a read/write pattern to database access?
I am looking for the following properties:
- Ability to ALWAYS Write to Database on Connection A, Sometimes Read from Database on Instance B
- Reads will be determined on a DTO Basis whether to read from A or B.
- Want to leave the option in play to establish caches at some point
- Needs to be enforced server side, not during client connection.
I’m currently working through the multitenancy documentation:
http://docs.servicestack.net/multitenancy
Just wondering if there are any further recommendations based on these requirements.
I guess best approach may be to use NamedConnections ?