A scalable real-time chat backend built using Spring Boot. Designed to handle real-time messaging for both web and mobile clients using WebSockets.
- 💬 Real-time messaging (WebSocket)
- 🔐 JWT-based authentication (coming soon)
- 👤 User registration & login
- 📦 Message persistence (JPA + DB)
- ⚡ High-performance backend architecture
- 🌐 Supports both Web & Mobile clients
- Java 25
- Spring Boot
- Spring WebSocket
- Spring Security (JWT)
- Spring Data JPA
- PostgreSQL / H2 (development)
- Maven
Client → REST API → Service → Repository → Database Client ↔ WebSocket ↔ Server ↔ Database
com.sarvy.relay
│
├── controller/
├── service/
├── repository/
├── model/
├── dto/
├── config/
├── security/
└── RelayApplication.java
git clone https://github.com/Sarvesh2005-code/relay-realtime-chat.git
cd relay-realtime-chat
Make sure Java 25 is installed.
mvn spring-boot:run
http://localhost:8080
- H2 in-memory database for quick setup
- PostgreSQL for production
- ✅ JWT Authentication
- ✅ Private & Group Chats
- ✅ Typing Indicators
- ✅ Read Receipts
- ✅ Redis for scalability
- ✅ Docker deployment
This project is built to demonstrate:
- Real-time system design
- Backend scalability
- Clean architecture using Spring Boot
Sarvesh Nakhale Java Backend Developer | Spring Boot Enthusiast
Give it a star ⭐ and follow for more!