Utilizing Database Reader Endpoints

The Tines application now supports the use of reader instances within your Database cluster. To ensure optimal performance, Tines optimizes queries directed to the primary writer instances. However, for enhanced efficiency, some queries are redirected to the reader instances where appropriate.

To enable this feature, you can set the DATABASE_READONLY_ENDPOINT environment variable to your reader cluster endpoint. After setting this variable, a new deployment or a restart of your containers is required for the changes to kick in.

This works with any setup that supports a reader instance in your Database cluster including AWS Fargate and AWS Aurora based setups.

Was this helpful?