Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database Replication #71

Closed
IMperiumX opened this issue Feb 14, 2025 · 0 comments · Fixed by #77
Closed

Database Replication #71

IMperiumX opened this issue Feb 14, 2025 · 0 comments · Fixed by #77
Assignees

Comments

@IMperiumX
Copy link
Owner

Configure PostgreSQL for replication (consult the database's documentation).
This is typically done outside of Django itself.

Django has built-in support for using read replicas

  • define multiple database connections in your settings.py
  • use a database router to direct read queries to replicas.

Caution

  • Be aware of potential replication lag (the delay between when a write
    occurs on the primary database and when it's available on the replicas). This can lead
    to stale reads.
  • Ensure you have proper connection pooling to avoid exhausting database connections.
@IMperiumX IMperiumX self-assigned this Feb 22, 2025
@IMperiumX IMperiumX added this to Aura Feb 22, 2025
@IMperiumX IMperiumX linked a pull request Feb 22, 2025 that will close this issue
@IMperiumX IMperiumX moved this to Done in Aura Feb 22, 2025
@IMperiumX IMperiumX closed this as completed by moving to Done in Aura Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant