Overview
Convex is a real-time backend platform that powers MemberPulse’s live features including real-time notifications, live dashboards, collaborative features, and instant data synchronization across all connected clients.Real-time Sync
Instant data updates across all clients
Serverless Functions
Backend logic without infrastructure
File Storage
Integrated file storage with CDN
Why Convex?
Prerequisites
Before configuring Convex:- Create a Convex account at convex.dev
- Install the Convex CLI:
npm install -g convex - Initialize your project:
npx convex dev
Configuration
Environment Variables
Acceptance Criteria
Frontend
- Environment Variables workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Environment Variables as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Platform Settings
Navigate to Admin Portal > Platform Settings > Integrations > ConvexAcceptance Criteria
Frontend
- Platform Settings workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Platform Settings as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Architecture
Data Flow
Acceptance Criteria
Frontend
- Data Flow workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Data Flow as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Hybrid Architecture
MemberPulse uses a hybrid architecture:Acceptance Criteria
Frontend
- Hybrid Architecture workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Hybrid Architecture as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Real-time Features
Live Notifications
Acceptance Criteria
Frontend
- Live Notifications workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Live Notifications as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Live Dashboard Metrics
Acceptance Criteria
Frontend
- Live Dashboard Metrics workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Live Dashboard Metrics as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Real-time Presence
Show who’s online and what they’re viewing:Acceptance Criteria
Frontend
- Real-time Presence workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Real-time Presence as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
File Storage
Uploading Files
Acceptance Criteria
Frontend
- Uploading Files workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Uploading Files as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Serving Files
Acceptance Criteria
Frontend
- Serving Files workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Serving Files as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Scheduled Functions
Cleanup Jobs
Acceptance Criteria
Frontend
- Cleanup Jobs workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Cleanup Jobs as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Webhooks to Symfony
Sync real-time data back to the main database:Schema Definition
Authentication
Convex integrates with your existing auth:Deployment
Development
Acceptance Criteria
Frontend
- Development workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Development as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Production
Acceptance Criteria
Frontend
- Production workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Production as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Environment Setup
Acceptance Criteria
Frontend
- Environment Setup workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Environment Setup as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Monitoring
Convex Dashboard
Access at dashboard.convex.dev:- Real-time function logs
- Database explorer
- Storage usage
- Performance metrics
- Error tracking
Acceptance Criteria
Frontend
- Convex Dashboard workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Convex Dashboard as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Metrics to Monitor
Acceptance Criteria
Frontend
- Metrics to Monitor workflow is implemented in the UI as described.
Backend / API
- Backend behavior supports Metrics to Monitor as documented.
Permissions
- Access is restricted per the Capabilities matrix on this page (or equivalent role rules).
Business Rules
- All business rules for this feature are enforced.
Error Handling
- Error states return clear messages and appropriate HTTP status codes.
Troubleshooting
Real-time updates not working
Real-time updates not working
- Verify
NEXT_PUBLIC_CONVEX_URLis correct - Check browser console for WebSocket errors
- Ensure user is authenticated
- Verify query is subscribed (not just called once)
File uploads failing
File uploads failing
- Check file size limits (default 20MB)
- Verify storage quota not exceeded
- Ensure
generateUploadUrlis called before upload - Check CORS configuration if uploading from browser
Functions timing out
Functions timing out
- Convex functions have 60-second timeout
- Break large operations into smaller chunks
- Use scheduled functions for long-running tasks
- Check for infinite loops in queries
Security
- All data encrypted at rest and in transit
- Row-level security via authentication
- Automatic input validation via schema
- Rate limiting built-in
- GDPR-compliant data handling
Features
Convex Integration
Acceptance Criteria
Frontend
- Developer-facing configuration and usage is documented and internally consistent.
Backend / API
- Convex implementation matches the rules and contracts described on this page.
Permissions
- Tenant scoping and access controls are enforced as described.
Business Rules
- Domain rules/invariants are enforced as described.
Error Handling
- Access violations and validation failures produce deterministic errors.