Skip to content

Closes #509 - #605

Merged
adenueltech merged 3 commits into
The-Engineer-Network:mainfrom
Ade-Pheebs:feature/replica-pool-routing
Oct 22, 2026
Merged

adenueltech merged 3 commits into
The-Engineer-Network:mainfrom
Ade-Pheebs:feature/replica-pool-routing

Conversation

@Ade-Pheebs

@Ade-Pheebs Ade-Pheebs commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Closes #509

What this changes

How it was tested

Checklist

  • npm run typecheck, npm test and npm run build pass (web app changes)
  • cargo fmt, cargo clippy -- -D warnings and cargo test pass (backend changes)
  • No secrets, keys or .env files are included
  • Money is handled as exact integers or decimal strings, never floating point
  • Lockfile changes are intentional and explained above

Ade-Pheebs and others added 3 commits October 22, 2026 03:21
- Add replica_database_url config option read from REPLICA_DATABASE_URL env var
- Add replica_database field to AppState
- Create DatabaseRouter struct with read_with_fallback and write_with_primary methods
- Update get_balances to use DatabaseRouter for replica-aware reads
- Write operations (transfers, deposits, etc.) always go to primary database

Co-Authored-By: Codebuff <noreply@codebuff.com>
…ion Act (closes The-Engineer-Network#499)

- Add GET /v1/export endpoint producing machine-readable JSON archive of user data
- Add POST /v1/deletion-request endpoint that anonymises personal data while keeping ledger history intact
- Ledger balances remain reconciled after deletion (append-only postings)
- Follows existing codebase patterns for formatting and authentication
@vercel

vercel Bot commented Oct 22, 2026

Copy link
Copy Markdown

@Ade-Pheebs is attempting to deploy a commit to the emmanuel adewunmi's projects Team on Vercel.

A member of the Team first needs to authorize it.

@adenueltech
adenueltech merged commit 9788e6c into The-Engineer-Network:main Oct 22, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Route read-only queries to a database replica

2 participants