How vytrg/chatroom works
Main Components
A. Frontend Layer:
• Static resources (HTML, CSS, JS)
• Templates (Thymeleaf views)
• WebSocket client connection
B. Backend Layer:
• Controllers Package
• Service Layer
• Repository Layer
• Model/Domain Layer
• Exception Handling
C. Database Layer:
• SQL Server
• Entity relationships
D. WebSocket Communication Layer:
• Real-time message handling
• Connection management
• [Client Tier] → [Application Tier] → [Data Tier]
Connection Flows
• Frontend → Controllers
• Controllers → Services
• Services → Repositories
• Repositories → Database
• WebSocket Client → WebSocket Server
• WebSocket Server → Message Broker
Additional Elements
• Exception Handling Layer:
• ApiExceptionHandler
• To all controller components
• Security Layer (if implemented):
• Authentication flow
• Authorization checks