Full Stack2024–2025
Snaplit
Full-Stack Social Media Platform
Overview
A production-grade social media platform supporting feeds, reels, stories, and user profiles. Built for scale with real-time capabilities and a CDN-backed media pipeline.
Architecture
Microservices architecture with Node.js/TypeScript backend, MongoDB for primary storage, Redis for caching and session management, WebSocket for real-time notifications, and a CDN-backed media upload pipeline.
Tech Stack
Node.jsTypeScriptMongoDBReactRedisDockerAWSWebSocketJWT
Challenges
- ▸Handling concurrent WebSocket connections at scale
- ▸Optimizing API response latency with compound indexing and Redis caching
- ▸Designing a CDN-backed media upload pipeline with cursor-based pagination
- ▸Implementing JWT + refresh-token auth with token-bucket rate limiting
Lessons Learned
Redis caching strategy significantly reduces database load for hot data
Cursor-based pagination outperforms offset pagination for large datasets
Structured logging is essential for production debugging
Load testing early reveals bottlenecks before they hit production