Core Services Flashcards
1
Q
List all Main Core Services
A
- Contest Service
- Entry Service
- Winner Selection Service
- Notification Service
- Gateway Service
- User Assignment Service
- Data Archival Service
- Fraud Detection Service
2
Q
Components of Contest Service
A
- Contest Lifecycle Management ( draft, scheduled, closed, in_review, pending winner confirmation, winner_announced, finalized/archived, canceled )
- Contest Templates
- High Level Winner and Entry Management
- RBAC Integration ( view. vs. edit. vs full contest creation )
3
Q
Components of Entry Service
A
- Contest Data
- High-Concurrency Handling: Rate Limiting and load balancing, autoscaling
- Asyncronous Processing: Background low-latency complex calculations
4
Q
Components of Winner Selection Service
A
- Non-Time Critical Selection: Batch processing in a queuing system
- Immediate Selection: dedicated queue that prioritizes immediate winner determination, leverage caching and distributing processing
5
Q
Components of Notification System
A
- Multi-Channel Notification: SMS, in-app, email -> via Amazon SQS for high-throughput notification
- Dynamic Notification Preferences
- Automated Retry Logic
6
Q
Components of Gateway Layer
A
- Admin Authentication: MFA/2FA
- Contestant Authentication: Region-specific checks
- Session Management: Session Timeouts / Token Refresh Intervals
7
Q
Components of User Assignment Layer
A
- RBAC UI
- Activity Logging ( role changes/ admin activities for compliance and security audits )
8
Q
Components of Data Archival System
A
- Automated Archival: Scheduled Jobs move expired contest data to cost-efficient storage
- Date Retrieval Indexing: Archived data indexed for retrieval, supporting historical analytics, regulatory reviews, and/or AI predictive modeling
9
Q
Components of Fraud Detection System
A
- AI-Powered Detection: ML to detect behavioral anomalies ( sudden score jumps, IP Switching )
- Rule-Based System: Custom rules for exploit patterns
- Reputation Scoring: Continuous tracking of user behavior to build reputation profiles, which can dynamically adjust scrutiny levels
10
Q
List all Data Layer Services
A
- Relational Database ( PostreSQL )
- Sharding / Partition
- Data Archival
- Caching Service
11
Q
Components of Relational DB
A
- Schema
- ( Composite ) Indexing
12
Q
Components of Sharding / Partitioning
A
- Partition Strategy: Shard by user_id or contest_id
- Cross-Shard Data Access: Mechanism for limited cross-shard queries using aggregators or caching for high demand cross-region data
13
Q
Components for Data Archival
A
- Storage Policy: Archived data stored in S3 or BigQuery, indexed for retrieval and governed by retention policies ( ie. GDPR, anonymizing data, deleting after X time )
14
Q
Components of Caching Service
A
- Contest Data Caching: Cache active Contest and Contest Template data
- Cache Locking: Prevent cache stampedes with Redis locking or versioned caches
- Proactive Cache Warming: Cache upcoming high-traffic contests to reduce DB load
15
Q
List API Integration Services and Components
A
+ Fraud Detection API
- Rate Limiting and Fallbacks: Enforce throttling and define failover logic if the external API is unavailable
- Real-Time Alerts: Notify admins of flagged users or entries with detailed fraud reports