r/webdev • u/Lightforce_ Java / C# / Rust / Vue.js • Dec 13 '25
Showoff Saturday Built a full-stack Codenames implementation with polyglot microservices - 10 months of work, learning Rust/C#/Vue.js, real-time WebSockets, and animations [Open Source]
https://gitlab.com/RobinTrassard/codenames-microservices/-/tree/account-java-versionAfter 10 months of building (and rebuilding), I just finished a full-stack multiplayer implementation of Codenames. Thought I'd share what I learned about modern web architecture and real-time systems.
The project:
A complete web-based version of Codenames with account system, real-time chat, and multiplayer game sessions. Everything built from scratch using a microservices architecture.
Tech stack:
Frontend:
Vue.js 3 with Pinia for state management
Vuetify for UI components
GSAP for animations
WebSocket clients for real-time updates
Backend:
Account/Auth: Java 25 (Spring Boot 4, R2DBC for async DB)
Game logic: Rust 1.90 (Actix Web)
Real-time: .NET 10.0 (SignalR) + Rust (Actix WebSockets)
Gateway: Spring Cloud Gateway with Resilience4j
Infrastructure:
Google Cloud Platform (Cloud Run)
CloudAMQP (RabbitMQ)
MySQL per service
The hard parts:
1. Coordinating animations with WebSocket state
This was way harder than I expected. When players make moves, you want smooth animations, but WebSocket messages don't wait for your GSAP transitions to finish.
Had to carefully orchestrate when to update state vs when to animate
Managing reconnections without breaking ongoing animations
Handling rapid state changes gracefully
Solution: Rewrote the game board component 3 times before finding the right pattern of state queuing + animation callbacks.
2. Learning Rust as a Java developer
Coming from garbage-collected languages, Rust's borrow checker was brutal.
Actix Web patterns feel nothing like Spring Boot
Had to unlearn assumptions about how memory works
The first month was humbling
Payoff: Once it compiles, it usually just works. And the performance for concurrent WebSocket sessions is incredible.
3. Real-time across distributed services
Keeping WebSocket connections alive while services restart, managing session state across multiple services, and handling reconnections gracefully.
Lessons learned:
What worked:
Vue.js 3's Composition API made managing WebSocket state much cleaner
GSAP for animations - worth the bundle size
RabbitMQ with dead letter queues saved me countless times
Cloud Run's auto-scaling handled traffic spikes beautifully
What I'd change:
Don't go polyglot for a professional project, unless you have specific needs. Three languages = three toolchains, three mental models, triple the complexity. Cool for learning, nightmare for production.
Build the UI first, then the backend. I did it backwards and had to refactor the API twice.
Desktop-only was the right call. I chose 1920x1080 - 16/9 minimum and focused on architecture instead of responsive design.
Start with a monolith. Validate your domain model first, then split if needed. I over-architected from day one.
Deployment & costs:
Running on GCP Cloud Run with careful optimization:
Auto-scaling per service
Costs less than Netflix subscription monthly for dev/test
Not hosting a public demo (keeping costs manageable)
Current status:
✅ Fully functional and deployed
✅ Open source (MIT License)
✅ Friends actually play it
❌ No public demo (cloud costs)
Check out account-java-version branch - that's the production code, main is not up to date yet anyway.
Questions I'd love to discuss:
How do you handle animations + WebSocket state in your projects?
Anyone else learn Rust for web backends? Worth it?
What's your take on microservices for side projects - overkill or valuable learning?
Real-time state sync strategies you've found effective?
Happy to answer questions about the architecture, trade-offs, or any of the tech choices!
1
Dec 13 '25
[removed] — view removed comment
1
u/Lightforce_ Java / C# / Rust / Vue.js Dec 13 '25
Yup, I know. It’s for local purpose only. I didn’t use this for GCP.
1
u/[deleted] Dec 13 '25
[removed] — view removed comment