An esports platform manages live matchmaking lobby states and real-time player leaderboards using an Amazon RDS for MySQL Multi-AZ DB instance. During high-concurrency tournament events, the database experiences severe write contention and lock waits on the lobby tables, causing API response times to exceed 5 seconds and dropping active player sessions. The lobby state data is updated frequently, requires sub-millisecond read/write latency, and must remain available across Availability Zones with automatic failover to prevent tournament disruption. The platform also requires advanced sorting capabilities to compute real-time leaderboards.
Which architectural modification most efficiently addresses these performance and availability requirements?
- ADeploy an Amazon ElastiCache for Memcached cluster with nodes distributed across multiple Availability Zones. Configure the application to write lobby updates to Memcached and read leaderboard queries from the cache.
- Migrate the matchmaking lobby state and leaderboard data to an Amazon ElastiCache for Redis cluster running in a multi-node replication group with Multi-AZ enabled. Use Redis sorted sets for the leaderboard sorting.Cevap
- CDeploy an Amazon RDS Multi-AZ DB instance and configure the application to split read and write queries, routing leaderboard reads to the standby DB instance in the secondary Availability Zone to reduce load on the primary DB instance.
- DSet up two active RDS MySQL DB instances in different regions to handle writes, using Route 53 failover routing to direct users to the nearest database, relying on Route 53 DNS health checks to detect database degradation.