Backend 2023.04 - 2024.01

XR Platform API Gateway

High-performance API gateway handling 10K+ concurrent WebSocket connections for a large-scale XR platform

Lead Backend Engineer

C# .NET AWS WebSocket Redis

Overview

Designed and implemented a scalable API gateway for a multiplayer XR platform, handling real-time communication between thousands of concurrent users.

Technical Highlights

  • WebSocket Management: Custom connection pooling with graceful degradation
  • Session Management: Distributed session state with Redis Cluster
  • Load Balancing: Implemented sticky sessions for WebSocket connections
  • Monitoring: Real-time metrics with Prometheus and Grafana dashboards

Architecture

The system uses a microservices architecture with:

  • API Gateway (this project) as the entry point
  • Authentication service with JWT validation
  • Session management with Redis
  • Message broker with RabbitMQ for async processing

Results

  • Achieved 99.9% uptime over 6 months
  • Reduced average latency from 150ms to 45ms
  • Successfully handled 15K concurrent connections during peak events