~/vimal-jain
Real-Time CollaborationDec 2023

Bubble – Real-Time Collaboration Platform

Real-time audience engagement platform integrating interactive polling, live commentary, and synchronized presentation workflows with Google Slides and Microsoft PowerPoint.

Problem Statement

Live presentations often suffer from one-way communication where presenters speak to passive audiences. Bubble was designed to transform presentations into interactive, two-way collaborative experiences by embedding real-time polling, live Q&A, audience commentary, and voting directly inside Google Slides and Microsoft PowerPoint workflows.

System Architecture & Third-Party Integrations

The platform bridges presentation desktop and web runtimes with an event-driven real-time backend:

•Microsoft PowerPoint Add-in: Developed using Office.js to integrate within native PowerPoint desktop and web clients via task-pane apps.
•Google Slides Add-on: Developed using Google Apps Script and custom web dialogs embedded within Google Workspace presentations.
•Backend Layer: Event-driven Node.js and Socket.io server utilizing Redis for room-state caching, pub-sub broadcasting, and low-latency data access.
Presenter (PowerPoint / Google Slides)         Audience Participants (Mobile / Web)
            │                                             │
            ▼                                             ▼
  Office.js / Apps Script UI                     React Mobile Web App
            │                                             │
            ├─────────────────────┬───────────────────────┤
                                  │
                                  ▼
                     WebSocket Gateway (Socket.io)
                                  │
                                  ▼
                     Node.js Event-Driven Backend
                                  ├── Connection Lifecycle & Room Management
                                  ├── Event Handlers (Polls, Votes, Comments)
                                  └── postMessage Slides Communication
                                  │
                                  ▼
                     Redis Cache & In-Memory Store
                     (Room States, Active Polls, Vote Counters)

Key Engineering Contributions

•Removed Google Slides Backend Dependency: Replaced an expensive server-side proxy polling architecture for Google Slides with an optimized client-side postMessage communication bridge between the embedded iframe and presentation runtime. This eliminated unnecessary round-trip latency and removed server infrastructure bottlenecks.
•30% API Response Time Reduction: Benchmarked and optimized critical query paths using Redis in-memory caching for active room state, reducing measured backend response times by 30% under repeated poll data lookups.
•Slide-to-Navigation Synchronization: Diagnosed and resolved a critical legacy bug where switching presentation slides failed to update the active selection index in the left-hand slide navigator, restoring seamless two-way state synchronization.
•WebSocket Lifecycle Management: Implemented robust connection heartbeat handling, room reconnect logic, and event debouncing to handle mobile network drops during live auditorium presentations.
•Real-Time Polling & Voting Engine: Built live aggregate voting where audience submissions immediately recalculate totals in Redis and broadcast updated percentage metrics to presenter displays with sub-second visual refresh.

Scalability & Benchmark Targets

Architectural Target: Scalable event-driven architecture designed to support 10K+ concurrent audience connections across active rooms.
•Verified 30% API latency improvement achieved via Redis caching for presentation state endpoints.
•Successfully supported cross-platform presentations across Windows, macOS, and browser environments.

Stack

ReactNode.jsSocket.ioRedisOffice.jsGoogle Apps ScriptJavaScriptWebSocketsREST APIs