World Congress 2025 Aug 20, 2025 Session details

Streaming AI Responses in Real-Time with SSE in Next.js & NestJS

Ahmed Megahd

Rendering an AI response under 120ms boosts retention by 30%. Learn to build lightning-fast, real-time SSE streams using Next.js and NestJS to slash LLM costs.

Pause
Mute Enter Fullscreen
#1 about 5 min

Improving user retention with real-time AI response streaming

Streaming AI responses reduces wait times and significantly increases user engagement in applications.

#2 about 3 min

Comparing protocols for real-time client and server communication

Server-sent events provide a memory-efficient, unidirectional alternative to WebSockets and REST for pushing data.

#3 about 3 min

Full stack architecture for server-sent events using Next.js

Native browser APIs and backend frameworks enable seamless data streaming while integrating authentication and rate limiting.

#4 about 4 min

Implementing streaming endpoints for OpenAI and Gemini models

Configuring proxy headers and utilizing provider SDKs ensures reliable chunk-by-chunk delivery to the client.

#5 about 3 min

Handling client-side connection states and dynamic UI updates

Managing event source connections correctly simulates typewriter effects and saves token costs by stopping canceled requests.

#6 about 5 min

Broadcasting notifications and managing active client connection lists

Tracking active subscriber connections enables targeted message distribution across multiple devices simultaneously.

#7 about 4 min

Scaling server-sent events with external queues and monitoring

Implementing keep-alive pings and Redis streams supports high concurrency and load balancing across server instances.

#8 about 3 min

Evaluating AI provider streaming speeds and generation formats

Choosing between token-by-token or chunked delivery methods impacts how text is rendered in the interface.

#9 about 3 min

Synchronizing custom GPT models across multiple application platforms

Real-time event pushes enable seamless data transfers from external AI tools to internal dashboards and extensions.

#10 about 2 min

Choosing the right communication protocol for real-time needs

Unidirectional server-sent events optimize resources for push payloads where bidirectional WebRTC or gRPC are unnecessary.

Matching moments

2:26 min

Implementing an AI backend streaming integration in javascript

Rainer Stropek Rainer Stropek · LIVE

5:15 min

Leveraging server-side streaming for performance and interactivity

Chris Heilmann +2 · LIVE

4:52 min

Why generative AI revived the Server-Sent Events protocol

Rainer Stropek Rainer Stropek · LIVE

5:28 min

Integrating OpenAI for real-time streaming responses

Chris Heilmann +3 · LIVE

50 sec

Building agentic artificial intelligence applications using Node.js

Julián Duque Julián Duque · World Congress 2025

4:31 min

Optimizing system scalability and real-time push capabilities

David Leitner · World Congress 2022

Upcoming sessions on this topic

Open session

World Congress 2026 North America

September 24, 2026 · 14:10–14:40

Stage 7

Designing High-Performance AI APIs: Lessons from Serving Millions of Real-Time Requests

Wayne Liu

Chief Growth Officer and Americas President of Perfect Corp.

Wayne Liu
Open session

World Congress 2026 North America

September 24, 2026 · 14:10–14:40

Stage 5

Edge AI: Running Agentic Intelligence Where Internet Can't Reach

Nitin Eusebius

AWS - Principal Solutions Architect

Nitin Eusebius
Open session

World Congress 2026 North America

September 24, 2026 · 14:10–14:40

Stage 1

Anatomy of an AI Request: Where Latency and Cost Are Really Born

Dan Fu

VP of Kernels at Together AI

Dan Fu
Open session

World Congress 2026 North America

September 24, 2026 · 17:30–18:00

Stage 6

No Single Model to Rule Them All: Building Resilient AI Agents Across Open & Closed LLMs

Emmanuel Acheampong

Senior Manager Developer Relations at Crusoe AI

Emmanuel Acheampong
Open session

World Congress 2026 North America

September 25, 2026 · 15:30–16:00

Stage 5

21 Experiments in Six Weeks: A Playbook for Improving Your AI Agent

Sofia Rest

Software Engineer at Sentry

Sofia Rest
Open session

World Congress 2026 North America

September 24, 2026 · 14:10–14:40

Stage 3

Real-Time Data Platforms at Trillion-Event Scale

Diptamay Sanyal

Principal Engineer | Data, AI & Cybersecurity Platforms

Diptamay Sanyal