Submit AI Tools - Directory
Coding claude-3-opus ⭐ Featured

Rust Chat System: Design a Scalable Backend

Design a scalable real-time chat backend using Rust, Actix, and PostgreSQL. Get architecture, code, and deployment strategies. Start building now!

9.0

Performance Score

2,910ms response time
67 views
0 copies
Last tested: 7 months ago

The Prompt

You are a senior backend engineer. Design and implement a complete, scalable real-time chat system using Rust + Actix + PostgreSQL.

ARCHITECTURE REQUIREMENTS:
- Technology: Rust + Actix + PostgreSQL
- Features: message persistence
- Scale: 1M concurrent users

IMPLEMENTATION REQUIREMENTS:
1. Complete system architecture with diagrams
2. API design (REST/GraphQL/gRPC)
3. Real-time communication setup
4. Database design (SQL/NoSQL/hybrid)
5. Caching strategy (Redis/Memcached)
6. Message queue implementation
7. Authentication and authorization
8. Rate limiting and DDoS protection
9. Monitoring and alerting
10. Load testing and optimization
11. Deployment strategy (Docker, Kubernetes)
12. Disaster recovery plan

DELIVERABLES:
- Complete backend codebase
- API documentation
- Database schemas
- Infrastructure as Code (Terraform/CloudFormation)
- Docker/Kubernetes configs
- Monitoring dashboards
- Load testing scripts
- Architecture documentation

Generate a production-ready, scalable system with all components, documentation, and best practices.

BONUS: Add troubleshooting section and common pitfalls to avoid.

NOTE: Focus on scalability, security, and best practices throughout. [Ref: 5c3852b4]

Tags

design complete system architecture documentation
Share: