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 · WWC 2025

4:31 min

Optimizing system scalability and real-time push capabilities

David Leitner · WWC 2022

Upcoming sessions on this topic

Open session

World Congress 2026 North America

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

public void saveMoney(AI): The Developer's Guide to Unit Economics

Hrushikesh Pokala

Senior Software Engineer Lead at Equifax

Hrushikesh Pokala
Open session

World Congress 2026 North America

The $0.15/month Algo-Trader: Architecting High-Performance Serverless Trading Engines

Vishwak Thatikonda

Lead Full Stack Engineer at SDH Systems

Vishwak Thatikonda
Open session

World Congress 2026 North America

Small LLM in your Browser: Huge Opportunities for Web Applications

Daniel Ostrovsky

UI/UX Architect at Payoneer | AI Architect | Full Cycle Development Expert | Public Speaker | Open Source Contributor |

Daniel Ostrovsky
Open session

World Congress 2026 North America

Building Stuff with GenAI - The Open Minded Workshop beyond OpenAI

Andreas Erben

CTO for Applied AI and Metaverse at daenet

Andreas Erben
Open session

World Congress 2026 North America

Look What Java Can Do Now: Live-Coding a GenAI MCP Server with the JAQ Stack

Suren Konathala

Senior Engineering Leader, Marketing & AdTech, AI GTM & Digital Experience Platforms, Java x AI

Suren Konathala