Skip to main content
Alvin QuachFull Stack Developer
HomeProjectsExperienceBlog
HomeProjectsExperienceBlog
alvinquach

Full Stack Developer building systems that respect complexity.

Open to opportunities

AQ

Projects

  • All Projects
  • Hoparc Physical Therapy
  • OpportunIQ
  • Hoop Almanac
  • SculptQL

Knowledge

  • Blog
  • Experience
  • Interview Prep

Connect

  • Contact
  • LinkedIn
  • GitHub
  • X

Resources

  • Resume
© 2026All rights reserved.
Back to Blogs
Build Log
Featured
Depth: ●○○○○

Building Real-Time Workout Feedback with WebSockets

How I implemented live rep counting and form feedback in Bring The Shreds using WebSockets for sub-100ms latency.

Published November 15, 20241 min readImportance: ★★★★★
WebSockets
Fitness
Performance
Share:

When building Bring The Shreds, one of the core requirements was real-time feedback during workouts. Users needed to see their rep count update instantly and receive form corrections without noticeable delay.

The Challenge

HTTP polling was too slow (200-500ms latency). Server-Sent Events were one-way. We needed bidirectional, low-latency communication for pose data streaming and feedback.

The Solution

WebSocket connection with a custom protocol: client sends pose landmarks at 30fps, server responds with rep counts and form corrections. Used Socket.io for automatic reconnection handling.