Railbeam
- 2 Devlogs
- 2 Total hours
A Feature Rich CDN powered by Ruby on Rails
A Feature Rich CDN powered by Ruby on Rails
Added two foundational backend features to the Railbeam - Stardance project. First, we integrated PostgreSQL support to provide a robust, scalable database solution. This replaces earlier stateless approaches, enabling persistent data storage for user sessions, game states, and real-time analytics. The PostgreSQL setup includes optimised schema design and connection pooling for performance.
Introduced a region-aware server model, which dynamically routes user traffic to geographically optimal server instances. This reduces latency for global users and ensures localized compliance for data residency requirements. The model uses IP geolocation and load-balancing logic to adapt to user locations in real time.
Current Status
With these updates, the backend now offers a stable infrastructure for handling complex user interactions and global scalability. The region-aware server is active in staging, and PostgreSQL is fully integrated into the development environment. Next steps include testing cross-region synchronization and refining database query optimizations for high concurrency.
Things Learnt
The project has seen rapid progress this week, with a focus on foundational backend setup and UI design. Key milestones include:
Current status: The backend is primed for media uploads, and the frontend has a cohesive dark theme and redesigned home/landing pages. Remaining work likely involves finalizing theme toggles and integrating storage with the UI.
Lessons learned: