Skip to content

Implement database scaling with CloudNativePG and update documentation#11

Merged
bit-web24 merged 2 commits into
masterfrom
dev
Jun 28, 2026
Merged

Implement database scaling with CloudNativePG and update documentation#11
bit-web24 merged 2 commits into
masterfrom
dev

Conversation

@bit-web24

@bit-web24 bit-web24 commented Jun 28, 2026

Copy link
Copy Markdown
Owner

Project completed

- Deployed CloudNativePG Cluster CRDs (1 primary + 1 replica) for both auth and urls databases
- Updated Kubernetes ConfigMap with separate read-only (-ro) database URLs
- Initialised secondary connection pools in auth-service and url-service for read routing
- Routed pure SELECT endpoints (login, get_user_by_id, list_urls, resolve_short_code) to the read replica pools
- Updated Rust tests to inject mock read repositories
- Refactored k8s.sh deployment script to install CNPG operator and wait for Cluster readiness
- Generated secure production JWT secret
- Replace non-existent check.sh reference with real scripts
- Add cargo aliases (dev-auth, dev-urls, dev-consumer, test-auth, test-urls)
- Add Kubernetes section with k8s.sh subcommands, port-forward tips, and CNPG psql access
- Add Git Hooks section documenting pre-commit (cargo fmt) and pre-push (full CI) hooks
- Remove outdated api-test.sh reference
@bit-web24
bit-web24 merged commit e5001d6 into master Jun 28, 2026
5 checks passed
@bit-web24
bit-web24 deleted the dev branch June 28, 2026 14:38
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.

1 participant