🚀 2025 Performance!
Redis 7.2 with Enhanced I/O provides 72% better throughput. All configurable through AWS Console!
Redis 7.2 with Enhanced I/O provides 72% better throughput. All configurable through AWS Console!
Prerequisites
- Phase 1 completed (VPC and Security Groups created)
- Phase 2 completed (Backend deployed)
- Supabase account created
- AWS Console access
Step 1: Supabase Production Setup
What is Supabase?
Supabase is an open-source Firebase alternative providing PostgreSQL database, authentication, storage, and real-time subscriptions.
Supabase is an open-source Firebase alternative providing PostgreSQL database, authentication, storage, and real-time subscriptions.
1.1
Upgrade to Production Plan
-
1Log in to Supabase Dashboard
-
2Select your project
-
3Click "Settings" (gear icon) in left sidebar
-
4Click "Billing"
-
5Click "Upgrade to Pro"Pro plan: $25/month - includes daily backups, high availability
-
6Enter payment information
-
7Click "Confirm upgrade"
1.2
Enable Connection Pooling
-
1Click "Settings" → "Database"
-
2Scroll to "Connection pooling" section
-
3Mode: Select TransactionBest for most applications
-
4Copy the "Connection string"Note: Use port 6543 for pooled connections
Why Connection Pooling?
Connection pooling reuses database connections, reducing overhead and improving performance by up to 10x for high-traffic applications.
1.3
Configure Automated Backups
-
1Click "Database" in left sidebar
-
2Click "Backups" tab
-
3Verify "Daily backups" is enabledEnabled by default on Pro plan
-
4Retention: 7 days
-
5Click "Create backup now" to test
Step 2: Create ElastiCache Redis Cluster
⚠️ 2025 Update!
Use Redis 7.2+ with Enhanced I/O for 72% better throughput. Select instance types with 4+ vCPUs (r7g.large or larger).
Use Redis 7.2+ with Enhanced I/O for 72% better throughput. Select instance types with 4+ vCPUs (r7g.large or larger).
2.1
Navigate to ElastiCache
AWS Console Navigation
AWS Console
→
Search "ElastiCache"
→
Click "ElastiCache"
2.2
Create Redis Cluster
-
1Click "Get started" or "Create"
-
2Choose cluster creation method: Easy createEasier for beginners, or choose "Cluster cache" for more control
-
3Cluster mode: EnabledBetter for horizontal scaling
-
4Cluster info:
| Setting | Value |
|---|---|
| Name | helium-production-redis |
| Description | Production Redis cache for Helium |
| Engine | Redis |
| Engine version | 7.2 (latest) |
| Port | 6379 (default) |
| Parameter group | default.redis7.cluster.on |
| Node type | cache.r7g.large (Graviton3, 4+ vCPUs) |
| Number of shards | 2 |
| Replicas per shard | 1 (for Multi-AZ) |
-
5Scroll to "Subnet group settings"
-
6Click "Create new subnet group"
-
7Name: helium-redis-subnet-group
-
8VPC: Select helium-production-vpc
-
9Subnets: Select your isolated subnets (10.0.20.0/24, 10.0.21.0/24)
-
10Click "Create"
2.3
Configure Security Settings
-
1Scroll to "Security" section
-
2Security groups: Select helium-elasticache-sg
-
3Encryption at rest: Enabled
-
4Encryption in transit: Enabled
-
5Auth token: Leave empty (or set if needed)
2.4
Configure Backup Settings
-
1Scroll to "Backup" section
-
2Enable automatic backups: Yes
-
3Backup retention period: 7 days
-
4Backup window: 03:00-05:00 UTCChoose low-traffic hours
2.5
Add Tags and Create
-
1Scroll to "Tags" section
-
2Add tags:
| Key | Value |
|---|---|
| Project | helium |
| Environment | production |
| ManagedBy | console |
-
3Review all settings
-
4Click "Create"⏳ Cluster creation takes 10-15 minutes
☕ Take a Break!
While the cluster is being created, you can grab a coffee. AWS will show a progress indicator.
While the cluster is being created, you can grab a coffee. AWS will show a progress indicator.
2.6
Get Redis Endpoint
-
1Wait for cluster status to show Available
-
2Click on your cluster name
-
3Copy the "Configuration endpoint"Example: helium-production-redis.abc123.clustercfg.use1.cache.amazonaws.com:6379
-
4Save this endpoint - you'll need it for backend configuration
Step 3: Update Backend with Redis Endpoint
3.1
Update Secrets Manager
AWS Console Navigation
AWS Console
→
Search "Secrets Manager"
→
Click "Secrets Manager"
-
1Find your secret: helium/backend/production
-
2Click on the secret name
-
3Click "Retrieve secret value"
-
4Click "Edit"
-
5Update REDIS_HOST with your ElastiCache endpoint
-
6Click "Save"
3.2
Force New ECS Deployment
AWS Console Navigation
AWS Console
→
Search "ECS"
→
Clusters
→
helium-production-cluster
-
1Click on helium-backend-service
-
2Click "Update service"
-
3Check "Force new deployment"
-
4Click "Update"This will restart tasks with new Redis configuration
✅ Redis Connected! Your backend will now use ElastiCache for caching and session management.
Phase 4 Verification Checklist
- Supabase upgraded to Pro plan
- Connection pooling enabled
- Daily backups configured
- ElastiCache Redis cluster created
- Redis 7.2+ with Enhanced I/O
- Cluster mode enabled
- Multi-AZ with replicas
- Encryption at rest enabled
- Encryption in transit enabled
- Subnet group configured
- Security group attached
- Automatic backups enabled
- Redis endpoint copied
- Secrets Manager updated
- Backend redeployed with new config
- Application using Redis successfully
✅ Phase 4 Complete! Your data and cache layers are configured. Ready for Phase 5!