Skip to main content
>_cq_wuan
Back to all projects
CASE STUDY2024Full-stack Developer

Realtime Chat

Real-time messaging application with Socket.IO, MongoDB persistence, and AES encryption.

ReactNode.jsEXExpressSocket.IOMongoDBAES EncryptionTailwind CSS
Realtime Chat Application Interface

// CONTEXT & OBJECTIVE

An online messaging application supporting real-time 1-on-1 communication between users with a responsive, streamlined UI.

The project emphasizes maintaining reliable WebSocket connections and securing stored message data in the database.

// ENGINEERING CHALLENGES

Key Engineering Hurdles & Solutions

CHALLENGE 01

Client-Server WebSocket Event Synchronization

Managed user socket mapping (userSocketMap), routing messages directly to the recipient's active socketId with online/offline presence broadcasting.

CHALLENGE 02

Message Payload Encryption

Applied AES ciphering to message text before persisting to MongoDB, protecting data at rest.

// RESULTS & TAKEAWAYS

Measurable Outcomes & Learnings

>Smooth, responsive instant message delivery powered by Socket.IO.
>Protected conversation data at rest with database-level payload encryption.